Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 4x 11x | "use client";
import { Button } from "@/components/ui";
interface WelcomePurposeProps {
onNext: () => void;
}
// Beat 1 — names the purpose, then orients the sample sorting walkthrough before
// any mechanic is taught.
export function WelcomePurpose({ onNext }: WelcomePurposeProps) {
return (
<section className="flex flex-col items-center text-center gap-6">
<h1 className="font-display text-4xl sm:text-5xl text-ink">Rediscover what you love.</h1>
<p className="text-lg text-ink-soft max-w-md">
In this tutorial, you’ll sort a small sample collection in two steps.
</p>
<div className="flex flex-col gap-1 max-w-md">
<p className="text-ink-soft">First, how you feel about each piece.</p>
<p className="text-ink-soft">Then, two at a time, which you’d reach for first.</p>
<p className="pt-3 text-ink-soft">At the end, you’ll see what you love most.</p>
</div>
<Button size="lg" onClick={onNext}>
Show me how
</Button>
</section>
);
}
|