Narrow Install Guide Page
Centered ~700px reading column: back link, sans headline, gray lead, two buttons, numbered steps, hairline rule, bullet list and small footnote.
Rebuilt from silico.ai/download in the Moonlit Atelier style.
npx shadcn@latest add https://justyoink.it/r/moonlit-atelier/blocks/narrow-install-guide.json
Looks exactly like silico.ai: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/moonlit-atelier/mine/narrow-install-guide.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
All copy (title, lead, button labels, steps, features, footnote) is overridable via props; each has a default so it renders with no props. The back link fades to 0.7 on hover and the buttons to 0.85.
components/narrow-install-guide.tsx
"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; type Props = { backLabel?: string; title?: string; lead?: string; primaryLabel?: string; primaryMeta?: string; secondaryLabel?: string; secondaryMeta?: string; requirement?: string; stepsHeading?: string; steps?: string[]; features?: string[]; footnote?: string; }; export default function NarrowInstallGuidePage({ backLabel = "← lumenpad.app", title = "Lumenpad for Desktop", lead = "Your notes and drafts, now living beside your files. Capture an idea and it is filed where you expect it.", primaryLabel = "Get the Arm build", primaryMeta = "Newer Macs", secondaryLabel = "Get the x86 build", secondaryMeta = "Older Macs", requirement = "Requires version 13 or newer. New releases arrive automatically.", stepsHeading = "First launch walkthrough", steps = [ "Double-click the installer image and move Lumenpad into your Applications folder.", "Launch Lumenpad. A warning appears because the build has not been reviewed by the platform yet. Dismiss it.", "Visit System Settings, choose Privacy & Security, then press Allow Anyway beside the Lumenpad entry.", "Launch Lumenpad a second time and approve. This is a one-time step.", ], features = [ "Keeps every note in a local vault you pick, with full offline access.", "Reads your calendar and contacts only after a clear permission prompt each time.", "Opens links in a separate window and passes control back to you whenever a login is needed.", "Switch to sync-only mode from the menu bar whenever you like.", ], footnote = "Once installed, sign in and enable Local vault from the profile menu.", }: Props) { const btn = "inline-flex items-center gap-2.5 rounded-pill bg-paper px-5 py-3 text-[14px] font-medium text-canvas transition-opacity duration-ui-hover ease-ui-hover hover:opacity-85 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"; return ( <main className="min-h-screen bg-canvas font-sans text-secondary"> <Reveal from="up" className="mx-auto w-full max-w-[704px] px-6 py-16"> <a href="#" className="text-[13px] text-muted transition-opacity duration-ui-hover ease-ui-hover hover:opacity-70 focus-visible:outline focus-visible:outline-1 focus-visible:outline-primary">{backLabel}</a> <h1 className="mt-10 text-[44px] font-medium leading-tight tracking-[-0.03em] text-primary">{title}</h1> <p className="mt-5 text-[16px] leading-6 text-secondary">{lead}</p> <div className="mt-8 flex flex-wrap gap-3"> <a href="#" className={btn}>{primaryLabel}<span className="text-[12px] font-normal text-muted">{primaryMeta}</span></a> <a href="#" className={btn}>{secondaryLabel}<span className="text-[12px] font-normal text-muted">{secondaryMeta}</span></a> </div> <p className="mt-5 text-[13px] text-muted">{requirement}</p> <h2 className="mt-14 text-[15px] font-medium text-primary">{stepsHeading}</h2> <ol className="mt-4 list-decimal space-y-2 pl-5 text-[15px] leading-6 marker:text-secondary"> {steps.map((s, i) => <li key={i}>{s}</li>)} </ol> <hr className="my-10 border-0 border-t border-hairline" /> <ul className="list-disc space-y-2 pl-5 text-[15px] leading-6 marker:text-secondary"> {features.map((s, i) => <li key={i}>{s}</li>)} </ul> <p className="mt-8 text-[13px] text-muted">{footnote}</p> </Reveal> </main> ); } // ---- 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 = { backLabel?: string; title?: string; lead?: string; primaryLabel?: string; primaryMeta?: string; secondaryLabel?: string; secondaryMeta?: string; requirement?: string; stepsHeading?: string; steps?: string[]; features?: string[]; footnote?: string; }; export default function NarrowInstallGuidePage({ backLabel = "← lumenpad.app", title = "Lumenpad for Desktop", lead = "Your notes and drafts, now living beside your files. Capture an idea and it is filed where you expect it.", primaryLabel = "Get the Arm build", primaryMeta = "Newer Macs", secondaryLabel = "Get the x86 build", secondaryMeta = "Older Macs", requirement = "Requires version 13 or newer. New releases arrive automatically.", stepsHeading = "First launch walkthrough", steps = [ "Double-click the installer image and move Lumenpad into your Applications folder.", "Launch Lumenpad. A warning appears because the build has not been reviewed by the platform yet. Dismiss it.", "Visit System Settings, choose Privacy & Security, then press Allow Anyway beside the Lumenpad entry.", "Launch Lumenpad a second time and approve. This is a one-time step.", ], features = [ "Keeps every note in a local vault you pick, with full offline access.", "Reads your calendar and contacts only after a clear permission prompt each time.", "Opens links in a separate window and passes control back to you whenever a login is needed.", "Switch to sync-only mode from the menu bar whenever you like.", ], footnote = "Once installed, sign in and enable Local vault from the profile menu.", }: Props) { const btn = "inline-flex items-center gap-2.5 rounded-full bg-primary px-5 py-3 text-[14px] font-medium text-primary-foreground transition-opacity duration-moonlit-ui-hover ease-moonlit-ui-hover hover:opacity-85 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground"; return ( <main className="min-h-screen bg-background font-sans text-muted-foreground"> <Reveal from="up" className="mx-auto w-full max-w-[704px] px-6 py-16"> <a href="#" className="text-[13px] text-muted-foreground transition-opacity duration-moonlit-ui-hover ease-moonlit-ui-hover hover:opacity-70 focus-visible:outline focus-visible:outline-1 focus-visible:outline-foreground">{backLabel}</a> <h1 className="mt-10 text-[44px] font-medium leading-tight tracking-[-0.03em] text-foreground">{title}</h1> <p className="mt-5 text-[16px] leading-6 text-muted-foreground">{lead}</p> <div className="mt-8 flex flex-wrap gap-3"> <a href="#" className={btn}>{primaryLabel}<span className="text-[12px] font-normal text-muted-foreground">{primaryMeta}</span></a> <a href="#" className={btn}>{secondaryLabel}<span className="text-[12px] font-normal text-muted-foreground">{secondaryMeta}</span></a> </div> <p className="mt-5 text-[13px] text-muted-foreground">{requirement}</p> <h2 className="mt-14 text-[15px] font-medium text-foreground">{stepsHeading}</h2> <ol className="mt-4 list-decimal space-y-2 pl-5 text-[15px] leading-6 marker:text-muted-foreground"> {steps.map((s, i) => <li key={i}>{s}</li>)} </ol> <hr className="my-10 border-0 border-t border-border" /> <ul className="list-disc space-y-2 pl-5 text-[15px] leading-6 marker:text-muted-foreground"> {features.map((s, i) => <li key={i}>{s}</li>)} </ul> <p className="mt-8 text-[13px] text-muted-foreground">{footnote}</p> </Reveal> </main> ); } // ---- 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 (5 elements)
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (2 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.