Skip to content
Statix Design System

Patterns · Dashboard

Dashboard start screen

The customer area start screen, built only from @statix/ui parts: an Alert for pending approvals, four ProductCards, QuickLinks and a help row. Site header and footer are left out.

import { Alert, AlertAction, AlertDescription, AlertTitle } from '@statix/ui/alert';
import * as Avatar from '@statix/ui/avatar';
import { Button } from '@statix/ui/button';
import { ProductCard } from '@statix/ui/product-card';
import * as QuickLinks from '@statix/ui/quick-links';
import { Separator } from '@statix/ui/separator';

Examples

Welcome back

Content width 1120px. The product grid drops to one column below the tablet breakpoint, the quick links below sm.

Your customer area

Welcome back, Ms Berger.

Here you find your products, invoices and contracts.

Websites

3 websites · WordPress hosting

Pick a website to open its content, backups and settings.

Email

5 mailboxes · 2 forwards

Read email, set up devices or add another address.

Domains

6 domains

Addresses, redirects and the next renewals with prices.

Invoices

Receipts & payments

Download invoices and see your payments.

JW

Questions or a broken website?

Jonas Weber helps. Mon to Fri, 8:00 to 20:00.

Pick the website and backup first. Nothing changes yet.

<script lang="ts">
	import { Alert, AlertAction, AlertDescription, AlertTitle } from '@statix/ui/alert';
	import * as Avatar from '@statix/ui/avatar';
	import { Button } from '@statix/ui/button';
	import { ProductCard } from '@statix/ui/product-card';
	import * as QuickLinks from '@statix/ui/quick-links';
	import { Separator } from '@statix/ui/separator';
	import ArrowRightIcon from '@lucide/svelte/icons/arrow-right';
	import GlobeIcon from '@lucide/svelte/icons/globe';
	import InfoIcon from '@lucide/svelte/icons/info';
	import LayoutGridIcon from '@lucide/svelte/icons/layout-grid';
	import LockIcon from '@lucide/svelte/icons/lock';
	import LogInIcon from '@lucide/svelte/icons/log-in';
	import MailIcon from '@lucide/svelte/icons/mail';
	import PhoneIcon from '@lucide/svelte/icons/phone';
	import ReceiptEuroIcon from '@lucide/svelte/icons/receipt-euro';

	const products = [
		{
			icon: LayoutGridIcon,
			title: 'Websites',
			meta: '3 websites · WordPress hosting',
			description: 'Pick a website to open its content, backups and settings.',
			href: '#websites',
			linkLabel: 'Go to your websites'
		},
		{
			icon: MailIcon,
			title: 'Email',
			meta: '5 mailboxes · 2 forwards',
			description: 'Read email, set up devices or add another address.',
			href: '#email',
			linkLabel: 'Choose a mailbox'
		},
		{
			icon: GlobeIcon,
			title: 'Domains',
			meta: '6 domains',
			description: 'Addresses, redirects and the next renewals with prices.',
			href: '#domains',
			linkLabel: 'Go to your domains'
		},
		{
			icon: ReceiptEuroIcon,
			title: 'Invoices',
			meta: 'Receipts & payments',
			description: 'Download invoices and see your payments.',
			href: '#invoices',
			linkLabel: 'Open invoices'
		}
	];

	const links = [
		{
			href: '#contracts',
			title: 'Contracts & prices',
			description: 'Services and notice periods',
			icon: ReceiptEuroIcon
		},
		{
			href: '#account',
			title: 'Account settings',
			description: 'Your details and your login',
			icon: LogInIcon
		},
		{
			href: '#payment',
			title: 'Payment methods',
			description: 'How you pay Statix',
			icon: LockIcon
		}
	];
</script>

<div class="mx-auto flex w-full max-w-[1120px] flex-col px-6 py-12 tablet:px-10 tablet:py-14">
	<p class="text-label text-muted-foreground uppercase">Your customer area</p>
	<h1 class="mt-3 text-heading text-ink tablet:text-section">Welcome back, Ms Berger.</h1>
	<p class="mt-4 text-body text-ink-2">Here you find your products, invoices and contracts.</p>

	<Alert class="mt-8 py-5">
		<InfoIcon />
		<AlertTitle>A change is waiting for your approval</AlertTitle>
		<AlertDescription>
			yoga-berger.de · Update the contact form. Without your approval the form stays as it is.
		</AlertDescription>
		<AlertAction>
			<Button variant="outline" href="#approval">
				View details
				<ArrowRightIcon data-icon="inline-end" />
			</Button>
		</AlertAction>
	</Alert>

	<div class="mt-6 grid gap-6 tablet:grid-cols-2">
		{#each products as { icon: Icon, ...product }, i (product.title)}
			<ProductCard {...product} headingLevel={2} tone={i === 0 ? 'navy' : 'default'}>
				{#snippet icon()}<Icon />{/snippet}
			</ProductCard>
		{/each}
	</div>

	<QuickLinks.Root items={links} class="mt-8" />

	<Separator class="my-8" />

	<div class="grid items-start gap-6 tablet:grid-cols-[1fr_auto]">
		<div class="flex items-center gap-4">
			<Avatar.Root>
				<Avatar.Fallback>JW</Avatar.Fallback>
			</Avatar.Root>
			<div>
				<p class="text-subtitle font-semibold text-ink">Questions or a broken website?</p>
				<p class="text-body text-ink-2">Jonas Weber helps. Mon to Fri, 8:00 to 20:00.</p>
			</div>
		</div>
		<div class="flex flex-col gap-3">
			<div class="flex flex-wrap gap-3">
				<Button variant="dark" href="tel:+4940468970790">
					<PhoneIcon data-icon="inline-start" />
					040 468 970 790
				</Button>
				<Button variant="outline" href="#help">
					Help
					<ArrowRightIcon data-icon="inline-end" />
				</Button>
				<Button variant="outline" href="#restore">
					Restore website
					<ArrowRightIcon data-icon="inline-end" />
				</Button>
			</div>
			<p class="text-small text-muted-foreground">
				Pick the website and backup first. Nothing changes yet.
			</p>
		</div>
	</div>
</div>

Guidelines

Do

  • Greet by name and keep the subline to one sentence.
  • Show the Alert only when something waits for the customer. Without one, the cards move up.
  • Tone the first product card. It is the product most customers come for.

Don't

  • Don’t add a HealthBand here. It belongs on the website page, where the status refers to one site.
  • Don’t put more than four product cards on the start screen.

Accessibility

  • The greeting is the page <h1>; product titles are <h2> so the outline stays flat.
  • The help row puts the phone number in a real tel: link.
  • The Alert uses role="alert". For a notice that is present on page load, consider role="status" instead.