/** * @file app/page.tsx * @description Welcome landing page with responsive hero section, features showcase, and auth check. */ import { auth } from "@/auth"; import { redirect } from "next/navigation"; import Link from "next/link"; import Footer from "@/app/components/layout/Footer"; import { Zap, BarChart3, ShieldCheck, ArrowRight } from "lucide-react"; /** * Properties for a feature item displayed in the features showcase. * * @interface Feature * @property {string} id - Unique identifier for the feature. * @property {string} title - The title of the feature. * @property {string} description - Explanatory text detailing the feature. * @property {React.ReactNode} icon - Icon element representing the feature. */ interface Feature { id: string; title: string; description: string; icon: React.ReactNode; } const FEATURES: Feature[] = [ { id: "velocity", title: "Hyper Velocity", description: "Eliminate switching friction with optimized workflows keeping you directly in the zone.", icon: , }, { id: "metrics", title: "Clean Metrics", description: "Visualize focus states and process summaries clearly without visual clutter.", icon: , }, { id: "security", title: "Full Security", description: "Encrypted data and robust authentication guards protecting your workspace session.", icon: , }, ]; /** * Renders the welcome landing page with session validation and responsive layout. * * @async * @returns {Promise} The rendered welcome page component. */ export default async function WelcomePage() { const session = typeof auth === "function" ? await auth() : null; if (session) { redirect("/summary"); } return (
{/* Background Ambient Glow */} ); }