/** * @file app/page.tsx * @description Welcome landing page component with responsive hero section, features showcase, and authentication redirect check. */ import { auth } from "@/auth"; import { redirect } from "next/navigation"; import Link from "next/link"; import Footer from "@/app/components/layout/Footer"; import { JSX } from "react/jsx-runtime"; /** * Properties for the FeatureCard component. * * @interface FeatureCardProps * @property {React.ReactNode} icon - The icon element displayed inside the feature card. * @property {string} title - The title of the feature. * @property {string} description - A short explanatory description of the feature. */ interface FeatureCardProps { icon: React.ReactNode; title: string; description: string; } /** * Renders an individual feature card highlighting a specific platform capability. * * @param {FeatureCardProps} props - The component props. * @param {React.ReactNode} props.icon - The feature icon. * @param {string} props.title - The feature title. * @param {string} props.description - The feature description text. * @returns {JSX.Element} The rendered feature card component. */ function FeatureCard({ icon, title, description }: FeatureCardProps) { return (
{icon}

{title}

{description}

); } /** * Renders the fully responsive welcome landing page using custom Tailwind CSS variables. * * @async * @returns {Promise} The rendered welcome landing page component. */ export default async function WelcomePage(): Promise { const session = typeof auth === "function" ? await auth() : null; if (session) { redirect("/summary"); } return (
{/* Background Glow (Scaled down for mobile performance) */} ); }