Cards & content / Media & mockups
Large Gray Stage with App Window
A huge rounded-[40px] gray panel with a hairline ring containing a macOS-style browser window with a sidebar, metric cards, a donut chart and an AI chat side panel (thumbs, 'Ask anything' composer with a dark round send button). A soft, wide shadow lifts the window.
Rebuilt from cal.com in the Warm Paper Calendar style.
Looks exactly like cal.com: 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
Renders standalone; override text via props (url, pageTitle, pageSubtitle, workspace, user, chatTitle, placeholder, total, totalLabel). The panel fades in on scroll via Reveal.
components/app-window-insights-stage.tsx
"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; type Props = { url?: string; pageTitle?: string; pageSubtitle?: string; workspace?: string; user?: string; chatTitle?: string; placeholder?: string; total?: number; totalLabel?: string; }; const nav = ["Overview", "Shortcuts", "Orders", "Schedule", "People", "Plugins", "Rules", "Automations", "Reports"]; const sub = ["Sales", "Returns", "Shipping", "Regions", "Refunds", "Archive"]; const stats = [ { l: "Avg. basket", v: "4.8", d: "0%" }, { l: "Late orders", v: "6", d: "-12%" }, { l: "Cancelled", v: "14", d: "0%" }, { l: "Repeat rate", v: "72.5", d: "-3%" }, ]; export default function LargeGrayStageWithAppWindow({ url = "app.harbor.io/reports", pageTitle = "Reports", pageSubtitle = "Review sales activity across every store.", workspace = "Store: Harbor East", user = "Mira Okafor", chatTitle = "Orders since June", placeholder = "Ask anything...", total = 248, totalLabel = "Total orders", }: Props) { return ( <section className="px-4 py-10 md:px-0"> <Reveal from="up"> <div className="rounded-[40px] bg-panel shadow-ring-inset ring-1 ring-hairline p-4 md:p-[40px_124px] overflow-hidden"> <div className="mx-auto max-w-[1042px] overflow-hidden rounded-xl bg-canvas shadow-[0_30px_80px_-20px_rgba(0,0,0,0.25)] ring-1 ring-hairline"> <div className="flex items-center gap-3 bg-panel px-4 py-2.5"> <div className="flex gap-2"> <i className="size-3 rounded-full bg-[#ff5f57]" /> <i className="size-3 rounded-full bg-[#febc2e]" /> <i className="size-3 rounded-full bg-[#28c840]" /> </div> <div className="mx-auto w-full max-w-[460px] rounded-md bg-hairline px-3 py-1 text-center text-caption text-body">{url}</div> <div className="hidden w-16 sm:block" /> </div> <div className="grid h-[526px] grid-cols-1 md:grid-cols-[185px_1fr_368px]"> <aside className="hidden overflow-hidden bg-panel p-2.5 md:block"> <div className="flex items-center gap-2 p-2 text-caption text-ink"> <span className="grid size-5 place-items-center rounded-full bg-ink text-[9px] text-canvas">{user[0]}</span>{user} </div> <ul className="mt-2 space-y-0.5 text-caption text-body"> {nav.map((n) => ( <li key={n} className="flex items-center gap-2 rounded-md px-2 py-1.5"><span className="size-3 rounded-sm ring-1 ring-muted" />{n}</li> ))} {sub.map((n, i) => ( <li key={n} className={"rounded-md py-1.5 pl-7 " + (i === 0 ? "bg-hairline text-ink" : "")}>{n}</li> ))} </ul> </aside> <main className="overflow-hidden p-5"> <h3 className="text-h3 text-ink-deep">{pageTitle}</h3> <p className="mt-1 text-caption text-muted">{pageSubtitle}</p> <div className="mt-4 flex flex-wrap gap-2 text-caption text-ink"> <span className="rounded-md bg-panel px-3 py-2">{workspace}</span> <span className="rounded-md bg-panel px-3 py-2">Filter</span> <span className="ml-auto rounded-md bg-panel px-3 py-2">Export</span> </div> <div className="mt-4 rounded-lg bg-panel p-2"> <div className="px-2 py-1.5 text-caption text-body">Summary</div> <div className="grid grid-cols-2 overflow-hidden rounded-md bg-canvas ring-1 ring-hairline lg:grid-cols-4"> {stats.map((s) => ( <div key={s.l} className="border-hairline p-3 lg:border-r"> <div className="text-caption text-body">{s.l}</div> <div className="mt-1 text-lead text-ink">{s.v}</div> <span className="mt-2 inline-block rounded-sm bg-panel px-1.5 text-caption text-body">{s.d}</span> </div> ))} </div> </div> <div className="mt-4 rounded-lg bg-panel p-2"> <div className="px-2 py-1.5 text-caption text-body">Volume</div> <div className="flex justify-center rounded-md bg-canvas py-4 ring-1 ring-hairline"> <div className="relative size-[132px]"> <svg viewBox="0 0 36 36" className="size-full -rotate-90"> <circle cx="18" cy="18" r="15" fill="none" stroke="var(--color-hairline-strong)" strokeWidth="3.6" /> <circle cx="18" cy="18" r="15" fill="none" stroke="var(--color-ink)" strokeWidth="3.6" strokeDasharray="80 94.2" /> </svg> <div className="absolute inset-0 grid place-content-center text-center"> <div className="text-h3 text-ink">{total}</div> <div className="text-caption text-muted">{totalLabel}</div> </div> </div> </div> </div> </main> <aside className="hidden border-l border-hairline p-4 md:flex md:flex-col"> <div className="text-ui text-ink">{chatTitle}</div> <div className="mt-4 rounded-xl bg-panel p-3"> <div className="text-ui text-ink">Order trends</div> <div className="mt-2 flex gap-2 text-caption text-body"> <span className="rounded-md bg-canvas px-2 py-1 ring-1 ring-hairline">Placed</span> <span className="rounded-md bg-canvas px-2 py-1 ring-1 ring-hairline">Shipped</span> </div> <svg viewBox="0 0 300 120" className="mt-3 w-full rounded-md bg-canvas p-2 ring-1 ring-hairline"> {[20, 45, 70, 95].map((y) => (<line key={y} x1="10" x2="290" y1={y} y2={y} stroke="var(--color-hairline-strong)" strokeDasharray="3 3" />))} <path d="M10 100 C60 80 90 90 140 55 S230 40 290 20" fill="none" stroke="var(--color-ink)" strokeWidth="2" /> </svg> </div> <div className="mt-auto"> <div className="rounded-lg bg-panel px-3 py-1.5 text-caption text-muted">Current page data</div> <div className="relative h-20 rounded-b-lg px-3 py-2 text-ui text-soft ring-1 ring-hairline"> {placeholder} <button aria-label="Send" className="absolute bottom-2 right-2 grid size-7 place-items-center rounded-full bg-ink text-canvas focus-visible:outline focus-visible:outline-2"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" strokeWidth="1.6"><path d="M6 10V2M2.5 5.5 6 2l3.5 3.5" /></svg> </button> </div> </div> </aside> </div> </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 = { url?: string; pageTitle?: string; pageSubtitle?: string; workspace?: string; user?: string; chatTitle?: string; placeholder?: string; total?: number; totalLabel?: string; }; const nav = ["Overview", "Shortcuts", "Orders", "Schedule", "People", "Plugins", "Rules", "Automations", "Reports"]; const sub = ["Sales", "Returns", "Shipping", "Regions", "Refunds", "Archive"]; const stats = [ { l: "Avg. basket", v: "4.8", d: "0%" }, { l: "Late orders", v: "6", d: "-12%" }, { l: "Cancelled", v: "14", d: "0%" }, { l: "Repeat rate", v: "72.5", d: "-3%" }, ]; export default function LargeGrayStageWithAppWindow({ url = "app.harbor.io/reports", pageTitle = "Reports", pageSubtitle = "Review sales activity across every store.", workspace = "Store: Harbor East", user = "Mira Okafor", chatTitle = "Orders since June", placeholder = "Ask anything...", total = 248, totalLabel = "Total orders", }: Props) { return ( <section className="px-4 py-10 md:px-0"> <Reveal from="up"> <div className="rounded-[40px] bg-card shadow-warm-ring-inset ring-1 ring-border p-4 md:p-[40px_124px] overflow-hidden"> <div className="mx-auto max-w-[1042px] overflow-hidden rounded-2xl bg-background shadow-[0_30px_80px_-20px_rgba(0,0,0,0.25)] ring-1 ring-border"> <div className="flex items-center gap-3 bg-card px-4 py-2.5"> <div className="flex gap-2"> <i className="size-3 rounded-full bg-[#ff5f57]" /> <i className="size-3 rounded-full bg-[#febc2e]" /> <i className="size-3 rounded-full bg-[#28c840]" /> </div> <div className="mx-auto w-full max-w-[460px] rounded-lg bg-border px-3 py-1 text-center text-warm-caption text-warm-body">{url}</div> <div className="hidden w-16 sm:block" /> </div> <div className="grid h-[526px] grid-cols-1 md:grid-cols-[185px_1fr_368px]"> <aside className="hidden overflow-hidden bg-card p-2.5 md:block"> <div className="flex items-center gap-2 p-2 text-warm-caption text-foreground"> <span className="grid size-5 place-items-center rounded-full bg-foreground text-[9px] text-background">{user[0]}</span>{user} </div> <ul className="mt-2 space-y-0.5 text-warm-caption text-warm-body"> {nav.map((n) => ( <li key={n} className="flex items-center gap-2 rounded-lg px-2 py-1.5"><span className="size-3 rounded-md ring-1 ring-muted-foreground" />{n}</li> ))} {sub.map((n, i) => ( <li key={n} className={"rounded-lg py-1.5 pl-7 " + (i === 0 ? "bg-border text-foreground" : "")}>{n}</li> ))} </ul> </aside> <main className="overflow-hidden p-5"> <h3 className="text-warm-h3 text-muted-foreground">{pageTitle}</h3> <p className="mt-1 text-warm-caption text-muted-foreground">{pageSubtitle}</p> <div className="mt-4 flex flex-wrap gap-2 text-warm-caption text-foreground"> <span className="rounded-lg bg-card px-3 py-2">{workspace}</span> <span className="rounded-lg bg-card px-3 py-2">Filter</span> <span className="ml-auto rounded-lg bg-card px-3 py-2">Export</span> </div> <div className="mt-4 rounded-xl bg-card p-2"> <div className="px-2 py-1.5 text-warm-caption text-warm-body">Summary</div> <div className="grid grid-cols-2 overflow-hidden rounded-lg bg-background ring-1 ring-border lg:grid-cols-4"> {stats.map((s) => ( <div key={s.l} className="border-border p-3 lg:border-r"> <div className="text-warm-caption text-warm-body">{s.l}</div> <div className="mt-1 text-warm-lead text-foreground">{s.v}</div> <span className="mt-2 inline-block rounded-md bg-card px-1.5 text-warm-caption text-warm-body">{s.d}</span> </div> ))} </div> </div> <div className="mt-4 rounded-xl bg-card p-2"> <div className="px-2 py-1.5 text-warm-caption text-warm-body">Volume</div> <div className="flex justify-center rounded-lg bg-background py-4 ring-1 ring-border"> <div className="relative size-[132px]"> <svg viewBox="0 0 36 36" className="size-full -rotate-90"> <circle cx="18" cy="18" r="15" fill="none" stroke="var(--color-border)" strokeWidth="3.6" /> <circle cx="18" cy="18" r="15" fill="none" stroke="var(--color-foreground)" strokeWidth="3.6" strokeDasharray="80 94.2" /> </svg> <div className="absolute inset-0 grid place-content-center text-center"> <div className="text-warm-h3 text-foreground">{total}</div> <div className="text-warm-caption text-muted-foreground">{totalLabel}</div> </div> </div> </div> </div> </main> <aside className="hidden border-l border-border p-4 md:flex md:flex-col"> <div className="text-warm-ui text-foreground">{chatTitle}</div> <div className="mt-4 rounded-2xl bg-card p-3"> <div className="text-warm-ui text-foreground">Order trends</div> <div className="mt-2 flex gap-2 text-warm-caption text-warm-body"> <span className="rounded-lg bg-background px-2 py-1 ring-1 ring-border">Placed</span> <span className="rounded-lg bg-background px-2 py-1 ring-1 ring-border">Shipped</span> </div> <svg viewBox="0 0 300 120" className="mt-3 w-full rounded-lg bg-background p-2 ring-1 ring-border"> {[20, 45, 70, 95].map((y) => (<line key={y} x1="10" x2="290" y1={y} y2={y} stroke="var(--color-border)" strokeDasharray="3 3" />))} <path d="M10 100 C60 80 90 90 140 55 S230 40 290 20" fill="none" stroke="var(--color-foreground)" strokeWidth="2" /> </svg> </div> <div className="mt-auto"> <div className="rounded-xl bg-card px-3 py-1.5 text-warm-caption text-muted-foreground">Current page data</div> <div className="relative h-20 rounded-b-xl px-3 py-2 text-warm-ui text-muted-foreground ring-1 ring-border"> {placeholder} <button aria-label="Send" className="absolute bottom-2 right-2 grid size-7 place-items-center rounded-full bg-foreground text-background focus-visible:outline focus-visible:outline-2"> <svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" strokeWidth="1.6"><path d="M6 10V2M2.5 5.5 6 2l3.5 3.5" /></svg> </button> </div> </div> </aside> </div> </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: not passedElements must meet minimum color contrast ratio thresholds (1 element)
- 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: not passed3 hard-coded colours (bg-[#ff5f57], bg-[#febc2e], bg-[#28c840]). These ignore the theme and break dark mode.
- Animates cleanly: passedIts animation plays and finishes with everything visible, and it stays still for people who turn on reduced motion.