All files / src/features/onboarding WelcomePurpose.tsx

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

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 294x                     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&rsquo;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&rsquo;d reach for first.</p>
        <p className="pt-3 text-ink-soft">At the end, you&rsquo;ll see what you love most.</p>
      </div>
      <Button size="lg" onClick={onNext}>
        Show me how
      </Button>
    </section>
  );
}