first commit

This commit is contained in:
Your NamebaishaliHolocron
2026-06-15 12:57:03 +05:30
commit b9ac5ae0b2
398 changed files with 49583 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
"use client";
import { useEffect } from "react";
import { useRouter } from "next/navigation";
// The marketing landing page (Hero + sections) is no longer used — opening the
// app should land directly on the dashboard. We keep the same auth check as the
// root page: send unauthenticated visitors to login, everyone else to the dashboard.
export default function page() {
const router = useRouter();
useEffect(() => {
const hasToken = document.cookie.includes("accessToken");
if (!hasToken) {
window.location.href = "/login.html";
} else {
router.replace("/main/overview/dashboard");
}
}, [router]);
return null;
}