import { BrowserRouter as Router, Routes, Route, Navigate } from "react-router-dom"
import Login from "./pages/Login"
import Dashboard from "./pages/Dashboard"

function App() {
  return (
    <Router>
      <div className="min-h-screen">
        <div>
          <Routes>
            <Route path="/login" element={<Login />} />
            <Route path="/dashboard" element={<Dashboard />} />
            <Route path="/" element={<Navigate to="/login" replace />} />
          </Routes>
        </div>
        <footer className="fixed bottom-0 left-0 right-0 py-2 text-center text-xs text-slate-400 bg-white/70 backdrop-blur-md border-t border-white/60">
          Made By ♥Karriis
        </footer>
      </div>
    </Router>
  )
}

export default App
