Cards & content / Media & mockups
Spotlit Product Window Frame
Large 1344px rounded card with hairline border and a grey radial spotlight photo at the top. Inside floats a dark app window (tabbed project overview with properties, chips and body text) that fades to black at the bottom, with a bold caption and grey paragraph below.
Rebuilt from linear.app/plan in the Obsidian Precision style.
Looks exactly like linear.app: brings its fonts and colours, namespaced so your own theme stays untouched.
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, caption, description, projectName, projectSummary — all optional with defaults. Drop it in a dark page; the frame fades in on scroll via Reveal.
components/spotlight-product-frame.tsx
"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; type Props = { heading?: string; caption?: string; description?: string; projectName?: string; projectSummary?: string; }; const Dot = ({ c }: { c: string }) => ( <span className="inline-block h-2 w-2 rounded-full" style={{ background: c }} /> ); export default function SpotlitProductWindowFrame({ heading = "Plan the roadmap", caption = "Keep every brief in one place", description = "Bring specs, notes, tasks and feedback together in a single shared workspace for the whole team.", projectName = "Atlas Rebuild", projectSummary = "Rebuilding the onboarding flow and settings surfaces.", }: Props) { const tabs = ["Overview", "Activity", "Members", "Tasks"]; const row = "flex flex-wrap items-center gap-x-5 gap-y-2 text-ui text-secondary"; const label = "w-[76px] text-tertiary"; return ( <section className="bg-canvas px-3 py-8 font-sans md:px-12"> <Reveal from="up" duration={700}> <div className="relative mx-auto max-w-[1344px] overflow-hidden rounded-lg border border-hairline bg-surface"> <div className="absolute inset-0 bg-[radial-gradient(60%_40%_at_50%_0%,rgba(160,168,172,0.55),transparent_70%)]" /> <div className="absolute inset-0 bg-gradient-to-b from-transparent via-canvas/40 to-canvas" /> <div className="relative mx-auto mt-20 h-[620px] max-w-[1120px] overflow-hidden rounded-lg border border-hairline bg-surface md:mt-24"> <div className="flex items-center justify-between px-3 py-3"> <div className="flex gap-1 overflow-x-auto"> {tabs.map((t, i) => ( <span key={t} className={`rounded-md px-3 py-1 text-ui ${i === 0 ? "bg-surface-raised text-primary" : "text-tertiary"}`}>{t}</span> ))} </div> <div className="hidden gap-4 text-tertiary md:flex"> {[0, 1, 2, 3].map((i) => ( <span key={i} className="h-3.5 w-3.5 rounded-xs border border-tertiary/60" /> ))} </div> </div> <div className="mx-auto mt-14 max-w-[690px] px-5"> <div className="mb-4 flex h-8 w-8 items-center justify-center rounded-md bg-danger/20"> <span className="h-3 w-3 rotate-45 rounded-xs bg-danger" /> </div> <h3 className="text-h2 text-primary">{projectName}</h3> <p className="mt-3 text-body text-tertiary">{projectSummary}</p> <div className="mt-9 space-y-5"> <div className={row}><span className={label}>Properties</span><span className="flex items-center gap-2"><Dot c="#f5c542" />In Progress</span><span>High</span><span>Maya</span><span>Jun 17th</span><span>#atlas</span></div> <div className={row}><span className={label}>Initiatives</span><span className="flex items-center gap-2"><Dot c="#f97316" />Growth</span><span className="flex items-center gap-2"><Dot c="#6366f1" />Platform 2026</span></div> <div className={row}><span className={label}>Labels</span><span className="flex items-center gap-2"><Dot c="#6366f1" />Design</span><span className="flex items-center gap-2"><Dot c="#f5c542" />Onboarding</span></div> <div className={row}><span className={label}>Resources</span><span>Mockups</span><span>Research log</span><span>Kickoff notes</span></div> </div> <p className="mt-10 text-body text-tertiary">This project reworks key product surfaces to improve clarity, consistency and perceived speed across the app. The effort targets the most visited screens and trims visual noise.</p> <p className="mt-5 text-body font-semibold text-quaternary">Planned changes:</p> <ul className="mt-3 list-disc pl-6 text-body text-quaternary"><li>Streamline the first-run checklist</li><li>Simplify status states and hierarchy</li></ul> </div> <div className="pointer-events-none absolute inset-x-0 bottom-0 h-3/5 bg-gradient-to-b from-transparent to-canvas" /> </div> <div className="relative px-5 pb-8 pt-24 md:px-8"> <h4 className="text-ui font-medium text-primary">{caption}</h4> <p className="mt-2 max-w-[400px] text-ui text-tertiary">{description}</p> </div> </div> </Reveal> </section> ); } // ---- Yoink motion (inlined, no dependencies): Reveal ---- 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> ); }"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; type Props = { heading?: string; caption?: string; description?: string; projectName?: string; projectSummary?: string; }; const Dot = ({ c }: { c: string }) => ( <span className="inline-block h-2 w-2 rounded-full" style={{ background: c }} /> ); export default function SpotlitProductWindowFrame({ heading = "Plan the roadmap", caption = "Keep every brief in one place", description = "Bring specs, notes, tasks and feedback together in a single shared workspace for the whole team.", projectName = "Atlas Rebuild", projectSummary = "Rebuilding the onboarding flow and settings surfaces.", }: Props) { const tabs = ["Overview", "Activity", "Members", "Tasks"]; const row = "flex flex-wrap items-center gap-x-5 gap-y-2 text-obsidian-ui text-muted-foreground"; const label = "w-[76px] text-muted-foreground"; return ( <section className="bg-background px-3 py-8 font-sans md:px-12"> <Reveal from="up" duration={700}> <div className="relative mx-auto max-w-[1344px] overflow-hidden rounded-lg border border-border bg-card"> <div className="absolute inset-0 bg-[radial-gradient(60%_40%_at_50%_0%,rgba(160,168,172,0.55),transparent_70%)]" /> <div className="absolute inset-0 bg-gradient-to-b from-transparent via-background/40 to-background" /> <div className="relative mx-auto mt-20 h-[620px] max-w-[1120px] overflow-hidden rounded-lg border border-border bg-card md:mt-24"> <div className="flex items-center justify-between px-3 py-3"> <div className="flex gap-1 overflow-x-auto"> {tabs.map((t, i) => ( <span key={t} className={`rounded-md px-3 py-1 text-obsidian-ui ${i === 0 ? "bg-secondary text-foreground" : "text-muted-foreground"}`}>{t}</span> ))} </div> <div className="hidden gap-4 text-muted-foreground md:flex"> {[0, 1, 2, 3].map((i) => ( <span key={i} className="h-3.5 w-3.5 rounded-sm border border-muted-foreground/60" /> ))} </div> </div> <div className="mx-auto mt-14 max-w-[690px] px-5"> <div className="mb-4 flex h-8 w-8 items-center justify-center rounded-md bg-destructive/20"> <span className="h-3 w-3 rotate-45 rounded-sm bg-destructive" /> </div> <h3 className="text-obsidian-h2 text-foreground">{projectName}</h3> <p className="mt-3 text-obsidian-body text-muted-foreground">{projectSummary}</p> <div className="mt-9 space-y-5"> <div className={row}><span className={label}>Properties</span><span className="flex items-center gap-2"><Dot c="#f5c542" />In Progress</span><span>High</span><span>Maya</span><span>Jun 17th</span><span>#atlas</span></div> <div className={row}><span className={label}>Initiatives</span><span className="flex items-center gap-2"><Dot c="#f97316" />Growth</span><span className="flex items-center gap-2"><Dot c="#6366f1" />Platform 2026</span></div> <div className={row}><span className={label}>Labels</span><span className="flex items-center gap-2"><Dot c="#6366f1" />Design</span><span className="flex items-center gap-2"><Dot c="#f5c542" />Onboarding</span></div> <div className={row}><span className={label}>Resources</span><span>Mockups</span><span>Research log</span><span>Kickoff notes</span></div> </div> <p className="mt-10 text-obsidian-body text-muted-foreground">This project reworks key product surfaces to improve clarity, consistency and perceived speed across the app. The effort targets the most visited screens and trims visual noise.</p> <p className="mt-5 text-obsidian-body font-semibold text-muted-foreground">Planned changes:</p> <ul className="mt-3 list-disc pl-6 text-obsidian-body text-muted-foreground"><li>Streamline the first-run checklist</li><li>Simplify status states and hierarchy</li></ul> </div> <div className="pointer-events-none absolute inset-x-0 bottom-0 h-3/5 bg-gradient-to-b from-transparent to-background" /> </div> <div className="relative px-5 pb-8 pt-24 md:px-8"> <h4 className="text-obsidian-ui font-medium text-foreground">{caption}</h4> <p className="mt-2 max-w-[400px] text-obsidian-ui text-muted-foreground">{description}</p> </div> </div> </Reveal> </section> ); } // ---- Yoink motion (inlined, no dependencies): Reveal ---- 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> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- 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.