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

9
app/dashboard/page.tsx Normal file
View File

@@ -0,0 +1,9 @@
export default function DashboardPage() {
return (
<div>
<div className="text-[9px] font-mono tracking-[0.3em] text-[#4aff8c]/50 uppercase mb-1">Vue générale</div>
<h1 className="text-2xl font-black tracking-widest text-white uppercase mb-8">Tableau de bord</h1>
<p className="text-[#3a5a3a] font-mono text-sm">Données à venir...</p>
</div>
);
}