---
title: Hero Blocks for Astro
description: "Prebuilt Astro hero sections for business websites, portfolios, and landing pages. Compare layouts, preview examples, and install the source."
seo:
    title: "Astro Hero blocks: examples and source"
sidebar:
    label: "Hero"
related:
    - /blocks
    - /components
    - /docs/astro-business-websites
---

## Split image

Introduce the page with text, actions, and a supporting image.

```astro
---
import Hero1Block from "@/components/blocks/hero/hero-1.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero1Block
  title="Make room for the work that matters"
  description="Fieldwork brings the tasks, owners, and notes for your next project into one shared plan."
  badge={{
    label: "Open the sample plan",
    href: "https://example.com/fieldwork/projects",
  }}
  buttons={[
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "default",
    },
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
      variant: "secondary",
    },
  ]}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-1
```

## Social proof

Place example social proof before the main page introduction.

```astro
---
import Hero2Block from "@/components/blocks/hero/hero-2.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero2Block
  title="See what your team will work on next"
  description="Review the next milestone, see who owns each task, and keep open questions beside the work."
  socialProof={{
    avatars: [
      { image: agentAvatars[0], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[1], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[2], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
      variant: "default",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-2
```

## Background

Keep the introduction over a background media area.

```astro
---
import Hero3Block from "@/components/blocks/hero/hero-3.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero3Block
  title="A new season for your reading list"
  description="The Morrow reading room collects practical stories about planning, making, and finishing things."
  buttons={[
    {
      label: "Read the reading list",
      href: "https://example.com/morrow/reading-list",
      variant: "default",
    },
    {
      label: "Browse the reading room",
      href: "https://example.com/morrow/journal",
      variant: "secondary",
    },
  ]}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-3
```

## Full height

Give the background hero more vertical space.

```astro
---
import Hero4Block from "@/components/blocks/hero/hero-4.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero4Block
  title="Plan the next chapter together"
  description="Bring your next project into the open with a short plan that your whole team can read."
  features={[
    "Assign an owner to each task",
    "Keep review notes beside the project",
    "Track the next project milestone",
  ]}
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
      variant: "default",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-4
```

## Checklist

Pair the introduction with a short feature checklist.

```astro
---
import Hero5Block from "@/components/blocks/hero/hero-5.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero5Block
  title="One place for tasks, notes, and decisions"
  description="Keep the project brief, task list, and review notes together as the work changes."
  features={[
    "Assign an owner to each task",
    "Keep review notes beside the project",
    "Track the next project milestone",
    "Share the weekly plan",
  ]}
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
      variant: "default",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[3], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[4], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[5], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-5
```

## Split proof

Keep features and example social proof near the main message.

```astro
---
import Hero6Block from "@/components/blocks/hero/hero-6.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero6Block
  title="Bring the weekly plan into focus"
  description="See the tasks for this week beside the notes that explain why they matter."
  features={[
    "Assign an owner to each task",
    "Keep review notes beside the project",
    "Track the next project milestone",
  ]}
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
      variant: "default",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[6], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[7], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[8], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-6
```

## Wide image

Give the supporting image a wider column.

```astro
---
import Hero7Block from "@/components/blocks/hero/hero-7.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero7Block
  title="Give every project a clear next step"
  description="Read the project brief, agree on the next milestone, and give each task an owner."
  features={[
    "Assign an owner to each task",
    "Keep review notes beside the project",
    "Track the next project milestone",
  ]}
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
      variant: "default",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[0], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[1], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[2], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-7
```

## Image led

Let the image take more space than the introduction.

```astro
---
import Hero8Block from "@/components/blocks/hero/hero-8.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero8Block
  title="A closer look at your next favorite notebook"
  description="Explore paper sizes, covers, and page layouts before choosing a notebook for daily use."
  buttons={[
    {
      label: "Browse notebooks",
      href: "https://example.com/index-supply/catalog",
      variant: "default",
    },
    {
      label: "Compare paper sizes",
      href: "https://example.com/index-supply/paper-sizes",
      variant: "secondary",
    },
  ]}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-8
```

## Masked image

Fade the background media behind the text area.

```astro
---
import Hero9Block from "@/components/blocks/hero/hero-9.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero9Block
  title="Small steps make a useful plan"
  description="Record the next task, keep its context nearby, and review progress at the end of the week."
  features={[
    "Assign an owner to each task",
    "Keep review notes beside the project",
    "Track the next project milestone",
    "Share the weekly plan",
  ]}
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
      variant: "default",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[3], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[4], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[5], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-9
```

## Spread overlay

Spread the title and actions over the background media.

