Skip to content
Viewership Inquire
Astro UI

Hero Poster.

Full-bleed image or video with the headline set over it, bottom left, behind a soft scrim.

HeroSection1 dependency Original, MIT

.md
Mountain ridges under a full moon

Winter collection. Boundary Waters, Minnesota.

Out past the last road.

Shells and sleep systems rated for minus thirty, tested by people who go there on purpose.

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 HeroPoster.astro

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

  3. Copy its dependencies

    Each in its own folder, next to this one.

  4. Use it

    Page.astro
    ---
    import HeroPoster from "../components/viewership/hero-poster/HeroPoster.astro";
    ---
    
    <HeroPoster />

Props 8

PropTypeDefaultDescription
title string · Headline.
accent string · Closing words of the headline.
body string · Supporting paragraph.
primary { label: string; href: string } · Main call to action (accent button).
secondary { label: string; href: string } · Second action.
caption string · Short line in the top corner.
as "h1" | "h2" "h1" Heading element.
slot: media slot · Background image or video, covers the section.

Source 1 file

Original, MIT.