Add animated glass background, breadcrumbs, and brand mark polish

Cards now sit on an animated signature-gradient background and use a
translucent, blurred bp-glass surface so it shines through; extended
bp-glass to every stat surface on the Stats page and to its tab switcher.
Adds a Breadcrumbs component below the header on all app pages.

Also: drop the gradient text fill from the wordmark/heading, animate the
BrandMark's heart and curve on the dashboard hero instead of a plain pulse
ring, recenter the heart/curve artwork in icon.svg and BrandMark, close the
mobile nav menu on link click, remove the redundant "back to recordings"
button, and match the "Start session"/"Scan for devices" button sizes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-26 18:47:30 +02:00
co-authored by Claude Sonnet 5
parent 9e0380ec75
commit c46adf788f
14 changed files with 248 additions and 93 deletions
+55
View File
@@ -0,0 +1,55 @@
"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { ChevronRight, House } from "lucide-react";
const SECTION_LABELS: Record<string, string> = {
control: "Control",
recordings: "Recordings",
sessions: "Sessions",
stats: "Stats",
devices: "Devices",
};
const LEAF_LABELS: Record<string, string> = {
replay: "Replay",
};
export function Breadcrumbs() {
const pathname = usePathname();
const segments = pathname.split("/").filter(Boolean);
if (segments.length === 0) {
return null;
}
const crumbs = segments.reduce<{ label: string; href: string }[]>((acc, segment) => {
const href = `${acc.at(-1)?.href ?? ""}/${segment}`;
const label = /^\d+$/.test(segment) ? `#${segment}` : (LEAF_LABELS[segment] ?? SECTION_LABELS[segment] ?? segment);
return [...acc, { label, href }];
}, []);
return (
<nav aria-label="Breadcrumb" className="bp-glass mb-6 flex w-fit items-center gap-1.5 rounded-lg px-3 py-1.5 text-sm text-muted-foreground">
<Link href="/" className="flex items-center hover:text-foreground" aria-label="Dashboard">
<House className="size-3.5" />
</Link>
{crumbs.map((crumb, i) => {
const isLast = i === crumbs.length - 1;
return (
<span key={crumb.href} className="flex items-center gap-1.5">
<ChevronRight className="size-3.5 text-muted-foreground/50" />
{isLast ? (
<span className="font-medium text-foreground">{crumb.label}</span>
) : (
<Link href={crumb.href} className="hover:text-foreground">
{crumb.label}
</Link>
)}
</span>
);
})}
</nav>
);
}