Hero
A layout component to help you create your hero pages.
$ import { Hero } from 'geist-ui-svelte';
Basic
Automatically centers content on the screen and takes up the entire page
`100svh`
.
geist-ui-svelte
Secondary
Uses a different background color to denote a new section.
geist-ui-svelte
Hero with description
Uses Description to describe your Project
geist-ui-svelte
Geist UI Svelte is An open source design system for building modern websites and applications
Subtract Header height
Sometimes you want your hero section to account for a header use the `exclusionHeight`
to calculate the height of the header and subtract it from the 100svh. This can also be useful if
you have footers or other content that should take space from the hero section.
geist-ui-svelte
geist-ui-svelte
True Center
When using Hero sometimes you want the content to be at the center of the screen not the center
of the hero. In this case use the `trueCenter`
property to add a spacer at the bottom
of the Hero pushing the content to the screen true center.