Page sections / Blog & articles
Offset Essay Column
Long-form manifesto text set in 20px semibold black in a right-half column (starts at 50% of the grid) leaving the left half empty, with italic emphasis and a small faint footnote citation at the end.
Rebuilt from thisislandscape.com/profile in the Gallery White Editorial style.
npx shadcn@latest add https://justyoink.it/r/gallery-white-editorial/blocks/two-column-essay.json
Looks exactly like thisislandscape.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/gallery-white-editorial/mine/two-column-essay.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
Pass `paragraphs` (array of ReactNodes, use <em> for italics) and `footnote` to override copy. The text sits in the right half on md+ screens and fades in on scroll.
components/two-column-essay.tsx
"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; type Props = { paragraphs?: React.ReactNode[]; footnote?: React.ReactNode; }; const defaultParagraphs: React.ReactNode[] = [ <>The word <em>cartography</em>, from the old roots for "map" and "writing," once described a single craft. For early navigators, drawing a coastline and sailing along it were never separate pursuits*; observing and shaping were one practice.</>, <>That shared outlook still guides our studio. As the name Northwind implies, we keep a restless curiosity about shifts in culture, commerce and tools, knowing these currents are tangled together and that good work never sits apart from the <em>weather</em> around it.</>, <>Our seasoned, close-knit team has spent years untangling difficult problems for organizations with equally layered needs. A small, international practice based in Lisbon, we are curious, hopeful people who collaborate through a lean and tightly knit process.</>, <>Across the last decade, that approach has drawn founders, institutions and independent makers who explore the frontier: from rethinking clean water delivery and modular housing, to charting ocean data and reimagining how communities learn.</>, <>In uncertain times, we take our energy from the courage of the people we serve and find lasting reward in applying new tools to help them thrive, producing work that is cherished, durable, distinctive and useful.</>, ]; export default function OffsetEssayColumn({ paragraphs = defaultParagraphs, footnote = <>*Adapted from <em>A Short History of Maps and Mapmakers</em></>, }: Props) { return ( <section className="bg-canvas px-4 py-8 text-ink md:px-5"> <Reveal from="none" duration={1000}> <div className="grid grid-cols-1 md:grid-cols-2"> <div className="hidden md:block" aria-hidden="true" /> <div className="flex max-w-[720px] flex-col gap-5 font-sans text-[20px] font-semibold leading-6 tracking-[-0.01em] text-ink"> {paragraphs.map((p, i) => ( <p key={i}>{p}</p> ))} <p className="mt-3 text-[14px] font-medium leading-5 text-ink-faint">{footnote}</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 = { paragraphs?: React.ReactNode[]; footnote?: React.ReactNode; }; const defaultParagraphs: React.ReactNode[] = [ <>The word <em>cartography</em>, from the old roots for "map" and "writing," once described a single craft. For early navigators, drawing a coastline and sailing along it were never separate pursuits*; observing and shaping were one practice.</>, <>That shared outlook still guides our studio. As the name Northwind implies, we keep a restless curiosity about shifts in culture, commerce and tools, knowing these currents are tangled together and that good work never sits apart from the <em>weather</em> around it.</>, <>Our seasoned, close-knit team has spent years untangling difficult problems for organizations with equally layered needs. A small, international practice based in Lisbon, we are curious, hopeful people who collaborate through a lean and tightly knit process.</>, <>Across the last decade, that approach has drawn founders, institutions and independent makers who explore the frontier: from rethinking clean water delivery and modular housing, to charting ocean data and reimagining how communities learn.</>, <>In uncertain times, we take our energy from the courage of the people we serve and find lasting reward in applying new tools to help them thrive, producing work that is cherished, durable, distinctive and useful.</>, ]; export default function OffsetEssayColumn({ paragraphs = defaultParagraphs, footnote = <>*Adapted from <em>A Short History of Maps and Mapmakers</em></>, }: Props) { return ( <section className="bg-background px-4 py-8 text-foreground md:px-5"> <Reveal from="none" duration={1000}> <div className="grid grid-cols-1 md:grid-cols-2"> <div className="hidden md:block" aria-hidden="true" /> <div className="flex max-w-[720px] flex-col gap-5 font-sans text-[20px] font-semibold leading-6 tracking-[-0.01em] text-foreground"> {paragraphs.map((p, i) => ( <p key={i}>{p}</p> ))} <p className="mt-3 text-[14px] font-medium leading-5 text-muted-foreground">{footnote}</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: not passedElements must meet minimum color contrast ratio thresholds (2 elements)
- 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.