"use client"; import Image from "next/image"; import Link from "next/link"; import { ArrowRight, Check, Flag, RotateCcw, Map as MapIcon } from "lucide-react"; import { TutorialMetaLine } from "@/components/tutorial-card"; import { firstName } from "@/lib/display-name"; import { LEVELS, WEEKLY_TIMES, labelFor } from "@/lib/onboarding"; import { buildRoadmap, type RoadmapPhase, type RoadmapStep } from "@/lib/roadmap"; import { getTrack } from "@/lib/tracks"; import type { TutorialMeta } from "@/lib/tutorial-types"; import { useLearningProfile, useRoadmapProgress } from "@/lib/use-learning-profile"; import { cn } from "@/lib/utils"; const chip = "inline-flex items-center rounded-full border border-border px-3 py-1.5 font-mono text-[11px] uppercase tracking-[0.08em] text-[var(--mist)]"; function StepRow({ step, done, onToggle }: { step: RoadmapStep; done: boolean; onToggle: () => void }) { const t = step.tutorial; const href = `/${t.track}/${t.slug}`; return (
For: {step.reason}
Phase {index + 1} · {finished}/{phase.steps.length} done
{phase.summary}
About {phase.weeks} {phase.weeks === 1 ? "week" : "weeks"} at your pace · {phase.minutes} min of tutorials
My roadmap
Answer five quick questions about what you want from AI and where you are now. We'll turn the site's tutorials into a step-by-step plan, paced to the time you have, and you can tick things off as you go.
My roadmap
Your roadmap is saved in this browser for now.{" "} Sign in {" "} to keep it and your progress on any device.
)} {roadmap.phases.length === 0 ? (There aren't tutorials for those tools yet. Pick other tools{" "} or browse all tutorials.
) : (