import Layout from "@/components/Layout"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle, CardDescription, } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { Link, useNavigate } from "react-router-dom"; import { useEffect } from "react"; import { useAuth } from "@/contexts/AuthContext"; import { UserPlus, Settings, LayoutDashboard, BookOpen, Users, LifeBuoy, ArrowRight, CheckCircle, } from "lucide-react"; export default function GetStarted() { const steps = [ { title: "Create your account", description: "Sign up with email or GitHub/Google.", icon: UserPlus, points: [ "Secure auth via Supabase", "Email verification", "OAuth supported", ], cta: { label: "Join AeThex", href: "/onboarding" }, color: "from-aethex-500 to-neon-blue", }, { title: "Complete onboarding", description: "Tell us what you build to personalize your experience.", icon: Settings, points: ["Profile basics", "Interests & skills", "Realm & level"], cta: { label: "Start Onboarding", href: "/onboarding" }, color: "from-fuchsia-500 to-pink-500", }, { title: "Explore your dashboard", description: "Manage profile, projects, applications, and rewards.", icon: LayoutDashboard, points: [ "Profile & settings", "Community feed", "Achievements & rewards", ], cta: { label: "Open Dashboard", href: "/dashboard" }, color: "from-emerald-500 to-teal-500", }, ]; const quickLinks = [ { title: "Documentation", desc: "Guides and API reference", icon: BookOpen, href: "/docs", color: "from-cyan-500 to-sky-500", }, { title: "Community", desc: "Share progress & find collaborators", icon: Users, href: "/community", color: "from-indigo-500 to-purple-500", }, { title: "Support", desc: "We’re here to help", icon: LifeBuoy, href: "/support", color: "from-amber-500 to-orange-500", }, ]; const navigate = useNavigate(); const { user, profileComplete, loading } = useAuth(); useEffect(() => { if (loading) return; if (user && profileComplete) navigate("/dashboard", { replace: true }); if (user && !profileComplete) navigate("/onboarding", { replace: true }); }, [user, profileComplete, loading, navigate]); return (

Get Started

Create your account, personalize your experience, and ship faster with AeThex.

{/* Guided Steps */}
{steps.map((step, idx) => { const Icon = step.icon; return (
{step.title}
{step.description}
    {step.points.map((p) => (
  • {" "} {p}
  • ))}
); })}
{/* Quick Links */}

Helpful Resources

Jump into docs, community, or support

{quickLinks.map((q) => { const Icon = q.icon; return (

{q.title}

{q.desc}

); })}
{/* Footer CTA */}
Next up

Create your account and start building

); }