From 3424ce84070be6d7433d1645cf701169855cc21d Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Tue, 5 Aug 2025 22:49:57 +0000 Subject: [PATCH] Create welcome completion component cgen-9f7ee84eb7f549a595bbfc82908c91b6 --- client/components/onboarding/Welcome.tsx | 147 +++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 client/components/onboarding/Welcome.tsx diff --git a/client/components/onboarding/Welcome.tsx b/client/components/onboarding/Welcome.tsx new file mode 100644 index 00000000..06ace633 --- /dev/null +++ b/client/components/onboarding/Welcome.tsx @@ -0,0 +1,147 @@ +import { OnboardingData } from "@/pages/Onboarding"; +import { Button } from "@/components/ui/button"; +import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; +import { CheckCircle, ArrowRight, Sparkles } from "lucide-react"; +import { Link } from "react-router-dom"; + +interface WelcomeProps { + data: OnboardingData; +} + +export default function Welcome({ data }: WelcomeProps) { + const getUserTypeLabel = () => { + switch (data.userType) { + case 'game-developer': return 'Game Developer'; + case 'client': return 'Client'; + case 'member': return 'Community Member'; + case 'customer': return 'Customer'; + default: return 'User'; + } + }; + + const getNextSteps = () => { + switch (data.userType) { + case 'game-developer': + return [ + { title: 'Access Development Tools', description: 'Get started with our development toolkit and resources' }, + { title: 'Join Mentorship Program', description: 'Connect with experienced developers for guidance' }, + { title: 'Explore Projects', description: 'Browse collaborative projects and opportunities' }, + { title: 'Attend Workshops', description: 'Join our next technical workshop or boot camp' } + ]; + case 'client': + return [ + { title: 'Schedule Consultation', description: 'Book a free consultation to discuss your project' }, + { title: 'View Our Portfolio', description: 'Explore our previous work and case studies' }, + { title: 'Get Project Quote', description: 'Receive a detailed quote for your development needs' }, + { title: 'Meet Your Team', description: 'Connect with our development specialists' } + ]; + case 'member': + return [ + { title: 'Explore Research', description: 'Access our latest research and publications' }, + { title: 'Join Community', description: 'Connect with other members in our forums' }, + { title: 'Upcoming Events', description: 'Register for community events and workshops' }, + { title: 'Innovation Labs', description: 'Participate in cutting-edge research projects' } + ]; + case 'customer': + return [ + { title: 'Browse Products', description: 'Explore our games, tools, and digital products' }, + { title: 'Join Beta Programs', description: 'Get early access to new releases and features' }, + { title: 'Community Hub', description: 'Connect with other users and share feedback' }, + { title: 'Support Center', description: 'Access documentation and customer support' } + ]; + default: + return []; + } + }; + + const nextSteps = getNextSteps(); + + return ( +
+
+
+
+ +
+
+ +
+

+ Welcome to AeThex, {data.personalInfo.firstName}! +

+

+ Your {getUserTypeLabel().toLowerCase()} account has been successfully set up +

+
+
+ + {/* User Summary */} + + + + + Your AeThex Profile + + + +
+
+ Role: +

{getUserTypeLabel()}

+
+
+ Experience: +

{data.experience.level}

+
+
+ Skills: +

{data.experience.skills.slice(0, 3).join(', ')}{data.experience.skills.length > 3 ? '...' : ''}

+
+
+ Primary Goals: +

{data.interests.primaryGoals.length} selected

+
+
+
+
+ + {/* Next Steps */} +
+

What's Next?

+
+ {nextSteps.map((step, index) => ( + + + {step.title} + + + + {step.description} + + + + ))} +
+
+ + {/* Action Buttons */} +
+ + +
+ +
+

+ Need help getting started? Contact our support team +

+
+
+ ); +}