All files / src/features/onboarding WelcomeHandoff.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 29 30 31 32 33 34 35 36 37 38 39 404x                         4x                                                    
"use client";
 
import Link from "next/link";
import { buttonVariants } from "@/components/ui";
 
interface WelcomeHandoffProps {
  /** Quiet exit — routes to /collections without starting a collection. */
  onExplore: () => void;
}
 
// Beat 5 — hand off to their world. Primary CTA into the real new-collection
// flow; a quiet way to just look around.
export function WelcomeHandoff({ onExplore }: WelcomeHandoffProps) {
  return (
    <section className="flex flex-col items-center text-center gap-6">
      <h1 className="font-display text-4xl text-ink">Now, your turn.</h1>
      <div className="flex flex-col gap-1 max-w-md">
        <p className="text-lg text-ink-soft">
          Begin with photos. They can wait in the pool until you make items.
        </p>
        <p className="text-lg text-ink-soft">
          Sort whenever you like, a few pieces at a time.
        </p>
      </div>
 
      <Link href="/collections/new" className={buttonVariants({ size: "lg" })}>
        Start a collection
      </Link>
 
      <button
        type="button"
        onClick={onExplore}
        className="h-11 px-4 text-ink-soft underline focus:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary rounded-control"
      >
        I&rsquo;ll explore on my own.
      </button>
    </section>
  );
}