feat: criação das pages

This commit is contained in:
Gabriel Ferraz Nogueira 2023-01-04 13:47:24 -03:00
parent 6ed835cc3d
commit 3d4e1759a1
8 changed files with 35 additions and 9 deletions

View File

@ -1,5 +1,9 @@
import { Router } from "./router";
export const App = () => {
return <Router />;
return (
<>
<Router />
</>
);
};

View File

@ -0,0 +1,3 @@
export const Contact = () => {
return <h1> Form </h1>;
};

View File

@ -0,0 +1,3 @@
export const Delivery = () => {
return <h1> Entrega </h1>;
};

View File

@ -0,0 +1,3 @@
export const Payments = () => {
return <h1>Pagamentos</h1>;
};

View File

@ -0,0 +1,3 @@
export const Privacy = () => {
return <h1> Seguraça e Privacidade </h1>;
};

View File

@ -0,0 +1,3 @@
export const Refund = () => {
return <h1> Troca ou Devolução </h1>;
};

View File

@ -1,3 +0,0 @@
export const Home = () => {
return <h1>Hello World</h1>;
};

View File

@ -1,13 +1,23 @@
import { Routes, Route } from "react-router-dom";
import { Home } from "./pages/home";
import { About } from "./pages/About";
import { Payments } from "./pages/Payments";
import { Delivery } from "./pages/Delivery";
import { Contact } from "./pages/Contact";
import { Privacy } from "./pages/Privacy";
import { Refund } from "./pages/Refund";
export const Router = () => {
return (
<Routes>
<Route path="/" element={<Home />} />
<Route path="/Sobre" element={<About />} />
</Routes>
<>
<Routes>
<Route path="/" element={<About />} />
<Route path="/Pagamentos" element={<Payments />} />
<Route path="/Entrega" element={<Delivery />} />
<Route path="/Contatos" element={<Contact />} />
<Route path="/Segurança" element={<Privacy />} />
<Route path="/Devolução" element={<Refund />} />
</Routes>
</>
);
};