| import React from 'react'; | |
| import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; | |
| import Home from './pages/Home'; | |
| import About from './pages/About'; | |
| import Features from './pages/Features'; | |
| import Pricing from './pages/Pricing'; | |
| import Login from './pages/Login'; | |
| import Register from './pages/Register'; | |
| import Navbar from './components/Navbar'; | |
| import Footer from './components/Footer'; | |
| function App() { | |
| return ( | |
| <Router> | |
| <div className="flex flex-col min-h-screen bg-gray-50"> | |
| <Navbar /> | |
| <main className="flex-grow"> | |
| <Routes> | |
| <Route path="/" element={<Home />} /> | |
| <Route path="/about" element={<About />} /> | |
| <Route path="/features" element={<Features />} /> | |
| <Route path="/pricing" element={<Pricing />} /> | |
| <Route path="/login" element={<Login />} /> | |
| <Route path="/register" element={<Register />} /> | |
| </Routes> | |
| </main> | |
| <Footer /> | |
| </div> | |
| </Router> | |
| ); | |
| } | |
| export default App; |