init: init of the repository with basic connexion page and dashboard

This commit is contained in:
Pierre Ryssen
2026-02-27 11:47:51 +01:00
commit 7905adb55d
28 changed files with 2754 additions and 0 deletions

24
app/dashboard/layout.tsx Normal file
View File

@@ -0,0 +1,24 @@
"use client";
import { useEffect } from "react";
import { useRouter } from "next/navigation";
import Sidebar from "@/components/Sidebar";
export default function AuthLayout({ children }: { children: React.ReactNode }) {
const router = useRouter();
useEffect(() => {
if (sessionStorage.getItem("wyview_auth") !== "true") {
router.push("/");
}
}, [router]);
return (
<div className="flex min-h-screen">
<Sidebar />
<main className="ml-56 flex-1 p-8">
{children}
</main>
</div>
);
}