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:
- Minimal Layout (
layoutVariant: 'minimal'
) - A clean, focused design with essential elements - Featured Layout (
layoutVariant: 'featured'
) - Enhanced layout with prominent visuals and content - 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.
How to Use
To implement these hero components:
- Copy the code from your desired hero variation
- Paste the code inside
Hero.astro
file inside thesrc/sections
folder - 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.