ajout de tout le folder

This commit is contained in:
Medenos 2022-09-27 15:52:15 -04:00
parent d976e6419d
commit b14ebac2f1
7 changed files with 123 additions and 0 deletions

View File

@ -0,0 +1,13 @@
import React from "react";
const Footer = () => {
return (
<>
<br />
footer
</>
);
}
export default Footer;

View File

@ -0,0 +1,25 @@
import React from "react";
import { BrowserRouter, Route, Link } from "react-router-dom";
const Navbar = () => {
return (
<nav>
<ul>
<li>
<Link to="/">Maison</Link>
</li>
<li>
<Link to="/aboutUs">À propos de nous</Link>
</li>
<li>
<Link to="/contactUs">Contactez-nous</Link>
</li>
<li>
<Link to="/privacy">Vie privée</Link>
</li>
</ul>
</nav>
);
}
export default Navbar;

View File

@ -0,0 +1,18 @@
import React from "react";
import { useEffect } from "react";
const AbtouUs = () => {
useEffect(() => {
document.title = 'À propos de nous';
});
return (
<>
À propos de nous
</>
);
}
export default AbtouUs;

View File

@ -0,0 +1,17 @@
import React from "react";
import { useEffect } from "react";
const ContactUs = () => {
useEffect(() => {
document.title = 'Nous contacter';
});
return (
<>
Nous contacter
</>
);
}
export default ContactUs;

View File

@ -0,0 +1,17 @@
import React from "react";
import { useEffect } from "react";
const Home = () => {
useEffect(() => {
document.title = 'Maison';
});
return (
<>
Maison
</>
);
}
export default Home;

View File

@ -0,0 +1,16 @@
import React from "react";
import {Outlet} from "react-router-dom";
import Navbar from "../components/Navbar";
import Footer from "../components/Footer";
const Layout = () => {
return (
<>
<Navbar />
<Outlet />
<Footer/>
</>
);
};
export default Layout;

View File

@ -0,0 +1,17 @@
import React from "react";
import { useEffect } from "react";
const Privacy = () => {
useEffect(() => {
document.title = 'Police de vie privée';
});
return (
<>
Police de vie privée
</>
);
}
export default Privacy;