Skip to content

Page Hero

Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

link text
<PageHero as="header" textAlign="center">
<div class="space-y-20">
<h1 class="text-4xl font-bold">{data.headline}</h1>
<p class="text-lg">{data.short_text_area}</p>
<Button href={data.link.href}>{data.link.text}</Button>
</div>
</PageHero>

API Reference

The following are the props that can be passed to the page block.

Prop Type Default
textAlign
"left" | "center" "left"
verticalAlign
"top" | "center" | "bottom" "top"
background
"white" | "light-blue" | "dark-gray" "white"
backgroundImage
asset object
asset
asset object
breadcrumbs
array
breadcrumb.link
object
breadcrumb.link.href
string
breadcrumb.link.text
string

For information on how to use the asset object, see the Image Caption component:

Examples

Background Color, Light

Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

link text
<PageHero as="header" textAlign="center" background="light-blue">
<div class="space-y-20">
<h1 class="text-4xl font-bold">{data.headline}</h1>
<p class="text-lg">{data.short_text_area}</p>
<Button href={data.link.href}>{data.link.text}</Button>
</div>
</PageHero>

Background Color, Dark

Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

link text
<PageHero as="header" textAlign="center" background="dark-gray">
<div class="space-y-20">
<h1 class="text-4xl font-bold">{data.headline}</h1>
<p class="text-lg">{data.short_text_area}</p>
<Button href={data.link.href}>{data.link.text}</Button>
</div>
</PageHero>

Background Image

Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

link text
alt text
<PageHero as="header" textAlign="center" backgroundImage={data.photo_wide}>
<div class="space-y-20">
<h1 class="text-4xl font-bold">{data.headline}</h1>
<p class="text-lg">{data.short_text_area}</p>
<Button href={data.link.href}>{data.link.text}</Button>
</div>
</PageHero>

With Breadcrumbs & an Image, Reversed

Lorem ipsum dolor sit amet

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

link text
alt text
<PageHero
as="header"
breadcrumbs={breadcrumbs}
asset={data.image}
split="1/2"
reverse
>
<div class="space-y-20">
<h1 class="text-4xl font-bold">{data.headline}</h1>
<p class="text-lg">{data.short_text_area}</p>
<Button href={data.link.href}>{data.link.text}</Button>
</div>
</PageHero>