Veil UI
Components

Maintenance Page

A maintenance page with countdown, progress and notify form.

Installation

$ npx veil-ui@latest add maintenance-page

Usage

import { MaintenancePage } from "@/components/ui/maintenance-page";

<MaintenancePage />;

Examples

Basic

VVeil UI
Maintenance mode

We'll be back shortly

We are performing scheduled maintenance to make things faster and more reliable. Your data is safe and the service will resume automatically.

00Days
02Hours
14Minutes
36Seconds
Migration progress68%
Status page

Get notified when we are back

API reference

The package exports maintenance-page along with its composable parts. It forwards standard attributes to its root element; see the examples above for the component-specific props.

Accessibility

  • Page templates use semantic landmarks and a single page-level heading.
  • Navigation links and actions have discernible names and visible focus styles.
  • Decorative imagery uses empty alt text; content images carry descriptions.

Vue and plain HTML

This component also ships for Vue (Reka UI) and plain HTML. Install it with npx veil-ui add maintenance-page --framework vue or switch the framework in components.json.

<template>
<div data-slot="maintenance-page" class="flex flex-col rounded-xl border bg-background min-h-[600px]"><div class="flex items-center justify-between border-b px-6 py-4"><div data-slot="logo" class="inline-flex items-center gap-1.5"><span data-slot="logo-mark" class="flex shrink-0 items-center justify-center overflow-hidden rounded-md size-6"><span class="grid size-full place-items-center bg-primary text-[10px] font-bold text-primary-foreground">V</span></span><span data-slot="logo-name" class="font-semibold tracking-tight text-sm">Veil UI</span></div><span data-slot="status-indicator" data-status="away" class="inline-flex items-center gap-1.5 text-xs text-muted-foreground"><span class="relative flex size-2" aria-hidden="true"><span class="relative inline-flex size-2 rounded-full bg-amber-500"></span></span>Maintenance mode</span></div><div class="flex flex-1 flex-col items-center justify-center px-6 py-14 text-center"><span class="flex size-14 items-center justify-center rounded-2xl border bg-amber-500/10 text-amber-600 shadow-sm"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wrench size-7" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"></path></svg></span><h1 class="mt-6 text-3xl font-semibold tracking-tight">We&#x27;ll be back shortly</h1><p class="mx-auto mt-3 max-w-md text-sm text-muted-foreground">We are performing scheduled maintenance to make things faster and more reliable. Your data is safe and the service will resume automatically.</p><div class="mt-8 flex items-center gap-3"><div class="flex w-16 flex-col items-center rounded-lg border bg-card py-3"><span class="text-2xl font-semibold tabular-nums">00</span><span class="text-[10px] uppercase tracking-wider text-muted-foreground">Days</span></div><div class="flex w-16 flex-col items-center rounded-lg border bg-card py-3"><span class="text-2xl font-semibold tabular-nums">02</span><span class="text-[10px] uppercase tracking-wider text-muted-foreground">Hours</span></div><div class="flex w-16 flex-col items-center rounded-lg border bg-card py-3"><span class="text-2xl font-semibold tabular-nums">14</span><span class="text-[10px] uppercase tracking-wider text-muted-foreground">Minutes</span></div><div class="flex w-16 flex-col items-center rounded-lg border bg-card py-3"><span class="text-2xl font-semibold tabular-nums">36</span><span class="text-[10px] uppercase tracking-wider text-muted-foreground">Seconds</span></div></div><div class="mt-8 w-full max-w-sm space-y-2"><div class="flex justify-between text-xs text-muted-foreground"><span>Migration progress</span><span>68%</span></div><div aria-valuemax="100" aria-valuemin="0" aria-valuenow="68" aria-valuetext="68%" role="progressbar" data-state="loading" data-value="68" data-max="100" data-slot="progress" class="relative h-1.5 w-full overflow-hidden rounded-full bg-primary/15" aria-label="Maintenance progress"><div data-state="loading" data-value="68" data-max="100" data-slot="progress-indicator" class="h-full w-full flex-1 rounded-full bg-primary transition-transform duration-300 motion-reduce:transition-none" style="transform:translateX(-32%)"></div></div></div><div class="mt-8 flex flex-wrap items-center justify-center gap-3"><button data-slot="button" data-variant="default" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 bg-primary text-primary-foreground hover:bg-primary/90 h-9 px-4 py-2"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw" aria-hidden="true"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path><path d="M8 16H3v5"></path></svg> Check again</button><a href="#status" data-slot="button" data-variant="outline" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-9 px-4 py-2">Status page <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></a></div><div class="mt-10 w-full max-w-sm text-left"><p class="flex items-center gap-1.5 text-xs font-medium text-muted-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clock size-3.5" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path></svg>Get notified when we are back</p><form class="mt-2 flex gap-2"><input type="email" data-slot="input" class="h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs outline-none transition-[color,box-shadow,border-color] placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-input/30" placeholder="you@example.com" aria-label="Email address"/><button data-slot="button" data-variant="secondary" data-size="default" class="inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-[color,background-color,border-color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg:not([class*=&#x27;size-&#x27;])]:size-4 bg-secondary text-secondary-foreground hover:bg-secondary/80 h-9 px-4 py-2" type="submit">Notify me</button></form></div></div></div>
</template>

On this page