Strip
apps/www/src/sections/Strip.astro · 25 lines · group Dividers
Strip — a narrow brand-coloured band with one line of uppercase text: the welcome line under the hero, a slogan between sections. Use for: separating and branding — one sentence the page should say out loud. Not for: anything with a button (<CtaCentered>); it is not a call to action, there is nothing to click. Children: none. Theme: "brand" (default) the primary gradient; "dark" a stone band.
In the fleet
Used on 1 site built with this engine.
Samples 1
MDX of this sample
<Strip title="FROST WARNINGS FOR GROWERS — MEASURED IN THE CROP, NOT AT THE AIRPORT" />Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| title | string | yes | the line of text | |
| theme | 'brand' | 'dark' | 'brand' | "brand" gradient, "dark" stone |
Source apps/www/src/sections/Strip.astro @ gitt.one
---
/**
* Strip — a narrow brand-coloured band with one line of uppercase text: the
* welcome line under the hero, a slogan between sections.
*
* Use for: separating and branding — one sentence the page should say out
* loud.
* Not for: anything with a button (<CtaCentered>); it is not a call to action,
* there is nothing to click.
* Children: none.
* Theme: "brand" (default) the primary gradient; "dark" a stone band.
*/
interface Props {
/** the line of text */
title: string;
/** "brand" gradient, "dark" stone */
theme?: 'brand' | 'dark';
}
const { title, theme = 'brand' } = Astro.props;
---
<aside class:list={['px-4 py-3 sm:px-6 lg:px-8', theme === 'dark' ? 'bg-stone-800' : 'bg-gradient-to-r from-primary-800 to-primary-alt-700']}>
<p class="mx-auto max-w-7xl text-center text-sm font-semibold uppercase tracking-wide text-white">{title}</p>
</aside>Source links point to engine-astro@7b686388. Samples are demo content: the components are the real ones, the copy and the pictures are made up.