feat(auth): add frontend login and route protection

This commit is contained in:
DS | Schubert 2026-07-02 17:00:50 +02:00
parent 6f7cae9e24
commit 4bc8b20a21
5 changed files with 116 additions and 19 deletions

View file

@ -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");
}