import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Home from './pages/Home';
import AboutUs from './pages/AboutUs';
import Academics from './pages/Academics';
import Admissions from './pages/Admissions';
import Notices from './pages/Notices';
import NewsEvents from './pages/NewsEvents';
import Faculty from './pages/Faculty';
import Gallery from './pages/Gallery';
import Achievements from './pages/Achievements';
import ContactUs from './pages/ContactUs';
import AdminDashboard from './pages/AdminDashboard';
import Downloads from './pages/Downloads';
import PageView from './pages/PageView';
import './App.css';

function App() {
  return (
    <Router>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/about" element={<AboutUs />} />
        <Route path="/academics" element={<Academics />} />
        <Route path="/admissions" element={<Admissions />} />
        <Route path="/notices" element={<Notices />} />
        <Route path="/news" element={<NewsEvents />} />
        <Route path="/faculty" element={<Faculty />} />
        <Route path="/gallery" element={<Gallery />} />
        <Route path="/achievements" element={<Achievements />} />
        <Route path="/contact" element={<ContactUs />} />
        <Route path="/admin" element={<AdminDashboard />} />
        <Route path="/downloads" element={<Downloads />} />
        <Route path="/pages/:slug" element={<PageView />} />
      </Routes>
    </Router>
  );
}

export default App;
