28 lines
No EOL
915 B
JavaScript
28 lines
No EOL
915 B
JavaScript
import { Routes, Route } from 'react-router-dom'
|
|
import { Navbar } from './components/Navbar'
|
|
import { Home } from './pages/Home'
|
|
import { Products } from './pages/Products'
|
|
import { Login } from './pages/Login'
|
|
import { Register } from './pages/Register'
|
|
import { Cart } from './pages/Cart'
|
|
import { Orders } from './pages/Orders'
|
|
|
|
function App() {
|
|
return (
|
|
<div className="min-h-screen bg-gray-900 text-gray-100">
|
|
<Navbar />
|
|
<main className="flex-1 p-8 max-w-7xl mx-auto w-full">
|
|
<Routes>
|
|
<Route path="/" element={<Home />} />
|
|
<Route path="/products" element={<Products />} />
|
|
<Route path="/login" element={<Login />} />
|
|
<Route path="/register" element={<Register />} />
|
|
<Route path="/cart" element={<Cart />} />
|
|
<Route path="/orders" element={<Orders />} />
|
|
</Routes>
|
|
</main>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default App |