```astro
---
import Hero10Block from "@/components/blocks/hero/hero-10.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero10Block
  title="Choose the work you can finish this week"
  description="Leave room for interruptions while keeping the next milestone visible to the team."
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
      variant: "default",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[6], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[7], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[8], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-10
```

## Centered overlay

Center the introduction over the background media.

```astro
---
import Hero11Block from "@/components/blocks/hero/hero-11.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero11Block
  title="Start the week with a shared direction"
  description="A shared plan makes it easier to ask for help and decide what can wait."
  buttons={[
    {
      label: "Open the sample plan",
      href: "https://example.com/fieldwork/projects",
      variant: "default",
    },
    {
      label: "Read the planning guide",
      href: "https://example.com/fieldwork/guide",
      variant: "secondary",
    },
  ]}
  socialProof={{
    avatars: [
      { image: agentAvatars[0], initials: "LM", name: "Leila Moreno" },
      { image: agentAvatars[1], initials: "OP", name: "Owen Patel" },
      { image: agentAvatars[2], initials: "NC", name: "Nadia Chen" },
    ],
    rating: 5,
    text: "Fictional ratings for this example",
  }}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-11
```

## Editorial bar

Keep the introduction in a bordered bar above the image.

```astro
---
import Hero12Block from "@/components/blocks/hero/hero-12.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero12Block
  title="Notes from a slower working week"
  description="Leila Moreno shares a practical way to make notes that are useful at the next review."
  buttons={[
    {
      label: "Read the journal",
      href: "https://example.com/morrow/journal",
    },
  ]}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-12
```

## Compact split

Keep the text compact beside a larger image.

```astro
---
import Hero13Block from "@/components/blocks/hero/hero-13.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<Hero13Block
  title="Keep the essentials close at hand"
  description="The Index Supply collection brings notebooks, sleeves, and page markers to a small desk."
  buttons={[
    {
      label: "Browse the catalog",
      href: "https://example.com/index-supply/catalog",
    },
  ]}
  image={{ src: placeholderImage, alt: "Sample image placeholder" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-13
```

## Portfolio

Introduce a portfolio with a short profile and project links.

```astro
---
import Block from "@/components/blocks/hero/hero-portfolio.astro"
const content = {
  eyebrow: "Sable · An independent hair studio",
  title: "Good hair.\nYour way.",
  description:
    "A considered cut. Colour that grows with you. A chair where you can settle in and be yourself.",
  action: "Plan your visit",
  projectsLabel: "Find your next look",
  scrollLabel: "find a little inspiration",
  contactHref: "#visit",
  projectsHref: "#looks",
}
---

<Block {...content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-portfolio
```

## Page banner

Use a page introduction with a bordered bar and supporting image.

```astro
---
import PageHeroBlock from "@/components/blocks/hero/hero-full-image-2col.astro"
import placeholderImage from "@/assets/placeholder.webp"
---

<PageHeroBlock
  title="Page Hero"
  description="A page hero with a border bar and full-width image"
  buttonText="View projects"
  buttonHref="/projects"
  image={{ src: placeholderImage, alt: "Page hero image" }}
/>
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-full-image-2col
```

## Orbit hero

Supply your own content. The section uses the selected project preset.

```astro
---
import Block from "@/components/blocks/hero/hero-orbit/hero-orbit.astro"
import type { OrbitHeroContent } from "@/components/blocks/hero/hero-orbit/types"
const content = {
  label: "Meet Gnotch",
  announcement: "Your AI automation studio",
  title: "Less busywork. More room for what comes next.",
  description:
    "We build AI agents and connected workflows for busy service teams. Clear the queue, connect your tools, and give your people space to do their best work.",
  buttons: [
    {
      label: "Find your first workflow",
      href: "/contact",
    },
    {
      label: "Explore the possibilities",
      href: "#solutions",
    },
  ],
  clients: ["Fieldnote", "NORTHLINE", "Plainwork", "COMMONPLACE"],
} satisfies OrbitHeroContent
---

<Block {content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-orbit
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/hero/hero-orbit/types.ts"
    name="OrbitHeroProps"
/>

## Centered page title

Supply your own content. The section uses the selected project preset.

```astro
---
import Block from "@/components/blocks/hero/hero-centered-page/hero-centered-page.astro"
import type { CenteredPageHeroContent } from "@/components/blocks/hero/hero-centered-page/types"
const content = {
  label: "Meet the studio",
  title: "Better Systems Start with the People Using Them",
  image: {
    src: "/media/gnotch/planning-session.webp",
    alt: "A team comparing notes in a shared workspace",
  },
  caption: "A shared table. A clearer plan.",
  description:
    "Gnotch is an AI automation studio for service teams. We bring process design, engineering, and a careful eye for everyday friction to the same table.",
  stats: [
    {
      value: "01",
      label: "Workflow at a time",
    },
    {
      value: "03",
      label: "Steps from idea to use",
    },
    {
      value: "100%",
      label: "Clear ownership",
    },
  ],
} satisfies CenteredPageHeroContent
---

