From 71ee89290c15c37ade84a1ceed89ea3cb5b651f6 Mon Sep 17 00:00:00 2001 From: heyethereum Date: Mon, 12 Aug 2024 20:38:42 +0800 Subject: [PATCH] added privacy statement and TOS --- package-lock.json | 29 +++++++------ package.json | 2 +- src/App.tsx | 49 ++++++++++++--------- src/Footer.tsx | 58 ++++++++++++++----------- src/PrivacyPolicy.tsx | 94 ++++++++++++++++++++++++++++++++++++++++ src/TermsOfService.tsx | 97 ++++++++++++++++++++++++++++++++++++++++++ src/index.css | 13 ++++++ 7 files changed, 284 insertions(+), 58 deletions(-) create mode 100644 src/PrivacyPolicy.tsx create mode 100644 src/TermsOfService.tsx diff --git a/package-lock.json b/package-lock.json index 46da545..41993a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@types/react-dom": "^18.2.25", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-router-dom": "^6.22.3", + "react-router-dom": "^6.26.0", "react-scripts": "5.0.1", "typescript": "^4.9.5", "web-vitals": "^2.1.4" @@ -3378,9 +3378,10 @@ } }, "node_modules/@remix-run/router": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.15.3.tgz", - "integrity": "sha512-Oy8rmScVrVxWZVOpEF57ovlnhpZ8CCPlnIIumVcV9nFdiSIrus99+Lw78ekXyGvVDlIsFJbSfmSovJUhCWYV3w==", + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.19.0.tgz", + "integrity": "sha512-zDICCLKEwbVYTS6TjYaWtHXxkdoUvD/QXvyVZjGCsWz5vyH7aFeONlPffPdW+Y/t6KT0MgXb2Mfjun9YpWN1dA==", + "license": "MIT", "engines": { "node": ">=14.0.0" } @@ -15032,11 +15033,12 @@ } }, "node_modules/react-router": { - "version": "6.22.3", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.22.3.tgz", - "integrity": "sha512-dr2eb3Mj5zK2YISHK++foM9w4eBnO23eKnZEDs7c880P6oKbrjz/Svg9+nxqtHQK+oMW4OtjZca0RqPglXxguQ==", + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.26.0.tgz", + "integrity": "sha512-wVQq0/iFYd3iZ9H2l3N3k4PL8EEHcb0XlU2Na8nEwmiXgIUElEH6gaJDtUQxJ+JFzmIXaQjfdpcGWaM6IoQGxg==", + "license": "MIT", "dependencies": { - "@remix-run/router": "1.15.3" + "@remix-run/router": "1.19.0" }, "engines": { "node": ">=14.0.0" @@ -15046,12 +15048,13 @@ } }, "node_modules/react-router-dom": { - "version": "6.22.3", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.22.3.tgz", - "integrity": "sha512-7ZILI7HjcE+p31oQvwbokjk6OA/bnFxrhJ19n82Ex9Ph8fNAq+Hm/7KchpMGlTgWhUxRHMMCut+vEtNpWpowKw==", + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.26.0.tgz", + "integrity": "sha512-RRGUIiDtLrkX3uYcFiCIxKFWMcWQGMojpYZfcstc63A1+sSnVgILGIm9gNUA6na3Fm1QuPGSBQH2EMbAZOnMsQ==", + "license": "MIT", "dependencies": { - "@remix-run/router": "1.15.3", - "react-router": "6.22.3" + "@remix-run/router": "1.19.0", + "react-router": "6.26.0" }, "engines": { "node": ">=14.0.0" diff --git a/package.json b/package.json index d2d6951..baa24e0 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@types/react-dom": "^18.2.25", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-router-dom": "^6.22.3", + "react-router-dom": "^6.26.0", "react-scripts": "5.0.1", "typescript": "^4.9.5", "web-vitals": "^2.1.4" diff --git a/src/App.tsx b/src/App.tsx index ffff183..a15ad62 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,25 +1,36 @@ -import Header from './Header' -import Banner from './Banner' -import About from './About' -import Features from './Features' -import Team from './Team' -import Faq from './Faq' -import Footer from './Footer' -import ContactUs from './ContactUs' - +import React from "react"; +import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; +import Header from "./Header"; +import Banner from "./Banner"; +import About from "./About"; +import Features from "./Features"; +import Team from "./Team"; +import Faq from "./Faq"; +import Footer from "./Footer"; +import ContactUs from "./ContactUs"; +import TermsOfService from "./TermsOfService"; +import PrivacyPolicy from "./PrivacyPolicy"; function App() { return ( - <> -
- - - - - - -