Divan

Components

Header and footer

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.

The header

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.

Three headers

variant="overlay"

Over a picture

Transparent over a full-bleed picture, glass once the page scrolls. The home page.

variant="solid"

Solid

Glass from the top and in the page’s flow. Campaigns, founders, privacy, terms, links.

variant="task"

A 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.

On a phone, with the drawer open

Our storyFirst workCampaignsFounders

The links move into a drawer from the start side: the left in English, the right in Persian.

The footer

Every tale begins a new divan.

DivanWorks

Our storyFirst workCampaignsFoundersLinksBrand book

Take part

SupportYour name in the episodeMy activity

Follow

InstagramTelegramYouTubeLinkedIn
© 2026 DivanWorks — made with love PrivacyTerms

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.

Which page has which

Homeoverlayfull
Campaignssolidfull
Founderssolidfull
Privacy, Termssolidfull
Not foundsolidcompact
Linkssolidcompact
Your name in the episodetaskcompact
More programs, Phototaskcompact
Sign up, My activitytaskcompact

Rules

  • Every public page uses <SiteHeader> and <SiteFooter>; no page builds its own header, footer or Home button.
  • The header is 56px tall and as wide as the page on every page; the content below may be narrower.
  • One copper button in the header: Support. Links are quiet; the page you are on is lifted.
  • Links show from 1024px; below that, a drawer from the start side holds them, with Support and the account at the bottom.
  • Flows use the task header and the compact footer, so nothing pulls people away before they finish.
  • Footer labels wrap and are never cut short; the last group spans both columns on phones.
  • No line under the header or above the footer: tone alone sets them apart.

Code

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>