| 1 | import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; |
| 2 | import Navbar from './components/layout/Navbar'; |
| 3 | import Footer from './components/layout/Footer'; |
| 4 | import Home from './pages/Home'; |
| 5 | import Properties from './pages/Properties'; |
| 6 | import PropertyDetail from './pages/PropertyDetail'; |
| 7 | import Property3D from './pages/Property3D'; |
| 8 | import About from './pages/About'; |
| 9 | import FAQ from './pages/FAQ'; |
| 10 | import Privacy from './pages/Privacy'; |
| 11 | import Blog from './pages/Blog'; |
| 12 | import BlogPost from './pages/BlogPost'; |
| 13 | import NotFound from './pages/NotFound'; |
| 14 | |
| 15 | function App() { |
| 16 | return ( |
| 17 | <Router> |
| 18 | <div className="min-h-screen flex flex-col"> |
| 19 | <Navbar /> |
| 20 | <main className="flex-grow"> |
| 21 | <Routes> |
| 22 | <Route path="/" element={<Home />} /> |
| 23 | <Route path="/properties" element={<Properties />} /> |
| 24 | <Route path="/properties/:id" element={<PropertyDetail />} /> |
| 25 | <Route path="/property-3d/:id" element={<Property3D />} /> |
| 26 | <Route path="/about" element={<About />} /> |
| 27 | <Route path="/privacy" element={<Privacy />} /> |
| 28 | <Route path="/faq" element={<FAQ />} /> |
| 29 | <Route path="/blog" element={<Blog />} /> |
| 30 | <Route path="/blog/:slug" element={<BlogPost />} /> |
| 31 | <Route path = '*' element={<NotFound/>} /> |
| 32 | </Routes> |
| 33 | </main> |
| 34 | <Footer /> |
| 35 | </div> |
| 36 | </Router> |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | export default App; |