Download src/App.jsx from ronylu/iWeb: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/spaces/ronylu/iWeb/resolve/main/src/App.jsx
- Command line
-
hf download hf://spaces/ronylu/iWeb/src/App.jsx
-
curl -L -o App.jsx https://huggingface.co/spaces/ronylu/iWeb/resolve/main/src/App.jsx
832 Bytes
| 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> | |
| ); | |
| } | |