introducing welcome and rating

This commit is contained in:
Antoine M 2024-02-21 11:02:02 +01:00
parent ae10772922
commit 109ece1aa8

View File

@ -1,4 +1,5 @@
import "./assets/css/App.scss";
import Welcome from "./pages/Welcome.jsx";
import Home from "./pages/Home.jsx";
import Single from "./pages/Single.jsx";
import Profile from "./pages/Profile.jsx";
@ -7,6 +8,7 @@ import Results from "./pages/Results.jsx";
import Test from "./pages/Test.jsx";
import { v4 as uuidv4 } from "uuid";
import Game from "./pages/Game.jsx";
import Rating from "./pages/Rating.jsx";
import { useLocation, Routes, Route } from "react-router-dom";
import { AnimatePresence } from "framer-motion";
@ -16,11 +18,13 @@ function App() {
return (
<AnimatePresence mode='wait'>
<Routes location={location} key={location.pathname}>
<Route path='/' element={<Home />} />
<Route path='/' element={<Welcome />} />
<Route path='/home' element={<Home />} />
<Route path='/select-profile' element={<Profile />} />
<Route path='/select-country' element={<Country />} />
<Route path='/play' element={<Game />} />
<Route path='/results' element={<Results />} />
<Route path='/rating' element={<Rating />} />
<Route path='/test' element={<Test />} />
</Routes>
</AnimatePresence>