navigation login and signup

This commit is contained in:
IluaAir
2025-10-09 23:51:00 +03:00
parent 1f351bc32b
commit b4f98fe6cd
6 changed files with 87 additions and 8 deletions

View File

@@ -1,12 +1,25 @@
import './App.css'
import { LoginPage } from './pages/Login'
import { SignUp } from './pages/SignUp'
import { AuthLayout } from './layouts/AuthLayout'
import { Routes, Route, Navigate } from 'react-router'
function App() {
return (
<>
<LoginPage className="flex min-h-svh flex-col items-center justify-center bg-background text-foreground" />
</>
<Routes>
<Route path="/" element={<Navigate to="/auth/login" replace />} />
<Route path="/auth" element={
<AuthLayout className="flex min-h-svh flex-col items-center justify-center bg-background text-foreground" />
}>
<Route path="login" element={<LoginPage />} />
<Route path="signup" element={<SignUp />} />
</Route>
<Route path="*" element={<Navigate to="/auth/login" replace />} />
</Routes>
)
}