All checks were successful
Deploy to Production / deploy (push) Successful in 1m1s
Two coordinated polish moves: 1. **<PulseLink> / <PulseButton>** — new `apps/web/components/pulse.tsx`. Click anywhere on a wrapped link or button and a small indigo dot detonates from the click point, scaling 1x→80x over 650ms before fading to transparent. Same visual language as the hero load-in glow — the click effectively says "this is the brand reaching back." The dot lives in a `pointer-events: none` overlay, so it never blocks the underlying navigation. `overflow-hidden + relative` are added to the host so the bloom stays inside the rounded shape. `glow-pulse` keyframe sits in globals.css next to the existing `pulse-dot` / `shimmer` / `fade-in` definitions; reduced-motion suppresses the animation to instant-opacity-0 so the click flow is preserved without the bloom. Wired into the highest-conversion CTAs only — the user explicitly asked "wo's Sinn macht": - Hero "Start building free" + "Read the docs" - Marketing header Login / Dashboard button - Dashboard header "+ New server" pill Deliberately NOT applied to dashboard nav links, logout, destructive buttons, form internals, carousel dots — pulse on every click would be noise. 2. **Hero fills 100svh − nav** (`min-height: calc(100svh - 3rem)`). `svh` (small viewport height) instead of `vh` so the hero doesn't jump when the mobile address bar hides/shows. The 3rem subtracts the sticky marketing nav (h-12 = 48px), so the hero ends right at the loadscreen's natural bottom edge. `flex items-center` plus the inner grid's existing `md:items-center` keep the content vertically centred inside the tall section. The ParticleHero background now has cinematic-scale room and the indigo radial-glow + dot-mask read as the dominant background motif — which is the effect the user loved at load-in. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
73 lines
2.7 KiB
TypeScript
73 lines
2.7 KiB
TypeScript
import { CookieBanner } from '@/components/cookie-banner';
|
|
import { Logo } from '@/components/logo';
|
|
import { MobileActionBar } from '@/components/mobile-action-bar';
|
|
import { PulseLink } from '@/components/pulse';
|
|
import { UserMenu } from '@/components/user-menu';
|
|
import { FileClock, LayoutGrid, Package, Server, Settings } from 'lucide-react';
|
|
import Link from 'next/link';
|
|
|
|
export default function DashboardLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<div className="flex min-h-screen flex-col">
|
|
<header className="sticky top-0 z-50 border-b border-[--color-border] bg-[--color-bg]/85 backdrop-blur-md">
|
|
<div className="mx-auto flex h-12 max-w-7xl items-center justify-between gap-2 px-4 sm:px-6">
|
|
<div className="flex min-w-0 items-center gap-2 sm:gap-6">
|
|
<Logo />
|
|
{/* Desktop nav — on mobile this is hidden and destinations live
|
|
in the bottom MobileActionBar tab-bar instead. */}
|
|
<nav className="hidden items-center gap-0.5 sm:flex sm:gap-1">
|
|
<NavLink href="/dashboard" icon={<LayoutGrid size={13} />}>
|
|
Overview
|
|
</NavLink>
|
|
<NavLink href="/servers" icon={<Server size={13} />}>
|
|
Servers
|
|
</NavLink>
|
|
<NavLink href="/templates" icon={<Package size={13} />}>
|
|
Marketplace
|
|
</NavLink>
|
|
<NavLink href="/audit" icon={<FileClock size={13} />}>
|
|
Audit
|
|
</NavLink>
|
|
<NavLink href="/settings" icon={<Settings size={13} />}>
|
|
Settings
|
|
</NavLink>
|
|
</nav>
|
|
</div>
|
|
<div className="flex items-center gap-1 sm:gap-2">
|
|
<PulseLink
|
|
href="/servers/new"
|
|
className="hidden h-7 items-center gap-1.5 rounded-md bg-[--color-accent] px-2.5 text-[12px] font-medium text-white transition-colors duration-200 hover:bg-[#5557e8] sm:inline-flex"
|
|
>
|
|
+ New server
|
|
</PulseLink>
|
|
<UserMenu />
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<main className="flex-1 bg-[--color-bg] pb-20 sm:pb-0">{children}</main>
|
|
<MobileActionBar />
|
|
<CookieBanner />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
function NavLink({
|
|
href,
|
|
children,
|
|
icon,
|
|
}: {
|
|
href: string;
|
|
children: React.ReactNode;
|
|
icon: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<Link
|
|
href={href}
|
|
className="inline-flex h-7 items-center gap-1.5 rounded-md px-2 text-[12.5px] text-[--color-fg-muted] transition-colors hover:bg-[--color-bg-subtle] hover:text-[--color-fg]"
|
|
>
|
|
{icon}
|
|
<span className="hidden sm:inline">{children}</span>
|
|
</Link>
|
|
);
|
|
}
|