completionId: cgen-b7e9201800774ca89dc2c6553179583c
cgen-b7e9201800774ca89dc2c6553179583c
This commit is contained in:
parent
c619ef3a92
commit
cf2e1aaa05
1 changed files with 43 additions and 23 deletions
|
|
@ -853,29 +853,49 @@ export default function Community() {
|
||||||
{ label: "Games Created", value: "1K+", icon: Gamepad2 },
|
{ label: "Games Created", value: "1K+", icon: Gamepad2 },
|
||||||
];
|
];
|
||||||
|
|
||||||
const newMemberSteps = [
|
// Compute onboarding progress from profile
|
||||||
{
|
const getOnboardingProgress = () => {
|
||||||
id: "join-discord",
|
const steps = [
|
||||||
title: "Join the live chat",
|
{
|
||||||
description:
|
id: "user-type",
|
||||||
"Hop into Discord intros and grab the starter role in under five minutes.",
|
title: "Choose Your Path",
|
||||||
icon: MessageCircle,
|
description: "Selected your role: Game Developer, Client, or Member.",
|
||||||
},
|
icon: Flag,
|
||||||
{
|
completed: Boolean((profile as any)?.user_type),
|
||||||
id: "complete-profile",
|
},
|
||||||
title: "Complete your profile",
|
{
|
||||||
description:
|
id: "personal-info",
|
||||||
"Upload an avatar, link your GitHub, and let the network know your focus.",
|
title: "Personal Information",
|
||||||
icon: UserCircle,
|
description: "Set your name, email, and account details.",
|
||||||
},
|
icon: UserCircle,
|
||||||
{
|
completed: Boolean(profile?.full_name),
|
||||||
id: "make-intro",
|
},
|
||||||
title: "Share your first post",
|
{
|
||||||
description:
|
id: "experience",
|
||||||
"Publish a quick intro or project teaser in the feed to unlock your first badge.",
|
title: "Experience Level",
|
||||||
icon: Sparkles,
|
description: "Told us about your background and skills.",
|
||||||
},
|
icon: Trophy,
|
||||||
];
|
completed: Boolean((profile as any)?.experience_level),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "interests",
|
||||||
|
title: "Interests & Goals",
|
||||||
|
description: "Defined your goals and preferred services.",
|
||||||
|
icon: Sparkles,
|
||||||
|
completed: Boolean((profile as any)?.interests?.length > 0),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "email-verified",
|
||||||
|
title: "Email Verified",
|
||||||
|
description: "Confirmed your email address.",
|
||||||
|
icon: CheckCircle,
|
||||||
|
completed: Boolean(user?.email_confirmed_at || (user?.user_metadata as any)?.email_verified),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
return steps;
|
||||||
|
};
|
||||||
|
|
||||||
|
const newMemberSteps = getOnboardingProgress();
|
||||||
|
|
||||||
const newMemberResources = [
|
const newMemberResources = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue