Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Maintenance page

Take the app down for planned work: every request gets a page saying when it's back, with status 503.

Preview

We'll be right back

MyApp is down for planned maintenance until 03:20 UTC, about 45 minutes from now.

Your work is saved. Nothing you did before the break is lost.

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 maintenance

    Writes Components/Pages/Maintenance.razor and Maintenance.cs.

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 maintenance 
Maintenance page settings
NameType or choicesDefaultDescription
StatusPagetextEmptyYour status page's address, for See the status page. Empty leaves the button out; it's kept in appsettings.json.
RoutetextmaintenanceWhere the page is always shown, without the leading slash, so you can check it before turning maintenance on.
NametextMaintenanceThe page's component name.

Mode support

What works in each mode, Maintenance page
FeatureStaticInteractive
EverythingYesYes

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

Accessibility

  • The page's one message is its h1, so it's the first thing a screen reader reads.
  • The wrench is decorative; the title and the message say what's happening.
  • The page is plain HTML with no script, so it works in any browser while the app is down.

Components used

  • Container: Centers content at a readable width.
  • Column: Stacks fields, cards or text from top to bottom, with even spacing.
  • EmptyState: Shows what to do when there's nothing yet.
  • Button: Submits or resets a form, follows a link or runs C#.
  • TextBlock: Sets paragraphs, captions and labels in the library's text styles.
  • IzzyTheme: Sets the preset, brand color, fonts and color scheme on the server.

Connection lost

Rejoining the server…