Header Meeting
In-call glass header pill: pulsing REC timer, meeting title, “Halo is taking notes” gradient chip, participant avatars, grid/speaker layout toggle, translate toggle and a red Leave button.
glass/layout/header-meetingSource
"use client";
import { useEffect, useState } from "react";
import { Grid2x2, Languages, PhoneOff, Presentation, Sparkles } from "lucide-react";
import { cn } from "@/lib/utils";
export interface HeaderMeetingProps {
title?: string;
participants?: string[];
/** Seconds already elapsed when mounted. */
startedAgo?: number;
onLeave?: () => void;
className?: string;
}
const GLASS = "da-stroke bg-da-surface backdrop-blur-da backdrop-saturate-150";
const TONES = ["from-da-primary to-da-accent", "from-da-accent to-da-success", "from-da-danger to-da-primary", "from-da-warning to-da-danger"];
function fmt(s: number) {
const h = Math.floor(s / 3600);
const m = Math.floor((s % 3600) / 60);
const ss = s % 60;
return `${h ? `${h}:` : ""}${String(m).padStart(2, "0")}:${String(ss).padStart(2, "0")}`;
}
/** In-call header bar: REC dot + running timer, meeting title, participant avatars, layout toggle, live-translate toggle, AI notes chip and a red Leave button. */
export function HeaderMeeting({
title = "Q4 roadmap sync",
participants = ["Amara Diallo", "Leo Park", "Sofia Rossi", "Noah Klein", "Jin Park"],
startedAgo = 1930,
onLeave,
className,
}: HeaderMeetingProps) {
const [secs, setSecs] = useState(startedAgo);
const [layout, setLayout] = useState<"grid" | "speaker">("grid");
const [translate, setTranslate] = useState(false);
useEffect(() => {
const t = window.setInterval(() => setSecs((s) => s + 1), 1000);
return () => window.clearInterval(t);
}, []);
return (
<header className={cn("px-4 pt-4 text-da-fg", className)}>
<div className={cn("mx-auto flex max-w-6xl flex-wrap items-center gap-3 rounded-da-lg py-2 pr-2 pl-4 shadow-da-md sm:rounded-da-pill", GLASS)}>
<p className="inline-flex items-center gap-2 rounded-da-pill bg-da-danger/15 px-2.5 py-1 font-da-mono text-xs font-semibold text-da-danger">
<span aria-hidden className="relative flex size-2">
<span className="absolute inset-0 animate-ping rounded-full bg-da-danger opacity-60 motion-reduce:hidden" />
<span className="relative size-2 rounded-full bg-da-danger" />
</span>
<span className="sr-only">Recording, </span>
<span className="tabular-nums">{fmt(secs)}</span>
</p>
<h1 className="min-w-0 truncate font-da-display font-semibold">{title}</h1>
<p className="hidden items-center gap-1.5 rounded-da-pill bg-gradient-to-r from-da-primary to-da-accent px-2.5 py-1 text-xs font-semibold text-da-primary-fg sm:inline-flex">
<Sparkles aria-hidden className="size-3.5" /> Halo is taking notes
</p>
<div className="ml-auto flex items-center gap-2">
<span className="hidden -space-x-2 md:flex" role="img" aria-label={`${participants.length} participants`}>
{participants.slice(0, 4).map((p, i) => (
<span
key={p}
className={cn(
"grid size-8 place-items-center rounded-full bg-gradient-to-br text-[10px] font-semibold text-da-primary-fg ring-2 ring-da-bg",
TONES[i % TONES.length],
)}
>
{p
.split(" ")
.map((w) => w[0])
.join("")}
</span>
))}
{participants.length > 4 && (
<span className="grid size-8 place-items-center rounded-full bg-da-fg text-[10px] font-semibold text-da-bg ring-2 ring-da-bg">
+{participants.length - 4}
</span>
)}
</span>
<div role="group" aria-label="Layout" className="flex rounded-da-pill bg-da-surface-2 p-1">
{(
[
{ v: "grid", Icon: Grid2x2, l: "Grid layout" },
{ v: "speaker", Icon: Presentation, l: "Speaker layout" },
] as const
).map(({ v, Icon, l }) => (
<button
key={v}
type="button"
aria-label={l}
aria-pressed={layout === v}
onClick={() => setLayout(v)}
className={cn("da-focus grid size-8 place-items-center rounded-full", layout === v ? "bg-da-surface shadow-da-sm" : "text-da-muted-fg")}
>
<Icon aria-hidden className="size-4" />
</button>
))}
</div>
<button
type="button"
aria-pressed={translate}
onClick={() => setTranslate((t) => !t)}
className={cn(
"da-focus da-transition inline-flex h-10 items-center gap-1.5 rounded-da-pill px-3 text-sm font-medium",
translate ? "bg-da-fg text-da-bg" : "bg-da-surface-2 hover:bg-da-surface",
)}
>
<Languages aria-hidden className="size-4" />
<span className="max-sm:sr-only">Translate</span>
</button>
<button
type="button"
onClick={onLeave}
className="da-focus da-transition inline-flex h-10 items-center gap-1.5 rounded-da-pill bg-da-danger px-4 text-sm font-semibold text-da-danger-fg hover:brightness-110"
>
<PhoneOff aria-hidden className="size-4" />
<span className="max-sm:sr-only">Leave</span>
</button>
</div>
</div>
</header>
);
}
export default HeaderMeeting;
modules/glass/layout/header-meeting/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Meeting title (h1). |
| participants | string[] | — | Names. |
| startedAgo | number | 1930 | Seconds elapsed at mount. |
| onLeave | () => void | — | Leave handler. |
| className | string | — | Classes. |
Other app header variants in Glass
App Header
Floating frosted pill top bar (search with ⌘K hint, gradient notification counter, avatar menu button) above a page heading with a frosted segmented tab switcher and a gradient primary action.
Header Document
Sticky glass editor header: breadcrumbs, inline-editable document title, saved/editing indicator, live viewers with green presence rings, gradient Share button and more menu.
Header Greeting
Dashboard header with a time-of-day greeting and day summary, notification bell with gradient counter, a large glass “Ask Halo” search bar with gradient submit and quick-action chips.
App header in other art directions
App Header
Two-tier app header: top bar with breadcrumbs, ⌘K search field, notification bell with counter and avatar; page band with big title, meta line, primary action and folder-style tabs.
Header Compact
Dense 56px app header built from ruled cells: title with count chip, view tabs (yellow active cell), filter search, ink 'New' cell, and an optional strip of active filter chips.
Header Editor
Document/editor header: back cell, version chip, inline-editable uppercase title, save-status chip (saved/saving/unsaved), Preview cell and a yellow Publish cell; actions wrap to a full-width bar on mobile.
Header Stats
Dashboard welcome header: yellow band with eyebrow, big greeting, status sentence and two pressable actions, over a ruled KPI strip (2×2 on mobile, 4 across on desktop) with green delta chips.
App Header
Two-row app header: breadcrumbs, ⌘K search trigger and notification dot on top; view tabs with Filter / Display actions below. Includes a working command palette (Radix Dialog) with grouped, filterable, keyboard-navigable commands.
Header Detail
Detail-page header: breadcrumbs ending on a copyable mono id, title with status pill, a key/value meta row, action buttons and underline section tabs with counts.
Header Switcher
Vercel-style global top bar: logo then organization / project / environment switchers separated by slashes (production badge in red), with dropdown lists, help, notification dot and avatar.
Header Toolbar
List-page toolbar: title with count and New button, then a search field, removable key/value filter chips, an Add filter button and a list/board view toggle.
App Header
Path-style app header: slash-separated breadcrumb “Nord Studio / Projects / Oslo Opera” (last segment ink), live status with signal dot and last-edit time in mono, outline “Preview” and ink “Publish”.
Header Editor
Editor top bar in three zones: back arrow + editable page title, a centered square device switcher (desktop/tablet/mobile, radio semantics), and undo/redo text actions + save state + ink Publish.
Header Tabs
Settings-style header: title + domain subtitle, then a row of text tabs with an ink underline on the active one sitting on the hairline; scrolls horizontally on mobile.
Header Title
Big-title page header: a huge display title with a superscript mono count, then a ruled toolbar with text filters (slash separated, active underlined in signal) on the left and view options + ink action on the right.
App Header
Page header for app screens: breadcrumb trail, title + description, right-aligned secondary/primary actions and an optional row of key-value meta; white with a bottom border.
Header Global
Global top bar: logo, entity switcher (Radix dropdown), centered search with ⌘K hint, help + notifications (count) icon buttons and a user avatar menu (profile, settings, sign out).
Header Report
Report header: title with “last updated” + refresh, a toolbar with period segmented control, entity select, compare toggle and Export; wraps on mobile.
Header Tabs
Record header (e.g. a customer): avatar initials, name + status pill, subtitle, action buttons, and an underline tab bar (links with aria-current and counts) that scrolls horizontally on mobile.
App Header
Friendly app header: time-of-day serif greeting with the user’s name in italic sage, a calm subtitle, a rounded search field, bell with soft dot and an initials avatar.
Header Period
Report header: serif title with an italic period word that updates, a pill period switcher (radio semantics) and a soft export button; a wavy divider underneath.
Header Progress
Page header with a target ring: soft breadcrumb, serif title and description, and on the right a circular progress ring (sage stroke on sand) with the percentage and target label.
Header Tabs
Section header with pill tabs: serif title and a sage action on one row, then a sand track of pill links (active one cream with shadow, counts in small circles) that scrolls on mobile.
App Header
Friendly top header: “Good morning, Ana 👋” with a day summary; search pill, bell with red badge, periwinkle “New” button and emoji avatar on the right.
Header Board
Board page header: emoji tile, title and description, member emoji avatars, ink Share pill, then a pill view switcher (Board, List, Week) and a filter button.
Header Search
Search-first header: wide rounded search field with clear button, and emoji filter chips (Assigned to me, Due soon, Overdue, Done) that toggle to ink below.
Header Week
Week-planner header: round prev/next arrows around the week range (announced), a lavender “Today” pill and a mint progress pill with emoji and mini bar.