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.

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>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Gallery Graphite Editorial

The whole style →

Outlined Arrow Pill Button

Buttons

Square Outline Cookie Panel

Toasts & snackbars

Rounded Showreel Video Frame

Media & mockups

Line-Art Blueprint Illustration

Animated graphics

Tracked Micro Label

Badges & tags

Hairline Minimal Header

Headers & nav bars