completionId: cgen-836084d94b8d42aab43e78d56da7f759
cgen-836084d94b8d42aab43e78d56da7f759
This commit is contained in:
parent
cf2e1aaa05
commit
a70edaf098
1 changed files with 34 additions and 5 deletions
|
|
@ -1981,18 +1981,47 @@ export default function Community() {
|
||||||
{newMemberSteps.map((step) => {
|
{newMemberSteps.map((step) => {
|
||||||
const Icon = step.icon;
|
const Icon = step.icon;
|
||||||
return (
|
return (
|
||||||
<li key={step.id} className="flex gap-4">
|
<li key={step.id} className="flex gap-4 group">
|
||||||
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-aethex-500/10 text-aethex-300">
|
<div className={cn(
|
||||||
<Icon className="h-5 w-5" />
|
"flex h-10 w-10 items-center justify-center rounded-lg transition-all",
|
||||||
|
step.completed
|
||||||
|
? "bg-emerald-500/20 text-emerald-400"
|
||||||
|
: "bg-aethex-500/10 text-aethex-300"
|
||||||
|
)}>
|
||||||
|
{step.completed ? (
|
||||||
|
<CheckCircle className="h-5 w-5" />
|
||||||
|
) : (
|
||||||
|
<Icon className="h-5 w-5" />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-1">
|
<div className="space-y-1 flex-1">
|
||||||
<p className="font-semibold text-foreground">
|
<p className={cn(
|
||||||
|
"font-semibold",
|
||||||
|
step.completed ? "text-emerald-400 line-through" : "text-foreground"
|
||||||
|
)}>
|
||||||
{step.title}
|
{step.title}
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
{step.description}
|
{step.description}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
{!step.completed && (
|
||||||
|
<Button
|
||||||
|
asChild
|
||||||
|
variant="ghost"
|
||||||
|
size="sm"
|
||||||
|
className="opacity-0 group-hover:opacity-100 transition-opacity"
|
||||||
|
>
|
||||||
|
<Link to="/onboarding">
|
||||||
|
Complete
|
||||||
|
</Link>
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
{step.completed && (
|
||||||
|
<Badge variant="outline" className="border-emerald-500/30 bg-emerald-500/10 text-emerald-400">
|
||||||
|
Done
|
||||||
|
</Badge>
|
||||||
|
)}
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue