CoverComposition
Media with a heading, prose and buttons over it. Wide, the content lies on a scrim over the media and reads one of the ground's two overlay families; narrow, it stands below the media and reads the page.
Dark overlay (default)
overlay="dark": a dark scrim, light ink, a light button — in every mode.
---
import CoverComposition from "tsugite/CoverComposition/CoverComposition.astro";
import image from "../../assets/media/jean-philippe.jpg";
---
<CoverComposition
title="Light words on a dark scrim"
preamble="The default overlay: the scrim darkens the media, and the content reads the ground's dark overlay family."
image={image}
buttons={[
{ url: "#", text: "Primary", emphasis: "primary" },
{ url: "#", text: "Secondary", emphasis: "secondary" },
]}
/>Light overlay
overlay="light": a light scrim, dark ink, a dark button — for a washed-out film under a milky veil.
---
import CoverComposition from "tsugite/CoverComposition/CoverComposition.astro";
import image from "../../assets/media/jean-philippe.jpg";
---
<CoverComposition
overlay="light"
title="Dark words on a light scrim"
preamble="A milky veil over the media, and the content reads the ground's light overlay family."
image={image}
buttons={[
{ url: "#", text: "Primary", emphasis: "primary" },
{ url: "#", text: "Secondary", emphasis: "secondary" },
]}
/>