Skip to content

Hero Components

A collection of beautiful hero sections with various styles and features.

Hero Section Variants

Our starter includes three pre-built hero section layouts that you can use in your project:

  1. Minimal Layout (layoutVariant: 'minimal') - A clean, focused design with essential elements
  2. Featured Layout (layoutVariant: 'featured') - Enhanced layout with prominent visuals and content
  3. Extended Layout (layoutVariant: 'extended') - Comprehensive design with additional features and content areas

Before you start, make sure you have a Hero.astro file inside your sections folder. If you don’t have it, create one and copy the code. If you already have it, you can just overwrite the content with the code.

Hero One Preview
Hero Two Preview
Hero Three Preview

How to Use

To implement these hero components:

  1. Copy the code from your desired hero variation
  2. Paste the code inside Hero.astro file inside the src/sections folder
  3. Customize the content as needed through your Sanity Studio

The layout variants are designed to be flexible and work across different types of content while maintaining consistency in your design system.