proof of concept de fake multi-page

This commit is contained in:
Medenos 2022-09-27 15:51:16 -04:00
parent b25cd25872
commit d976e6419d
4 changed files with 2941 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,12 @@
"@testing-library/jest-dom": "^5.16.5", "@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0", "@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0", "@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.2.1",
"react": "^18.2.0", "react": "^18.2.0",
"react-bootstrap": "^2.5.0",
"react-devtools": "^4.26.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-router-dom": "^6.4.1",
"react-scripts": "5.0.1", "react-scripts": "5.0.1",
"web-vitals": "^2.1.4" "web-vitals": "^2.1.4"
}, },

View File

@ -1,9 +1,23 @@
import { BrowserRouter, Routes, Route } from "react-router-dom";
import Layout from "../pages/Layout";
import Home from "../pages/Home";
import AboutUs from "../pages/AboutUs";
import Privacy from "../pages/Privacy";
import ContactUs from "../pages/ContactUs";
const App = () => { const App = () => {
return ( return (
<> <BrowserRouter>
Les Grosses Mitaines <Routes>
</> <Route path="/" element={<Layout />}>
<Route index element={<Home />} />
<Route path="aboutUs" element={<AboutUs/>} />
<Route path="contactUs" element={<ContactUs/>}/>
<Route path="privacy" element={<Privacy/>}/>
</Route>
</Routes>
</BrowserRouter>
); );
}; };

View File

@ -1,5 +1,5 @@
import React from 'react' import React from 'react'
import ReactDOM from 'react-dom' import ReactDOM from 'react-dom/client'
import './site.css' import './site.css'
import App from './components/App' import App from './components/App'