variant="overlay" Over a picture
Transparent over a full-bleed picture, glass once the page scrolls. The home page.
Components
Every public page has the same header and the same footer, built from one list of links. The header is 64px tall and as wide as the page, so the logo and the controls never move between pages. Neither has a line or a shadow: tone alone sets them apart.
From the start side: the logo (the way home), the links with the page you are on lifted, then the page’s own controls, the language, the account, and Support, the one copper button.
variant="overlay" Transparent over a full-bleed picture, glass once the page scrolls. The home page.
variant="solid" Glass from the top and in the page’s flow. Campaigns, founders, privacy, terms, links.
variant="task" The logo, the page’s own controls and the language: nothing that pulls people away. Sign-up, the episode names page, photo, more programs.
The links move into a drawer from the start side: the left in English, the right in Persian.
Every tale begins a new divan.
DivanWorks
Take part
Follow
A band in the card tone. Two columns of groups on phones, four from 768px; the legal row closes it. Flows use the compact footer: the legal row alone.
| Home | overlay | full |
| Campaigns | solid | full |
| Founders | solid | full |
| Privacy, Terms | solid | full |
| Not found | solid | compact |
| Links | solid | compact |
| Your name in the episode | task | compact |
| More programs, Photo | task | compact |
| Sign up, My activity | task | compact |
SiteHeader · The one header of every public page. variant overlay (over a full-bleed picture), solid (default) or task (flows); current marks the page; an actions snippet holds the page’s own controls.
import SiteHeader from '#lib/components/site/SiteHeader.svelte';
<div class="relative flex min-h-svh flex-col overflow-x-clip">
<SiteHeader current="campaigns" />
<main id="main" class="page-container flex-1 py-10">…</main>
<SiteFooter />
</div>
<!-- a flow, with the page's own control in the header -->
<SiteHeader variant="task">
{#snippet actions()}<Button variant="ghost" size="sm">Sign Out</Button>{/snippet}
</SiteHeader>SiteFooter · The one footer of every public page: full (brand, three groups, legal row, in the card tone) or compact (the legal row, for flows).
import SiteFooter from '#lib/components/site/SiteFooter.svelte';
<SiteFooter />
<SiteFooter variant="compact" />Sheet · A task of its own, or the drawer menu.
import * as Sheet from '#lib/components/ui/sheet/index.js';
<Sheet.Root bind:open>
<Sheet.Trigger>{#snippet child({ props })}<Button variant="ghost" size="icon" aria-label="Menu" {...props}><MenuIcon /></Button>{/snippet}</Sheet.Trigger>
<!-- start for a menu, end for a task: the left or the right by the page’s language -->
<Sheet.Content side="start" dir={isFa ? "rtl" : "ltr"}>…</Sheet.Content>
</Sheet.Root>