Add brand logo + favicon across app surfaces

Ship the Podcast Distribution AI wordmark as real assets and replace the
Mic-tile + text placeholder everywhere it appeared.

- public/logo-dark.png (dark wordmark, for light backgrounds) and
  public/logo-light.png (light wordmark, for dark backgrounds)
- New <Logo> component swaps the two via Tailwind dark: variants, so the
  dark logo shows on all non-themed surfaces (marketing, auth, admin,
  public share) and the light logo only in dark-mode app surfaces
- Wire <Logo> into the marketing header/footer, auth layout, app header
  (default branch only - white-label org logos untouched), admin header
  (+ Admin badge), and the public share page
- Favicon via App Router file convention: app/icon.png + app/apple-icon.png

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Leon Serfaty
2026-06-20 20:58:14 -04:00
parent 013a3525e5
commit cd1d6a1a28
11 changed files with 59 additions and 40 deletions
+6 -5
View File
@@ -1,10 +1,11 @@
import Link from "next/link"; import Link from "next/link";
import { ShieldCheck, ArrowLeft } from "lucide-react"; import { ArrowLeft } from "lucide-react";
import { requireAdmin } from "@/lib/auth/guards"; import { requireAdmin } from "@/lib/auth/guards";
import { AdminSidebar } from "@/components/admin/admin-sidebar"; import { AdminSidebar } from "@/components/admin/admin-sidebar";
import { AdminMobileNav } from "@/components/admin/admin-mobile-nav"; import { AdminMobileNav } from "@/components/admin/admin-mobile-nav";
import { UserMenu } from "@/components/app/user-menu"; import { UserMenu } from "@/components/app/user-menu";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Logo } from "@/components/ui/logo";
// Authed, DB-backed admin surface — never statically prerender. // Authed, DB-backed admin surface — never statically prerender.
export const dynamic = "force-dynamic"; export const dynamic = "force-dynamic";
@@ -17,11 +18,11 @@ export default async function AdminLayout({ children }: { children: React.ReactN
<header className="sticky top-0 z-30 flex h-16 items-center justify-between border-b border-border bg-background/85 px-4 backdrop-blur-md md:px-6"> <header className="sticky top-0 z-30 flex h-16 items-center justify-between border-b border-border bg-background/85 px-4 backdrop-blur-md md:px-6">
<div className="flex items-center gap-1"> <div className="flex items-center gap-1">
<AdminMobileNav /> <AdminMobileNav />
<Link href="/admin" className="flex items-center gap-2.5 font-display font-bold tracking-tight"> <Link href="/admin" className="flex items-center gap-2.5" aria-label="Podcast Distribution AI Admin">
<span className="flex h-9 w-9 items-center justify-center rounded-2xl bg-foreground text-background"> <Logo className="h-7 w-auto" priority />
<ShieldCheck className="h-5 w-5" /> <span className="rounded-md bg-foreground px-1.5 py-0.5 font-display text-[11px] font-bold uppercase tracking-wide text-background">
Admin
</span> </span>
<span>Podcast Distribution AI Admin</span>
</Link> </Link>
</div> </div>
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
+4 -8
View File
@@ -1,5 +1,5 @@
import Link from "next/link"; import Link from "next/link";
import { Mic, Plus, Wrench } from "lucide-react"; import { Plus, Wrench } from "lucide-react";
import { requireAuth } from "@/lib/auth/guards"; import { requireAuth } from "@/lib/auth/guards";
import { getEffectivePlan } from "@/lib/billing/subscription"; import { getEffectivePlan } from "@/lib/billing/subscription";
import { getActiveBranding, hexToHslTriplet } from "@/lib/branding"; import { getActiveBranding, hexToHslTriplet } from "@/lib/branding";
@@ -11,6 +11,7 @@ import { CommandPalette } from "@/components/app/command-palette";
import { ImpersonationBanner } from "@/components/app/impersonation-banner"; import { ImpersonationBanner } from "@/components/app/impersonation-banner";
import { ThemeProvider } from "@/components/providers/theme-provider"; import { ThemeProvider } from "@/components/providers/theme-provider";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Logo } from "@/components/ui/logo";
// Authed, DB-backed dashboard — never statically prerender. // Authed, DB-backed dashboard — never statically prerender.
export const dynamic = "force-dynamic"; export const dynamic = "force-dynamic";
@@ -47,7 +48,7 @@ export default async function AppLayout({ children }: { children: React.ReactNod
<header className="sticky top-0 z-30 flex h-16 items-center justify-between border-b border-border bg-background/85 px-4 backdrop-blur-md md:px-6"> <header className="sticky top-0 z-30 flex h-16 items-center justify-between border-b border-border bg-background/85 px-4 backdrop-blur-md md:px-6">
<div className="flex items-center gap-1"> <div className="flex items-center gap-1">
<AppMobileNav plan={plan} workspaceName={workspaceName} /> <AppMobileNav plan={plan} workspaceName={workspaceName} />
<Link href="/dashboard" className="flex items-center gap-2.5 font-display font-bold tracking-tight"> <Link href="/dashboard" className="flex items-center" aria-label={workspaceName}>
{branding?.logoUrl ? ( {branding?.logoUrl ? (
// eslint-disable-next-line @next/next/no-img-element // eslint-disable-next-line @next/next/no-img-element
<img <img
@@ -56,12 +57,7 @@ export default async function AppLayout({ children }: { children: React.ReactNod
className="h-8 w-auto max-w-[160px] object-contain" className="h-8 w-auto max-w-[160px] object-contain"
/> />
) : ( ) : (
<> <Logo className="h-7 w-auto" priority />
<span className="flex h-9 w-9 items-center justify-center rounded-2xl bg-brand text-brand-foreground">
<Mic className="h-5 w-5" />
</span>
<span className="hidden sm:inline">{workspaceName}</span>
</>
)} )}
</Link> </Link>
</div> </div>
+3 -9
View File
@@ -1,18 +1,12 @@
import Link from "next/link"; import Link from "next/link";
import { Mic } from "lucide-react"; import { Logo } from "@/components/ui/logo";
export default function AuthLayout({ children }: { children: React.ReactNode }) { export default function AuthLayout({ children }: { children: React.ReactNode }) {
return ( return (
<div className="relative flex min-h-screen flex-col items-center justify-center bg-secondary px-4 py-12"> <div className="relative flex min-h-screen flex-col items-center justify-center bg-secondary px-4 py-12">
<div className="pointer-events-none absolute inset-0 bg-hero-wash" /> <div className="pointer-events-none absolute inset-0 bg-hero-wash" />
<Link <Link href="/" className="relative mb-8 flex items-center" aria-label="Podcast Distribution AI">
href="/" <Logo className="h-8 w-auto" />
className="relative mb-8 flex items-center gap-2.5 font-display text-xl font-bold tracking-tight"
>
<span className="flex h-9 w-9 items-center justify-center rounded-2xl bg-brand text-brand-foreground">
<Mic className="h-5 w-5" />
</span>
Podcast Distribution AI
</Link> </Link>
<div className="relative w-full max-w-md">{children}</div> <div className="relative w-full max-w-md">{children}</div>
</div> </div>
+7 -6
View File
@@ -7,6 +7,7 @@ import { getActiveBranding, hexToHslTriplet } from "@/lib/branding";
import { WaveformPlayer } from "@/components/app/waveform-player"; import { WaveformPlayer } from "@/components/app/waveform-player";
import { Card, CardContent } from "@/components/ui/card"; import { Card, CardContent } from "@/components/ui/card";
import { Badge } from "@/components/ui/badge"; import { Badge } from "@/components/ui/badge";
import { Logo } from "@/components/ui/logo";
import type { StructuredScript } from "@/lib/ai/types"; import type { StructuredScript } from "@/lib/ai/types";
export const dynamic = "force-dynamic"; export const dynamic = "force-dynamic";
@@ -70,14 +71,14 @@ export default async function PublicSharePage({
{/* Header / brand wordmark */} {/* Header / brand wordmark */}
<header className="mb-8 flex items-center gap-2.5"> <header className="mb-8 flex items-center gap-2.5">
{branding?.logoUrl ? ( {branding?.logoUrl ? (
// eslint-disable-next-line @next/next/no-img-element <>
<img src={branding.logoUrl} alt={brandName} className="h-7 w-auto" /> {/* eslint-disable-next-line @next/next/no-img-element */}
<img src={branding.logoUrl} alt={brandName} className="h-7 w-auto" />
<span className="font-display text-base font-extrabold tracking-tight">{brandName}</span>
</>
) : ( ) : (
<span className="flex h-8 w-8 items-center justify-center rounded-2xl bg-brand text-brand-foreground"> <Logo className="h-7 w-auto" />
<Mic2 className="h-4 w-4" />
</span>
)} )}
<span className="font-display text-base font-extrabold tracking-tight">{brandName}</span>
</header> </header>
<article className="space-y-8"> <article className="space-y-8">
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

+3 -6
View File
@@ -1,16 +1,13 @@
import Link from "next/link"; import Link from "next/link";
import { Mic } from "lucide-react"; import { Logo } from "@/components/ui/logo";
export function SiteFooter() { export function SiteFooter() {
return ( return (
<footer className="border-t border-border bg-secondary"> <footer className="border-t border-border bg-secondary">
<div className="container flex flex-col gap-10 py-16 md:flex-row md:justify-between"> <div className="container flex flex-col gap-10 py-16 md:flex-row md:justify-between">
<div className="max-w-xs space-y-4"> <div className="max-w-xs space-y-4">
<Link href="/" className="flex items-center gap-2.5 font-display text-lg font-bold tracking-tight"> <Link href="/" className="flex items-center" aria-label="Podcast Distribution AI">
<span className="flex h-9 w-9 items-center justify-center rounded-2xl bg-brand text-brand-foreground"> <Logo className="h-7 w-auto" />
<Mic className="h-5 w-5" />
</span>
Podcast Distribution AI
</Link> </Link>
<p className="text-sm leading-relaxed text-muted-foreground"> <p className="text-sm leading-relaxed text-muted-foreground">
From topic idea to a finished, published podcast episode in minutes script, voice, and From topic idea to a finished, published podcast episode in minutes script, voice, and
+3 -6
View File
@@ -1,16 +1,13 @@
import Link from "next/link"; import Link from "next/link";
import { Mic } from "lucide-react";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Logo } from "@/components/ui/logo";
export function SiteHeader() { export function SiteHeader() {
return ( return (
<header className="sticky top-0 z-40 w-full border-b border-border/70 bg-background/85 backdrop-blur-md"> <header className="sticky top-0 z-40 w-full border-b border-border/70 bg-background/85 backdrop-blur-md">
<div className="container flex h-[72px] items-center justify-between"> <div className="container flex h-[72px] items-center justify-between">
<Link href="/" className="flex items-center gap-2.5 font-display text-lg font-bold tracking-tight"> <Link href="/" className="flex items-center" aria-label="Podcast Distribution AI">
<span className="flex h-9 w-9 items-center justify-center rounded-2xl bg-brand text-brand-foreground"> <Logo className="h-7 w-auto" priority />
<Mic className="h-5 w-5" />
</span>
<span>Podcast Distribution AI</span>
</Link> </Link>
<nav className="hidden items-center gap-8 text-sm font-medium text-muted-foreground md:flex"> <nav className="hidden items-center gap-8 text-sm font-medium text-muted-foreground md:flex">
+33
View File
@@ -0,0 +1,33 @@
import Image from "next/image";
import logoDark from "@/public/logo-dark.png";
import logoLight from "@/public/logo-light.png";
import { cn } from "@/lib/utils";
/**
* The Podcast Distribution AI wordmark. Two assets ship: a dark logo for light
* backgrounds and a light logo for dark backgrounds. They are swapped purely
* with Tailwind `dark:` variants, so on surfaces without a `.dark` ancestor
* (marketing, auth, admin, public share) the dark logo is always shown — which
* is exactly where a dark logo is required.
*
* `className` controls the height (default `h-7`); width follows automatically.
* Set `priority` for above-the-fold placements (e.g. site/app headers).
*/
export function Logo({ className, priority = false }: { className?: string; priority?: boolean }) {
return (
<>
<Image
src={logoDark}
alt="Podcast Distribution AI"
priority={priority}
className={cn("h-7 w-auto dark:hidden", className)}
/>
<Image
src={logoLight}
alt="Podcast Distribution AI"
priority={priority}
className={cn("hidden h-7 w-auto dark:block", className)}
/>
</>
);
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB