Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Hero

The top of a landing page: a headline, a sentence, two buttons and a screenshot or image.

Preview

Eyebrow
Second button
Now in public beta

Ship your app with less code

MyApp gives your team one place to plan, track and ship work. Start free, with no card needed.

Add it to your project

  1. Sign in once on this machine
    izzy login

    The account is free. Create a free account

  2. Add the block
    izzy add block hero

    Writes Components/Blocks/Hero.razor and places it on Home, after <PageTitle>.

Settings

Each setting is a flag on izzy add. The flag syntax isn't final; for now it looks like this:

bash
izzy add block hero --layout Centered --media Screenshot
Hero settings
NameType or choicesDefaultDescription
LayoutCentered | SplitCenteredCentered stacks everything in the middle; Split puts the image or screenshot beside the text.
EyebrowtextEmptyA short pill above the headline, such as "Now in public beta". Empty leaves it out.
EyebrowHreftextEmptyMakes the eyebrow a link, such as to the announcement. Empty leaves it plain.
HeadlinetextShip your app with less codeThe headline: what you offer, in a few words.
Subheadtext{{ProjectName}} gives your team one place to plan, track and ship work. Start free, with no card needed.The sentence under the headline.
PrimaryTexttextGet startedThe main button.
PrimaryHreftextget-startedWhere the main button goes.
SecondaryTexttextSee how it worksThe second button. Empty leaves it out.
SecondaryHreftextaboutWhere the second button goes.
MediaScreenshot | Image | NoneScreenshotScreenshot frames the image in a browser window; Image shows it as it is.
Addresstextmyapp.comThe address in the screenshot's browser bar. Empty shows only the dots.
ImageSrctextEmptyThe image, from wwwroot. Empty uses a placeholder to replace: a dashboard for Screenshot, a landscape for Image.
ImageAlttextA screenshot of the appWhat the image shows, for screen readers. Empty marks it decorative.
HeadingLevel1 | 211 makes the headline the page's main heading; use 2 when the page has its own.
NametextHeroThe component's name.
IntotextComponents/Pages/Home.razorThe page it's placed on: after its <PageTitle>, or under the page's own heading with HeadingLevel 2.

Mode support

What works in each mode, Hero
FeatureStaticInteractive
EverythingYesYes

Static: static server-side rendering, with no circuit and no WebAssembly. Interactive: Server, WebAssembly or Auto.

Accessibility

  • The section is named by its headline, which is the page's h1 (HeadingLevel 1) or an h2 under the page's own heading (HeadingLevel 2).
  • The buttons are links, the main one first in reading order. On phones they stack at full width.
  • The screenshot's browser bar is hidden from screen readers, so they read only the image's alt text. Empty alt text marks the image decorative.
  • A linked eyebrow is a plain link named by its text.

Components used

  • Section: Renders a full-width band of a page, such as a hero.
  • Container: Centers content at a readable width.
  • Grid: Lays out its children in columns set by breakpoint, by minimum width or by template.
  • Stack: Lays out its children in a row or a column, changing with the screen width.
  • Box: Renders a block that accepts every style prop.
  • Tag: Shows a keyword or filter that can link or be removed.
  • Heading: Renders headings 1 to 6, with fluid sizes and section links.
  • TextBlock: Sets paragraphs, captions and labels in the library's text styles.
  • Button: Submits or resets a form, follows a link or runs C#.
  • BrowserFrame: Shows a screenshot inside a browser window.
  • Image: Loads an image lazily and keeps its space.

Connection lost

Rejoining the server…