Outlined Social Footer
Hairline-topped footer with agency address and phone in small Inter on the left, line-icon plus link list in the middle, and a row of circular outlined social icons with an outlined newsletter pill at right.
Rebuilt from epic.net in the Gallery Graphite Editorial style.
npx shadcn@latest add https://yoink-app.fly.dev/r/gallery-graphite-editorial/blocks/column-footer.json
Looks exactly like epic.net: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://yoink-app.fly.dev/r/gallery-graphite-editorial/mine/column-footer.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: name, addressLines (string[]), phone, links ({label, href}[]) and newsletterLabel. Renders standalone with defaults; social circles and the newsletter pill fill with ink on hover.
components/column-footer.tsx
"use client"; import { useEffect, useLayoutEffect, useRef, useState, type CSSProperties, type ElementType, type ReactNode, type RefObject } from "react"; type Link = { label: string; href: string }; type Props = { name?: string; addressLines?: string[]; phone?: string; links?: Link[]; newsletterLabel?: string; }; const socialPaths: { label: string; d: string }[] = [ { label: "Facebook", d: "M14 8h2V5h-2.5C11 5 10 6.5 10 8.5V10H8v3h2v6h3v-6h2l.5-3H13V8.7c0-.5.2-.7 1-.7z" }, { label: "LinkedIn", d: "M6 9h3v9H6zM7.5 5a1.7 1.7 0 110 3.4 1.7 1.7 0 010-3.4zM11 9h2.8v1.3c.5-.9 1.5-1.5 3-1.5 2.5 0 3.2 1.600 3.200 3.800V18h-3v-4.800c0-1.100-.3-1.900-1.400-1.900-1.200 0-1.600.9-1.600 1.900V18h-3z" }, { label: "Instagram", d: "M8 5h8a3 3 0 013 3v8a3 3 0 01-3 3H8a3 3 0 01-3-3V8a3 3 0 013-3zm4 4a3 3 0 100 6 3 3 0 000-6zm4.200-1.700a.8.8 0 100 1.600.8.8 0 000-1.600z" }, { label: "Dribbble", d: "M12 4a8 8 0 100 16 8 8 0 000-16zm-5 6c3 0 6-1 8-3M9 5c2 2 4 6 5 13M5 13c4-1 9-1 14 1" }, ]; export default function OutlinedSocialFooter({ name = "Northwind Studio", addressLines = ["Harbor Lane 14, suite 3", "B-1000 Brussels", "Belgium"], phone = "+32 2 555 01 23", links = [ { label: "General terms", href: "#" }, { label: "Privacy Policy", href: "#" }, { label: "Cookie Policy", href: "#" }, { label: "Cookie settings", href: "#" }, ], newsletterLabel = "Subscribe to our newsletter", }: Props) { return ( <footer className="bg-canvas text-ink font-sans border-t border-hairline"> <Reveal from="up" distance={16}> <div className="mx-auto grid max-w-[1200px] gap-10 px-6 py-16 md:grid-cols-[1fr_1fr_1fr] md:px-0"> <div> <p className="text-body font-semibold">{name}</p> <address className="mt-5 not-italic text-body leading-[23px]"> {addressLines.map((l) => ( <span key={l} className="block">{l}</span> ))} </address> <a href={`tel:${phone.replace(/\s/g, "")}`} className="mt-4 inline-block text-body transition-opacity hover:opacity-60 focus-visible:outline focus-visible:outline-1">{phone}</a> </div> <div> <div className="flex gap-3" aria-hidden="true"> {[0, 1, 2].map((i) => ( <svg key={i} width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1"> {i === 0 && <><rect x="1.500" y="1.500" width="13" height="13" /><path d="M1.500 8h6V1.500M8 14.500V8h6.500" /></>} {i === 1 && <path d="M1 13l1-8 4 3 2-3 2 3 4-3 1 8z" />} {i === 2 && <path d="M8 1v14M8 5l3-2M8 8l-3-2M8 11l3-2" />} </svg> ))} </div> <ul className="mt-4 space-y-2"> {links.map((l) => ( <li key={l.label}> <a href={l.href} className="text-body transition-opacity hover:opacity-60 focus-visible:outline focus-visible:outline-1">{l.label}</a> </li> ))} </ul> </div> <div className="flex flex-col md:items-end"> <div className="flex gap-3"> {socialPaths.map((s) => ( <a key={s.label} href="#" aria-label={s.label} className="flex h-9 w-9 items-center justify-center rounded-circle border border-ink text-ink transition-colors duration-hover-fill ease-hover-fill hover:bg-ink hover:text-on-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"> <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" stroke="none"><path d={s.d} /></svg> </a> ))} </div> <a href="#" className="mt-4 inline-flex items-center gap-2 rounded-pill border border-ink px-3.5 py-1 text-[11px] font-semibold uppercase tracking-tight transition-colors duration-hover-fill ease-hover-fill hover:bg-ink hover:text-on-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"> {newsletterLabel} <svg width="13" height="13" viewBox="0 0 16 16" fill="none" stroke="currentColor" aria-hidden="true"><rect x="2" y="2" width="12" height="12" /><path d="M5 6h6M5 9h6M5 12h3" /></svg> </a> </div> </div> </Reveal> </footer> ); } // ---- 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 Link = { label: string; href: string }; type Props = { name?: string; addressLines?: string[]; phone?: string; links?: Link[]; newsletterLabel?: string; }; const socialPaths: { label: string; d: string }[] = [ { label: "Facebook", d: "M14 8h2V5h-2.5C11 5 10 6.5 10 8.5V10H8v3h2v6h3v-6h2l.5-3H13V8.7c0-.5.2-.7 1-.7z" }, { label: "LinkedIn", d: "M6 9h3v9H6zM7.5 5a1.7 1.7 0 110 3.4 1.7 1.7 0 010-3.4zM11 9h2.8v1.3c.5-.9 1.5-1.5 3-1.5 2.5 0 3.2 1.600 3.200 3.800V18h-3v-4.800c0-1.100-.3-1.900-1.400-1.900-1.200 0-1.600.9-1.600 1.900V18h-3z" }, { label: "Instagram", d: "M8 5h8a3 3 0 013 3v8a3 3 0 01-3 3H8a3 3 0 01-3-3V8a3 3 0 013-3zm4 4a3 3 0 100 6 3 3 0 000-6zm4.200-1.700a.8.8 0 100 1.600.8.8 0 000-1.600z" }, { label: "Dribbble", d: "M12 4a8 8 0 100 16 8 8 0 000-16zm-5 6c3 0 6-1 8-3M9 5c2 2 4 6 5 13M5 13c4-1 9-1 14 1" }, ]; export default function OutlinedSocialFooter({ name = "Northwind Studio", addressLines = ["Harbor Lane 14, suite 3", "B-1000 Brussels", "Belgium"], phone = "+32 2 555 01 23", links = [ { label: "General terms", href: "#" }, { label: "Privacy Policy", href: "#" }, { label: "Cookie Policy", href: "#" }, { label: "Cookie settings", href: "#" }, ], newsletterLabel = "Subscribe to our newsletter", }: Props) { return ( <footer className="bg-background text-foreground font-sans border-t border-border"> <Reveal from="up" distance={16}> <div className="mx-auto grid max-w-[1200px] gap-10 px-6 py-16 md:grid-cols-[1fr_1fr_1fr] md:px-0"> <div> <p className="text-gallery-body font-semibold">{name}</p> <address className="mt-5 not-italic text-gallery-body leading-[23px]"> {addressLines.map((l) => ( <span key={l} className="block">{l}</span> ))} </address> <a href={`tel:${phone.replace(/\s/g, "")}`} className="mt-4 inline-block text-gallery-body transition-opacity hover:opacity-60 focus-visible:outline focus-visible:outline-1">{phone}</a> </div> <div> <div className="flex gap-3" aria-hidden="true"> {[0, 1, 2].map((i) => ( <svg key={i} width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1"> {i === 0 && <><rect x="1.500" y="1.500" width="13" height="13" /><path d="M1.500 8h6V1.500M8 14.500V8h6.500" /></>} {i === 1 && <path d="M1 13l1-8 4 3 2-3 2 3 4-3 1 8z" />} {i === 2 && <path d="M8 1v14M8 5l3-2M8 8l-3-2M8 11l3-2" />} </svg> ))} </div> <ul className="mt-4 space-y-2"> {links.map((l) => ( <li key={l.label}> <a href={l.href} className="text-gallery-body transition-opacity hover:opacity-60 focus-visible:outline focus-visible:outline-1">{l.label}</a> </li> ))} </ul> </div> <div className="flex flex-col md:items-end"> <div className="flex gap-3"> {socialPaths.map((s) => ( <a key={s.label} href="#" aria-label={s.label} className="flex h-9 w-9 items-center justify-center rounded-full border border-foreground text-primary-foreground transition-colors duration-gallery-hover-fill ease-gallery-hover-fill hover:bg-primary hover:text-primary-foreground focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"> <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" stroke="none"><path d={s.d} /></svg> </a> ))} </div> <a href="#" className="mt-4 inline-flex items-center gap-2 rounded-full border border-foreground px-3.5 py-1 text-[11px] font-semibold uppercase tracking-tight transition-colors duration-gallery-hover-fill ease-gallery-hover-fill hover:bg-primary hover:text-primary-foreground focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"> {newsletterLabel} <svg width="13" height="13" viewBox="0 0 16 16" fill="none" stroke="currentColor" aria-hidden="true"><rect x="2" y="2" width="12" height="12" /><path d="M5 6h6M5 9h6M5 12h3" /></svg> </a> </div> </div> </Reveal> </footer> ); } // ---- 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.