diff --git a/package.json b/package.json index 786853c..697e3d5 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^6.20.0", + "scroll-lock": "^2.1.5", "vite-plugin-top-level-await": "^1.3.1", "vite-plugin-wasm": "^3.2.2", "vite-plugin-wasm-pack": "^0.1.12", @@ -30,18 +31,18 @@ "devDependencies": { "@babel/core": "^7.22.17", "@tauri-apps/cli": "^1.4.0", - "eslint-plugin-react": "^7.33.2", - "lodash": "^4.17.21", - "npm-run-all": "^4.1.5", - "tailwindcss": "^3.3.3", "@types/react": "^18.2.66", "@types/react-dom": "^18.2.22", "@typescript-eslint/eslint-plugin": "^7.2.0", "@typescript-eslint/parser": "^7.2.0", "@vitejs/plugin-react": "^4.2.1", "eslint": "^8.57.0", + "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.6", + "lodash": "^4.17.21", + "npm-run-all": "^4.1.5", + "tailwindcss": "^3.3.3", "typescript": "^5.2.2", "vite": "^5.2.0" } diff --git a/src/App.tsx b/src/App.tsx index 0870fb5..db445b2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,24 +1,41 @@ -import {HashRouter, Route, Routes} from "react-router-dom"; -import Code from "./components/Code.jsx"; -import Home from "./components/Home.jsx"; -import Downloads from "./components/Downloads.jsx"; -import "../dist/output.css"; +import { BrowserRouter, Routes, Route, useNavigate } from "react-router-dom"; +import Header from './components/Header'; +import Code from './components/Code'; +import Contributors from "./components/Contributors"; +import About from "./components/About"; +import Hero from "./components/Hero"; +import Footer from "./components/Footer"; const HOME_PATH = "/"; -const CODE_PATH = "/code/"; -const DOWNLOAD_PATH = "/downloads/"; +const CODE_PATH = "/code"; +const DOWNLOAD_PATH = "/downloads"; -function App() { +const App = () => { return ( - + - } /> + +
+ +
+ +
+ +
+ +
+