Quarterly Roadmap Board
Four columns (Q1–Q4) of compact bordered cards with icon, title, two-line description, tiny status icons and an initiative tag. Heavy dimming and edge fades emphasise the center, and a four-item caption row with hairline dividers sits beneath.
Rebuilt from linear.app/plan in the Obsidian Precision style.
npx shadcn@latest add https://justyoink.it/r/obsidian-precision-5cbef2/blocks/quarter-roadmap-board.json
Looks exactly like linear.app: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/obsidian-precision-5cbef2/mine/quarter-roadmap-board.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: heading, lead, linkLabel and captions (array of {title, text}). Hover or click a caption to brighten it; the board is dimmed and edge-faded by a CSS mask.
components/quarter-roadmap-board.tsx
"use client"; import { useEffect, useLayoutEffect, useRef, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; import { useState } from "react"; type Card = { t: string; d: string; tag: string; s: number }; type Col = { q: string; n: number; cards: Card[] }; const COLS: Col[] = [ { q: "Q1", n: 12, cards: [ { t: "Invoice Templates", d: "Let teams reuse layouts across recurring client billing.", tag: "Billing", s: 0 }, { t: "Role Presets", d: "Ship ready-made permission sets for new workspaces.", tag: "Access", s: 1 }, { t: "Audit Exports", d: "Download activity history as structured files.", tag: "Compliance", s: 2 }, { t: "Backup Restore", d: "Recover deleted projects from nightly snapshots.", tag: "Reliability", s: 0 }, ] }, { q: "Q2", n: 9, cards: [ { t: "Smart Search", d: "Return faster results across notes, files and tasks.", tag: "Discovery", s: 1 }, { t: "Currency Support", d: "Accept regional payment types and local tax rules.", tag: "Expansion", s: 2 }, { t: "Queue Throttling", d: "Smooth out job spikes for background workers.", tag: "Reliability", s: 1 }, { t: "Draft Suggestions", d: "Offer inline completions while writing updates.", tag: "Assistant", s: 0 }, { t: "Build Caching", d: "Cut repeated compile steps in release pipelines.", tag: "Reliability", s: 1 }, ] }, { q: "Q3", n: 7, cards: [ { t: "Offline Drafts", d: "Keep editing safely when the connection drops.", tag: "Mobile", s: 1 }, { t: "Usage Alerts", d: "Notify owners when quotas approach their limits.", tag: "Billing", s: 2 }, { t: "Widget Gallery", d: "Match tablet layouts to the new desktop look.", tag: "Mobile", s: 0 }, ] }, { q: "Q4", n: 4, cards: [ { t: "Partner Portal", d: "Open a self-serve space for reseller onboarding.", tag: "Expansion", s: 1 }, { t: "Region Settings", d: "Define data residency choices per workspace.", tag: "Compliance", s: 2 }, { t: "Beta Program", d: "Invite a limited group to test early releases.", tag: "Discovery", s: 0 }, { t: "Latency Report", d: "Show response trends during busy hours.", tag: "Mobile", s: 0 }, ] }, ]; const DOT = ["bg-success", "bg-warning", "bg-danger"]; export default function QuarterlyRoadmapBoard(props: { heading?: string; lead?: string; linkLabel?: string; captions?: { title: string; text: string }[]; }) { const { heading = "Chart the road ahead for every release", lead = "Keep everyone pointed at one shared schedule. Sketch plans visually with flexible views built for busy delivery groups.", linkLabel = "Schedule views", captions = [ { title: "Seasonal goals", text: "Group work into clear time blocks" }, { title: "Delivery flow", text: "Follow items through each stage" }, { title: "Calendar view", text: "Lay out milestones on a timeline" }, { title: "Team capacity", text: "Spread effort evenly across squads" }, ], } = props; const [active, setActive] = useState(0); return ( <section className="relative overflow-hidden bg-canvas px-5 py-20 font-sans text-primary md:px-20"> <div className="grid gap-8 md:grid-cols-2"> <Reveal><h2 className="max-w-md text-h1 text-primary">{heading}</h2></Reveal> <Reveal delay={100}> <p className="max-w-xl text-lead text-secondary">{lead}</p> <a href="#" className="mt-8 inline-block text-ui text-tertiary duration-link-color ease-link-color hover:text-primary focus-visible:outline focus-visible:outline-accent-indigo">{linkLabel} +</a> </Reveal> </div> <div className="relative mt-20 border-t border-hairline-subtle"> <div className="overflow-x-auto"> <div className="grid min-w-[1000px] grid-cols-4 gap-3 pt-8 opacity-60 [mask-image:radial-gradient(75%_70%_at_50%_40%,#000_30%,transparent_100%)]"> {COLS.map((c) => ( <div key={c.q} className="space-y-2"> <div className="flex items-center justify-between px-3 pb-3 text-ui text-tertiary"> <span>{c.q} <span className="ml-2">2026</span> <span className="ml-2">{c.n}</span></span> <span aria-hidden>+ ···</span> </div> {c.cards.map((k) => ( <div key={k.t} className="rounded-lg border border-hairline bg-surface p-3"> <div className="flex items-center gap-2"> <span className="h-3 w-3 rounded-xs border border-tertiary" /> <span className="flex-1 truncate text-ui text-primary">{k.t}</span> <span className={`h-2.5 w-2.5 rounded-pill ${DOT[k.s]}`} /> <span className="h-2.5 w-2.5 rounded-xs border border-warning" /> <span className="flex items-end gap-px"><i className="h-1 w-0.5 bg-tertiary" /><i className="h-2 w-0.5 bg-tertiary" /><i className="h-3 w-0.5 bg-tertiary" /></span> </div> <p className="mt-2 line-clamp-2 text-micro text-secondary">{k.d}</p> <div className="mt-2 flex items-center gap-2 text-micro text-tertiary"> <span className="h-3 w-3 rounded-pill border border-tertiary" />{k.tag} </div> </div> ))} </div> ))} </div> </div> <div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-gradient-to-t from-canvas to-transparent" /> </div> <Stagger className="mt-16 grid gap-6 md:grid-cols-4"> {captions.map((c, i) => ( <button key={c.title} type="button" onClick={() => setActive(i)} onMouseEnter={() => setActive(i)} className={`border-hairline pl-0 text-left duration-link-color ease-link-color focus-visible:outline focus-visible:outline-accent-indigo md:pl-8 md:[&:not(:first-child)]:border-l ${i === 0 ? "md:pl-0" : ""} ${active === i ? "text-primary" : "text-quaternary"}`}> <span className="block text-title">{c.title}</span> <span className="mt-2 block text-ui">{c.text}</span> </button> ))} </Stagger> </section> ); } // ---- Yoink motion (inlined, no dependencies): Reveal, Stagger ---- const YK_EASE = "cubic-bezier(0.16, 1, 0.3, 1)"; const useYkLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect; function ykReducedMotion(): boolean { return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches; } // "idle": untouched (visible) · "hidden": waiting below the fold · "shown": play the entrance. // Content is only hidden once we know we can show it again (IntersectionObserver exists, motion allowed, // and there is a box to watch), and a safety net reveals anything on screen that is still hidden. type YkRevealState = "idle" | "hidden" | "shown"; function useYkReveal(ref: RefObject<Element | null>, once = true): YkRevealState { const [state, setState] = useState<YkRevealState>("idle"); useYkLayoutEffect(() => { const el = ref.current; if (!el || ykReducedMotion() || typeof IntersectionObserver === "undefined") return; // watch the element's own box, or its children when it has none (display: contents) const boxes = () => (getComputedStyle(el).display === "contents" ? Array.from(el.children) : [el]); const onScreen = (t: Element) => { const r = t.getBoundingClientRect(); return (r.width > 0 || r.height > 0) && r.bottom > 0 && r.right > 0 && r.top < window.innerHeight && r.left < window.innerWidth; }; if (!boxes().some((t) => t.getBoundingClientRect().width > 0 || t.getBoundingClientRect().height > 0)) return; // e.g. hidden at mount: leave it visible let shown = false; const show = (v: boolean) => { if (v !== shown) (shown = v), setState(v ? "shown" : "hidden"); }; setState("hidden"); const inView = new Set<Element>(); const io = new IntersectionObserver((entries) => { for (const e of entries) { if (e.isIntersecting) inView.add(e.target); else inView.delete(e.target); } if (inView.size) { show(true); if (once) io.disconnect(); } else if (!once) show(false); }); const watched = new Set<Element>(); const watch = () => boxes().forEach((t) => !watched.has(t) && (watched.add(t), io.observe(t))); watch(); // safety net: styles that land after mount (display: contents) get watched too, and nothing // stays hidden for more than a moment while it is actually on screen const start = Date.now(); const net = setInterval(() => { if (shown) return once && clearInterval(net); watch(); if (Date.now() - start > 2400 && boxes().some(onScreen)) show(true); }, 600); return () => { io.disconnect(); clearInterval(net); }; }, [once]); return state; } type YkRevealFrom = "up" | "down" | "left" | "right" | "scale" | "blur" | "none"; /** Fades content in as it scrolls into view. */ function Reveal({ children, from = "up", delay = 0, duration = 700, distance = 24, once = true, as = "div", className, style, }: { children?: ReactNode; from?: YkRevealFrom; delay?: number; duration?: number; distance?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); const hidden = state === "hidden"; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.94)", blur: `translate3d(0, ${distance / 2}px, 0)`, none: "none", }[from]; const t = `${duration}ms ${YK_EASE} ${delay}ms`; return ( <Tag ref={ref} className={className} style={{ ...style, ...(hidden && { opacity: 0, transform: offset, filter: from === "blur" ? "blur(12px)" : undefined }), ...(state === "shown" && { transition: `opacity ${t}, transform ${t}, filter ${t}` }), }} > {children} </Tag> ); } /** Reveals each direct child one after another when the group scrolls into view. */ function Stagger({ children, step = 90, from = "up", distance = 20, duration = 650, delay = 0, once = true, as = "div", className, style, }: { children?: ReactNode; step?: number; from?: "up" | "down" | "left" | "right" | "scale" | "fade"; distance?: number; duration?: number; delay?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); useYkLayoutEffect(() => { const items = Array.from(ref.current?.children ?? []) as HTMLElement[]; if (state === "idle") return; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.92)", fade: "none", }[from]; if (state === "hidden") { for (const el of items) Object.assign(el.style, { transition: "none", opacity: "0", transform: offset }); return; } items.forEach((el, i) => { const t = `${duration}ms ${YK_EASE} ${delay + i * step}ms`; Object.assign(el.style, { transition: `opacity ${t}, transform ${t}`, opacity: "", transform: "" }); }); // hand the children their own transitions back once everything has landed const done = setTimeout(() => items.forEach((el) => (el.style.transition = "")), delay + items.length * step + duration + 50); return () => clearTimeout(done); }, [state]); return ( <Tag ref={ref} className={className} style={style}> {children} </Tag> ); }"use client"; import { useEffect, useLayoutEffect, useRef, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; import { useState } from "react"; type Card = { t: string; d: string; tag: string; s: number }; type Col = { q: string; n: number; cards: Card[] }; const COLS: Col[] = [ { q: "Q1", n: 12, cards: [ { t: "Invoice Templates", d: "Let teams reuse layouts across recurring client billing.", tag: "Billing", s: 0 }, { t: "Role Presets", d: "Ship ready-made permission sets for new workspaces.", tag: "Access", s: 1 }, { t: "Audit Exports", d: "Download activity history as structured files.", tag: "Compliance", s: 2 }, { t: "Backup Restore", d: "Recover deleted projects from nightly snapshots.", tag: "Reliability", s: 0 }, ] }, { q: "Q2", n: 9, cards: [ { t: "Smart Search", d: "Return faster results across notes, files and tasks.", tag: "Discovery", s: 1 }, { t: "Currency Support", d: "Accept regional payment types and local tax rules.", tag: "Expansion", s: 2 }, { t: "Queue Throttling", d: "Smooth out job spikes for background workers.", tag: "Reliability", s: 1 }, { t: "Draft Suggestions", d: "Offer inline completions while writing updates.", tag: "Assistant", s: 0 }, { t: "Build Caching", d: "Cut repeated compile steps in release pipelines.", tag: "Reliability", s: 1 }, ] }, { q: "Q3", n: 7, cards: [ { t: "Offline Drafts", d: "Keep editing safely when the connection drops.", tag: "Mobile", s: 1 }, { t: "Usage Alerts", d: "Notify owners when quotas approach their limits.", tag: "Billing", s: 2 }, { t: "Widget Gallery", d: "Match tablet layouts to the new desktop look.", tag: "Mobile", s: 0 }, ] }, { q: "Q4", n: 4, cards: [ { t: "Partner Portal", d: "Open a self-serve space for reseller onboarding.", tag: "Expansion", s: 1 }, { t: "Region Settings", d: "Define data residency choices per workspace.", tag: "Compliance", s: 2 }, { t: "Beta Program", d: "Invite a limited group to test early releases.", tag: "Discovery", s: 0 }, { t: "Latency Report", d: "Show response trends during busy hours.", tag: "Mobile", s: 0 }, ] }, ]; const DOT = ["bg-obsidian-success", "bg-obsidian-warning", "bg-destructive"]; export default function QuarterlyRoadmapBoard(props: { heading?: string; lead?: string; linkLabel?: string; captions?: { title: string; text: string }[]; }) { const { heading = "Chart the road ahead for every release", lead = "Keep everyone pointed at one shared schedule. Sketch plans visually with flexible views built for busy delivery groups.", linkLabel = "Schedule views", captions = [ { title: "Seasonal goals", text: "Group work into clear time blocks" }, { title: "Delivery flow", text: "Follow items through each stage" }, { title: "Calendar view", text: "Lay out milestones on a timeline" }, { title: "Team capacity", text: "Spread effort evenly across squads" }, ], } = props; const [active, setActive] = useState(0); return ( <section className="relative overflow-hidden bg-background px-5 py-20 font-sans text-foreground md:px-20"> <div className="grid gap-8 md:grid-cols-2"> <Reveal><h2 className="max-w-md text-obsidian-h1 text-foreground">{heading}</h2></Reveal> <Reveal delay={100}> <p className="max-w-xl text-obsidian-lead text-muted-foreground">{lead}</p> <a href="#" className="mt-8 inline-block text-obsidian-ui text-muted-foreground duration-obsidian-link-color ease-obsidian-link-color hover:text-foreground focus-visible:outline focus-visible:outline-primary">{linkLabel} +</a> </Reveal> </div> <div className="relative mt-20 border-t border-border"> <div className="overflow-x-auto"> <div className="grid min-w-[1000px] grid-cols-4 gap-3 pt-8 opacity-60 [mask-image:radial-gradient(75%_70%_at_50%_40%,#000_30%,transparent_100%)]"> {COLS.map((c) => ( <div key={c.q} className="space-y-2"> <div className="flex items-center justify-between px-3 pb-3 text-obsidian-ui text-muted-foreground"> <span>{c.q} <span className="ml-2">2026</span> <span className="ml-2">{c.n}</span></span> <span aria-hidden>+ ···</span> </div> {c.cards.map((k) => ( <div key={k.t} className="rounded-lg border border-border bg-card p-3"> <div className="flex items-center gap-2"> <span className="h-3 w-3 rounded-sm border border-muted-foreground" /> <span className="flex-1 truncate text-obsidian-ui text-foreground">{k.t}</span> <span className={`h-2.5 w-2.5 rounded-full ${DOT[k.s]}`} /> <span className="h-2.5 w-2.5 rounded-sm border border-obsidian-warning" /> <span className="flex items-end gap-px"><i className="h-1 w-0.5 bg-foreground" /><i className="h-2 w-0.5 bg-foreground" /><i className="h-3 w-0.5 bg-foreground" /></span> </div> <p className="mt-2 line-clamp-2 text-obsidian-micro text-muted-foreground">{k.d}</p> <div className="mt-2 flex items-center gap-2 text-obsidian-micro text-muted-foreground"> <span className="h-3 w-3 rounded-full border border-muted-foreground" />{k.tag} </div> </div> ))} </div> ))} </div> </div> <div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-gradient-to-t from-background to-transparent" /> </div> <Stagger className="mt-16 grid gap-6 md:grid-cols-4"> {captions.map((c, i) => ( <button key={c.title} type="button" onClick={() => setActive(i)} onMouseEnter={() => setActive(i)} className={`border-border pl-0 text-left duration-obsidian-link-color ease-obsidian-link-color focus-visible:outline focus-visible:outline-primary md:pl-8 md:[&:not(:first-child)]:border-l ${i === 0 ? "md:pl-0" : ""} ${active === i ? "text-foreground" : "text-muted-foreground"}`}> <span className="block text-obsidian-title">{c.title}</span> <span className="mt-2 block text-obsidian-ui">{c.text}</span> </button> ))} </Stagger> </section> ); } // ---- Yoink motion (inlined, no dependencies): Reveal, Stagger ---- const YK_EASE = "cubic-bezier(0.16, 1, 0.3, 1)"; const useYkLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect; function ykReducedMotion(): boolean { return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches; } // "idle": untouched (visible) · "hidden": waiting below the fold · "shown": play the entrance. // Content is only hidden once we know we can show it again (IntersectionObserver exists, motion allowed, // and there is a box to watch), and a safety net reveals anything on screen that is still hidden. type YkRevealState = "idle" | "hidden" | "shown"; function useYkReveal(ref: RefObject<Element | null>, once = true): YkRevealState { const [state, setState] = useState<YkRevealState>("idle"); useYkLayoutEffect(() => { const el = ref.current; if (!el || ykReducedMotion() || typeof IntersectionObserver === "undefined") return; // watch the element's own box, or its children when it has none (display: contents) const boxes = () => (getComputedStyle(el).display === "contents" ? Array.from(el.children) : [el]); const onScreen = (t: Element) => { const r = t.getBoundingClientRect(); return (r.width > 0 || r.height > 0) && r.bottom > 0 && r.right > 0 && r.top < window.innerHeight && r.left < window.innerWidth; }; if (!boxes().some((t) => t.getBoundingClientRect().width > 0 || t.getBoundingClientRect().height > 0)) return; // e.g. hidden at mount: leave it visible let shown = false; const show = (v: boolean) => { if (v !== shown) (shown = v), setState(v ? "shown" : "hidden"); }; setState("hidden"); const inView = new Set<Element>(); const io = new IntersectionObserver((entries) => { for (const e of entries) { if (e.isIntersecting) inView.add(e.target); else inView.delete(e.target); } if (inView.size) { show(true); if (once) io.disconnect(); } else if (!once) show(false); }); const watched = new Set<Element>(); const watch = () => boxes().forEach((t) => !watched.has(t) && (watched.add(t), io.observe(t))); watch(); // safety net: styles that land after mount (display: contents) get watched too, and nothing // stays hidden for more than a moment while it is actually on screen const start = Date.now(); const net = setInterval(() => { if (shown) return once && clearInterval(net); watch(); if (Date.now() - start > 2400 && boxes().some(onScreen)) show(true); }, 600); return () => { io.disconnect(); clearInterval(net); }; }, [once]); return state; } type YkRevealFrom = "up" | "down" | "left" | "right" | "scale" | "blur" | "none"; /** Fades content in as it scrolls into view. */ function Reveal({ children, from = "up", delay = 0, duration = 700, distance = 24, once = true, as = "div", className, style, }: { children?: ReactNode; from?: YkRevealFrom; delay?: number; duration?: number; distance?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); const hidden = state === "hidden"; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.94)", blur: `translate3d(0, ${distance / 2}px, 0)`, none: "none", }[from]; const t = `${duration}ms ${YK_EASE} ${delay}ms`; return ( <Tag ref={ref} className={className} style={{ ...style, ...(hidden && { opacity: 0, transform: offset, filter: from === "blur" ? "blur(12px)" : undefined }), ...(state === "shown" && { transition: `opacity ${t}, transform ${t}, filter ${t}` }), }} > {children} </Tag> ); } /** Reveals each direct child one after another when the group scrolls into view. */ function Stagger({ children, step = 90, from = "up", distance = 20, duration = 650, delay = 0, once = true, as = "div", className, style, }: { children?: ReactNode; step?: number; from?: "up" | "down" | "left" | "right" | "scale" | "fade"; distance?: number; duration?: number; delay?: number; once?: boolean; as?: ElementType; className?: string; style?: CSSProperties; }) { const Tag = as; const ref = useRef<HTMLElement>(null); const state = useYkReveal(ref, once); useYkLayoutEffect(() => { const items = Array.from(ref.current?.children ?? []) as HTMLElement[]; if (state === "idle") return; const offset = { up: `translate3d(0, ${distance}px, 0)`, down: `translate3d(0, ${-distance}px, 0)`, left: `translate3d(${-distance}px, 0, 0)`, right: `translate3d(${distance}px, 0, 0)`, scale: "scale(0.92)", fade: "none", }[from]; if (state === "hidden") { for (const el of items) Object.assign(el.style, { transition: "none", opacity: "0", transform: offset }); return; } items.forEach((el, i) => { const t = `${duration}ms ${YK_EASE} ${delay + i * step}ms`; Object.assign(el.style, { transition: `opacity ${t}, transform ${t}`, opacity: "", transform: "" }); }); // hand the children their own transitions back once everything has landed const done = setTimeout(() => items.forEach((el) => (el.style.transition = "")), delay + items.length * step + duration + 50); return () => clearTimeout(done); }, [state]); return ( <Tag ref={ref} className={className} style={style}> {children} </Tag> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: not passedElements must meet minimum color contrast ratio thresholds (35 elements)Scrollable region must have keyboard access (1 element)
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (45 elements)
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: passedIts animation plays and finishes with everything visible, and it stays still for people who turn on reduced motion.