File size: 832 Bytes
16ec831 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import React from "react";
import { Routes, Route } from "react-router-dom";
import SiteHeader from "./components/SiteHeader.jsx";
import SiteFooter from "./components/SiteFooter.jsx";
import Home from "./pages/Home.jsx";
import Store from "./pages/Store.jsx";
import Product from "./pages/Product.jsx";
import NotFound from "./pages/NotFound.jsx";
export default function App() {
return (
<div className="min-h-full bg-white text-neutral-900">
<SiteHeader />
<main className="mx-auto max-w-6xl px-4 py-8">
<Routes>
<Route path="/" element={<Home />} />
<Route path="/store" element={<Store />} />
<Route path="/product/:slug" element={<Product />} />
<Route path="*" element={<NotFound />} />
</Routes>
</main>
<SiteFooter />
</div>
);
}
|