Skip to content
Viewership Inquire
Astro UI

Hero Split.

Headline and actions beside a media panel; stacks when narrow, flips with one prop.

HeroSection1 dependency Original, MIT

.md

Built to be mended, not replaced.

Every pack comes with a map of where it was made and a promise to fix it for as long as you own it.

Free returns within 60 days, used or not.

Topographic contour map
Style

Using Claude Code? Give it the agent prompt and skip these steps.

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy HeroSplit.astro

    Paste into src/components/viewership/hero-split/

  3. Copy its dependencies

    Each in its own folder, next to this one.

  4. Use it

    Page.astro
    ---
    import HeroSplit from "../components/viewership/hero-split/HeroSplit.astro";
    ---
    
    <HeroSplit />

Props 9

PropTypeDefaultDescription
title string · Headline.
accent string · Closing words of the headline, drawn in the theme's accent style.
body string · Supporting paragraph.
primary { label: string; href: string } · Main call to action.
secondary { label: string; href: string } · Text-style second action.
note string · Small line under the actions.
reverse boolean false Media on the left.
as "h1" | "h2" "h1" Heading element.
slot: media slot · Image or video, cropped to 4:3.

Source 1 file

Original, MIT.