<Block {content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-centered-page
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/hero/hero-centered-page/types.ts"
    name="CenteredPageHeroProps"
/>

## Editorial hero

Use this section for the hero part of a studio site. Set `servicesHref` to the
services section or page, such as `"#capabilities"` or `"/services"`. The template
supplies `"/#service"`. If you change the section ID, change this value too.

```astro
---
import Section from "@/components/blocks/hero/hero-agency/hero-agency.astro"
const section = {
  title: "Space,",
  accent: "well told.",
  description:
    "We build identities, websites, and stories for people who shape the spaces around us.",
  action: {
    label: "Tell us your story",
    href: "https://example.com/contact",
  },
  servicesHref: "https://example.com/#service",
  services: [
    {
      label: "Brand foundations",
      href: "https://example.com/#service",
    },
    {
      label: "Studio websites",
      href: "https://example.com/#service",
    },
    {
      label: "Project stories",
      href: "https://example.com/#service",
    },
    {
      label: "Launch support",
      href: "https://example.com/#service",
    },
  ],
  featured: {
    title: "In focus",
    href: "https://example.com/projects/morrow-rooms",
    image: {
      src: "/media/foldline/morrow-rooms.webp",
      alt: "Warm guesthouse lounge with linen seating, walnut furniture, and soft window light",
    },
  },
  video: "/media/foldline/foldline-flow.mp4",
  clients: ["rook & stone", "morrow", "tern"],
  image: {
    src: "/media/foldline/fold-sculpture.svg",
    alt: "",
  },
}
---

<Section {...section} id="hero-agency-editorial" />
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-agency
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/hero/hero-agency/types.ts"
    name="AgencyHeroProps"
/>

See [serif accent font setup](/docs/installation#serif-accent-fonts-for-editorial-blocks) when installing this section.

## Editorial intro

Use this section for the title of a secondary page.

```astro
---
import Section from "@/components/blocks/hero/hero-agency-intro.astro"
const section = {
  label: "Meet Foldline",
  title: "Close work.",
  accent: "Clear thinking.",
}
---

<Section {...section} id="hero-agency-intro-editorial" />
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-agency-intro
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/shared/agency/types.ts"
    name="AgencyHeadingProps"
/>

See [serif accent font setup](/docs/installation#serif-accent-fonts-for-editorial-blocks) when installing this section.

## Home services hero

```astro
---
import Block from "@/components/blocks/hero/hero-remodify.astro"
import hero from "../../../../../packages/templates/remodify/site/src/assets/remodify/remodeled-home.png"
const content = {
  eyebrow: "Home remodeling in Raleigh, NC",
  title: "Make Home Yours.",
  description:
    "Kitchen, bathroom, and whole-home remodeling in Raleigh. Thoughtful spaces for the way you live.",
  action: {
    label: "Plan Your Remodel",
    href: "#contact",
  },
  background: {
    src: hero,
    alt: "Remodeled white home with a timber front door, covered porch, and landscaped garden",
  },
}
---

<Block {...content} id="hero-remodify" />
```

```sh
bunx --bun shadcn@latest add @gnostic/hero-remodify
```

## Choose a hero layout

Choose a hero from the content you have. A short service page can use a title and two actions. A product page may need a screenshot that explains the product. Portfolio and editorial variants place more weight on the work or story. Use one clear page heading and make the first action describe the next step.

## Pass content from Astro

The variants have different prop types. For example, Hero 1 accepts title, description, an optional badge, buttons, and an image object. Import the block shown in the Code tab and pass your data into those props. Keep route queries and collection access in the page. Change sample claims and links before using the block in a real site.

## Responsive layout and images

Test the actual heading at a narrow width; a short demo title does not reveal every line-wrap problem. Buttons can wrap, but their reading order should remain clear. Hero 1 uses an Astro image with responsive widths and eager loading. Supply a local image import where ImageMetadata is required. Choose a crop that keeps the subject visible and write alt text for what the image adds to the page.

## Compose the next section

Follow the hero with [Features](/blocks/features) that support its claim or [Content](/blocks/content) that explains the offer. Use [Reviews](/blocks/reviews) only for real evidence. A hero does not need an image when the image adds no useful information.
