feat(auth): add frontend login and route protection
This commit is contained in:
parent
6f7cae9e24
commit
4bc8b20a21
5 changed files with 116 additions and 19 deletions
|
|
@ -1,20 +1,5 @@
|
|||
import StatCard from "@/components/StatCard";
|
||||
import UserCounter from "@/components/UserCounter";
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<div className="grid grid-cols-4 gap-6">
|
||||
|
||||
<StatCard title="Benutzer" value={<UserCounter />} />
|
||||
|
||||
<StatCard title="Kunden" value="0" />
|
||||
|
||||
<StatCard title="Reparaturen" value="0" />
|
||||
|
||||
<StatCard title="Lager" value="0" />
|
||||
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
export default function HomePage() {
|
||||
redirect("/login");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue