Hero Blocks for Astro
Prebuilt Astro hero sections for business websites, portfolios, and landing pages. Compare layouts, preview examples, and install the source.
Split image
Introduce the page with text, actions, and a supporting image.
bunx --bun shadcn@latest add @gnostic/hero-1npx shadcn@latest add @gnostic/hero-1pnpm dlx shadcn@latest add @gnostic/hero-1Fullscreen video
Place a heading and action over video with an image fallback.
bunx --bun shadcn@latest add @gnostic/hero-fullscreen-videonpx shadcn@latest add @gnostic/hero-fullscreen-videopnpm dlx shadcn@latest add @gnostic/hero-fullscreen-videoSocial proof
Place example social proof before the main page introduction.
bunx --bun shadcn@latest add @gnostic/hero-2npx shadcn@latest add @gnostic/hero-2pnpm dlx shadcn@latest add @gnostic/hero-2Background
Keep the introduction over a background media area.
bunx --bun shadcn@latest add @gnostic/hero-3npx shadcn@latest add @gnostic/hero-3pnpm dlx shadcn@latest add @gnostic/hero-3Full height
Give the background hero more vertical space.
bunx --bun shadcn@latest add @gnostic/hero-4npx shadcn@latest add @gnostic/hero-4pnpm dlx shadcn@latest add @gnostic/hero-4Checklist
Pair the introduction with a short feature checklist.
bunx --bun shadcn@latest add @gnostic/hero-5npx shadcn@latest add @gnostic/hero-5pnpm dlx shadcn@latest add @gnostic/hero-5Split proof
Keep features and example social proof near the main message.
bunx --bun shadcn@latest add @gnostic/hero-6npx shadcn@latest add @gnostic/hero-6pnpm dlx shadcn@latest add @gnostic/hero-6Wide image
Give the supporting image a wider column.
bunx --bun shadcn@latest add @gnostic/hero-7npx shadcn@latest add @gnostic/hero-7pnpm dlx shadcn@latest add @gnostic/hero-7Image led
Let the image take more space than the introduction.
bunx --bun shadcn@latest add @gnostic/hero-8npx shadcn@latest add @gnostic/hero-8pnpm dlx shadcn@latest add @gnostic/hero-8Masked image
Fade the background media behind the text area.
bunx --bun shadcn@latest add @gnostic/hero-9npx shadcn@latest add @gnostic/hero-9pnpm dlx shadcn@latest add @gnostic/hero-9Spread overlay
Spread the title and actions over the background media.
bunx --bun shadcn@latest add @gnostic/hero-10npx shadcn@latest add @gnostic/hero-10pnpm dlx shadcn@latest add @gnostic/hero-10Centered overlay
Center the introduction over the background media.
bunx --bun shadcn@latest add @gnostic/hero-11npx shadcn@latest add @gnostic/hero-11pnpm dlx shadcn@latest add @gnostic/hero-11Editorial bar
Keep the introduction in a bordered bar above the image.
bunx --bun shadcn@latest add @gnostic/hero-12npx shadcn@latest add @gnostic/hero-12pnpm dlx shadcn@latest add @gnostic/hero-12Compact split
Keep the text compact beside a larger image.
bunx --bun shadcn@latest add @gnostic/hero-13npx shadcn@latest add @gnostic/hero-13pnpm dlx shadcn@latest add @gnostic/hero-13Page banner
Use a page introduction with a bordered bar and supporting image.
bunx --bun shadcn@latest add @gnostic/hero-full-image-2colnpx shadcn@latest add @gnostic/hero-full-image-2colpnpm dlx shadcn@latest add @gnostic/hero-full-image-2colOrbit hero
Supply your own content. The section uses the selected project preset.
bunx --bun shadcn@latest add @gnostic/hero-orbitnpx shadcn@latest add @gnostic/hero-orbitpnpm dlx shadcn@latest add @gnostic/hero-orbitcontentOrbitHeroContent
Section content.
OrbitHeroContentclass?string
Classes added to the root.
stringCentered page title
Supply your own content. The section uses the selected project preset.
bunx --bun shadcn@latest add @gnostic/hero-centered-pagenpx shadcn@latest add @gnostic/hero-centered-pagepnpm dlx shadcn@latest add @gnostic/hero-centered-pagecontentCenteredPageHeroContent
Section content.
CenteredPageHeroContentclass?string
Classes added to the root.
stringEditorial 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.
bunx --bun shadcn@latest add @gnostic/hero-featured-projectnpx shadcn@latest add @gnostic/hero-featured-projectpnpm dlx shadcn@latest add @gnostic/hero-featured-projecttitlestring
Main heading.
stringaccentstring
Italic heading line.
stringdescriptionstring
Studio introduction.
stringactionBlockLink
Main call to action.
BlockLinkservicesBlockLink[]
Service links.
BlockLink[]servicesHrefstring
Destination for the services arrow. Supply a section fragment or page URL.
stringfeatured{ title: string; href: string; image: BlockImageUrl }
Featured project.
{ title: string; href: string; image: BlockImageUrl }image?BlockImageUrl
Optional foreground artwork.
BlockImageUrlvideo?string
Optional decorative video. Respects reduced motion.
stringclientsstring[]
Client names.
string[]class?string
Classes for the root element.
stringSee serif accent font setup when installing this section.
Editorial intro
Use this section for the title of a secondary page.
bunx --bun shadcn@latest add @gnostic/hero-serif-introductionnpx shadcn@latest add @gnostic/hero-serif-introductionpnpm dlx shadcn@latest add @gnostic/hero-serif-introductionlabelstring
Small section label.
stringtitlestring
Main heading text.
stringaccent?string
Optional italic heading text.
stringdescription?string
Supporting copy.
stringclass?string
Classes for the root element.
stringSee serif accent font setup when installing this section.
Masked background
Place a heading and links above a background photo. Use the action prop for one link or the actions slot for custom buttons.
bunx --bun shadcn@latest add @gnostic/hero-masked-backgroundnpx shadcn@latest add @gnostic/hero-masked-backgroundpnpm dlx shadcn@latest add @gnostic/hero-masked-backgroundChoose 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 that support its claim or Content that explains the offer. Use Reviews only for real evidence. A hero does not need an image when the image adds no useful information.
Named slots
These slots are optional. Use the slot name on a direct child of the block.
hero-masked-background
background?Astro content
Replaces the background image.
Astro contentAstro Image from data.backgroundactions?Astro content
Sets the actions below the description.
Astro contentCTA button when data.action is presenthero-orbit
background?Astro content
Adds a background layer behind the hero content.
Astro contentmark?Astro content
Places the same mark before each client name.
Astro contentpage-top
buttons?Astro content
Adds actions after the buttons supplied through props.
Astro contentimage?Astro content
Adds content after the image supplied through props.
Astro content


