Page sections / Feature sections
Giant Caps Section Heading
Section opener with a hairline rule, a tiny tracked 'LEARN MORE ABOUT OUR' label and an oversized heavy serif all-caps word 'SERVICES' centred.
Rebuilt from epic.net in the Gallery Graphite Editorial style.
npx shadcn@latest add https://justyoink.it/r/gallery-graphite-editorial/blocks/giant-serif-heading.json
Looks exactly like epic.net: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/gallery-graphite-editorial/mine/giant-serif-heading.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: `label` (small tracked caption) and `heading` (giant all-caps word). The label fades in and the heading slides up from a mask once the section scrolls into view.
components/giant-serif-heading.tsx
import { useEffect, useRef, useState } from "react"; export default function GiantCapsSectionHeading({ label = "Discover more about our", heading = "WORKSHOPS", }: { label?: string; heading?: string; }) { const ref = useRef<HTMLElement>(null); const [shown, setShown] = useState(false); useEffect(() => { const el = ref.current; if (!el) return; const io = new IntersectionObserver( ([e]) => { if (e.isIntersecting) { setShown(true); io.disconnect(); } }, { threshold: 0.2 } ); io.observe(el); return () => io.disconnect(); }, []); return ( <section ref={ref} className="bg-canvas text-ink px-5 md:px-10"> <div className="mx-auto max-w-[1200px]"> <hr className="border-0 border-t border-hairline" /> <div className="flex flex-col items-center pt-16 pb-16 md:pt-24 md:pb-24"> <p className={`font-sans text-label uppercase tracking-[0.3em] text-[11px] transition-opacity duration-label-reveal ease-label-reveal motion-reduce:transition-none ${ shown ? "opacity-100" : "opacity-0" }`} > {label} </p> <div className="overflow-hidden mt-4 md:mt-6 pb-2"> <h2 className={`font-display font-black uppercase text-center leading-[0.95] tracking-[-0.01em] text-[18vw] md:text-[120px] transition-transform duration-[1000ms] ease-[cubic-bezier(0.19,1,0.22,1)] motion-reduce:transition-none ${ shown ? "translate-y-0" : "translate-y-full" }`} > {heading} </h2> </div> </div> </div> </section> ); }import { useEffect, useRef, useState } from "react"; export default function GiantCapsSectionHeading({ label = "Discover more about our", heading = "WORKSHOPS", }: { label?: string; heading?: string; }) { const ref = useRef<HTMLElement>(null); const [shown, setShown] = useState(false); useEffect(() => { const el = ref.current; if (!el) return; const io = new IntersectionObserver( ([e]) => { if (e.isIntersecting) { setShown(true); io.disconnect(); } }, { threshold: 0.2 } ); io.observe(el); return () => io.disconnect(); }, []); return ( <section ref={ref} className="bg-background text-foreground px-5 md:px-10"> <div className="mx-auto max-w-[1200px]"> <hr className="border-0 border-t border-border" /> <div className="flex flex-col items-center pt-16 pb-16 md:pt-24 md:pb-24"> <p className={`font-sans text-gallery-label uppercase tracking-[0.3em] text-[11px] transition-opacity duration-gallery-label-reveal ease-gallery-label-reveal motion-reduce:transition-none ${ shown ? "opacity-100" : "opacity-0" }`} > {label} </p> <div className="overflow-hidden mt-4 md:mt-6 pb-2"> <h2 className={`font-sans font-black uppercase text-center leading-[0.95] tracking-[-0.01em] text-[18vw] md:text-[120px] transition-transform duration-[1000ms] ease-[cubic-bezier(0.19,1,0.22,1)] motion-reduce:transition-none ${ shown ? "translate-y-0" : "translate-y-full" }`} > {heading} </h2> </div> </div> </div> </section> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: not passedScrolls sideways at phone width (390px)Scrolls sideways at tablet width (768px)
- 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.