Marketing sectionsHero

Open in Create
Search
astronomic.dev

Hero

Free

To build your own hero layout: the heading, a line on what you offer, actions and media, in a fixed order.

File
Hero.astro
Group
Marketing sections
Kind
Static: no JavaScript
Examples
2
import Hero from "@astronomic-dev/ui/components/Hero.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Slots

The hero is a shell: the eyebrow, the heading, the subtitle, the actions and the default slot always show in that order, with the media block after the text. The shell sets the type and the gaps; contentClass lays out the row. HeroSplit is a recipe built on it.

main.astro

Heading emphasis

With emphasis, the one phrase between two asterisks ("Build sites that *last*.") is an <em> in the heading. Off by default, so the heading shows as typed. The <em> has no class: its look is the theme's. Every Hero recipe and every section shell takes the same prop.

emphasis.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.