ADD: initialisation of all the routes for the button

This commit is contained in:
dorian melenotte 2024-08-07 14:51:03 +02:00
parent ab6fb8f96f
commit ef227551c7
8 changed files with 46 additions and 2 deletions

View File

@ -0,0 +1,3 @@
export function About() {
return <h1>Ici vous pouvez lire en quoi est constitué le projet</h1>;
}

View File

@ -0,0 +1,3 @@
export function Blog() {
return <h1>Ici vous pouvez lire le blog des dernieres maj</h1>;
}

View File

@ -0,0 +1,3 @@
export function Downloads() {
return <h1>Voici la page des downloads</h1>;
}

View File

@ -0,0 +1,3 @@
export function Help() {
return <h1>Ici vous pouvez demander de l'aide</h1>;
}

View File

@ -0,0 +1,3 @@
export function Product() {
return <h1>Voici les produits</h1>;
}

View File

@ -0,0 +1,3 @@
export function Serveurs() {
return <h1>Voici les serveurs</h1>;
}

View File

@ -4,10 +4,11 @@ import ReactDOM from "react-dom/client";
import { RouterProvider } from "react-router-dom";
import back_img from "./assets/img_site.jpg";
import { router } from "./services/Router.jsx";
function buttoncaller(argv) {
/* function button_caller(argv) {
console.log(argv);
alert(argv);
}
} */
ReactDOM.createRoot(document.getElementById("root")).render(
<>

View File

@ -1,6 +1,11 @@
import { createBrowserRouter } from "react-router-dom";
import { About } from "../files/About";
import { Accueil } from "../files/Accueil";
import { Blog } from "../files/Blog";
import { Help } from "../files/Help";
import { Product } from "../files/Product";
import { Register } from "../files/Register";
import { Serveurs } from "../files/Serveurs";
import { SignIn } from "../files/Sign_in";
export const router = createBrowserRouter([
@ -16,4 +21,24 @@ export const router = createBrowserRouter([
path: "/register",
element: <Register />,
},
{
path: "/about",
element: <About />,
},
{
path: "/blog",
element: <Blog />,
},
{
path: "/help",
element: <Help />,
},
{
path: "/product",
element: <Product />,
},
{
path: "/serveurs",
element: <Serveurs />,
},
]);