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
-
Sign in once on this machine
izzy loginThe account is free. Create a free account
-
Add the block
izzy add block maintenanceWrites 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:
izzy add block maintenance | Name | Type or choices | Default | Description |
|---|---|---|---|
StatusPage | text | Empty | Your status page's address, for See the status page. Empty leaves the button out; it's kept in appsettings.json. |
Route | text | maintenance | Where the page is always shown, without the leading slash, so you can check it before turning maintenance on. |
Name | text | Maintenance | The page's component name. |
Mode support
| Feature | Static | Interactive |
|---|---|---|
| Everything | Yes | Yes |
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.