diff --git a/app/page.tsx b/app/page.tsx index fb55326..42bf3e8 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,62 +1,61 @@ /** * @file app/page.tsx - * @description Welcome landing page component with responsive hero section, features showcase, and authentication redirect check. + * @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 { JSX } from "react/jsx-runtime"; +import { Zap, BarChart3, ShieldCheck, ArrowRight } from "lucide-react"; /** - * Properties for the FeatureCard component. + * Properties for a feature item displayed in the features showcase. * - * @interface FeatureCardProps - * @property {React.ReactNode} icon - The icon element displayed inside the feature card. + * @interface Feature + * @property {string} id - Unique identifier for the feature. * @property {string} title - The title of the feature. - * @property {string} description - A short explanatory description of the feature. + * @property {string} description - Explanatory text detailing the feature. + * @property {React.ReactNode} icon - Icon element representing the feature. */ -interface FeatureCardProps { - icon: React.ReactNode; +interface Feature { + id: string; title: string; description: string; + icon: React.ReactNode; } -/** - * 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} -

-
-
- ); -} +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 fully responsive welcome landing page using custom Tailwind CSS variables. + * Renders the welcome landing page with session validation and responsive layout. * * @async - * @returns {Promise} The rendered welcome landing page component. + * @returns {Promise} The rendered welcome page component. */ -export default async function WelcomePage(): Promise { +export default async function WelcomePage() { const session = typeof auth === "function" ? await auth() : null; if (session) { @@ -65,13 +64,13 @@ export default async function WelcomePage(): Promise { return (
- {/* Background Glow (Scaled down for mobile performance) */} + {/* Background Ambient Glow */}