Brand icon: replace the LinkOS-era placeholders with the real Superbrain mark
release gate / check (push) Canceled after 2m9s

The favicon was a purple block placeholder and og-image.png still said
"LinkOS — Connect Everything"; every brand surface (sidebar, login,
signup, forgot/reset password, unsubscribe) drew a generic Link2 glyph in
a primary-colored square instead of the logo.

Assets (from the operator's superbrain-icon.svg/png):
- public/favicon.svg: the real mark, with the multi-KB C2PA provenance
  manifest stripped (graphics, gradients and filters verified intact via
  rsvg-convert at tab size).
- public/superbrain-icon.png: the 1024px RGBA asset; also wired as the
  apple-touch icon in the root metadata.
- public/og-image.png: recomposed 1200x630 banner — mark + Superbrain
  wordmark + tagline on the brand's deep-blue gradient.

Surfaces: new components/brand-icon.tsx is the single source for the mark
(one img, transparent rounded corners); sidebar brand, all auth pages,
all three unsubscribe states and the help header now use it. State icons
(Check/BellOff) and unused Link2 imports removed where the mark replaced
them; Link2 stays where it is a nav glyph (All Bookmarks).

Verified: web lint/SSR-lint/build 0 errors; full browser regressions pass
(login, mobile shell overflow checks and sign-out flows included).
This commit is contained in:
Andrew S Erwin
2026-11-21 23:52:28 -06:00
parent d4a2ca0d0d
commit e8f04a4082
12 changed files with 64 additions and 41 deletions
+3 -4
View File
@@ -3,7 +3,8 @@
import { useState } from 'react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Link2, Mail } from 'lucide-react'
import { Mail } from 'lucide-react'
import { BrandIcon } from '@/components/brand-icon'
import Link from 'next/link'
import { toast } from 'sonner'
@@ -41,9 +42,7 @@ export function ForgotPasswordClient() {
<div className="w-full max-w-sm space-y-8">
<div className="text-center">
<div className="flex justify-center mb-4">
<div className="flex h-14 w-14 items-center justify-center rounded-2xl bg-primary text-primary-foreground">
<Link2 className="h-7 w-7" />
</div>
<BrandIcon className="h-14 w-14" />
</div>
<h1 className="font-display text-3xl font-bold tracking-tight">Reset Password</h1>
<p className="text-sm text-muted-foreground mt-2">
+3 -1
View File
@@ -2,6 +2,7 @@ import Link from 'next/link'
import { Button } from '@/components/ui/button'
import { Badge } from '@/components/ui/badge'
import { HelpFaq } from './faq'
import { BrandIcon } from '@/components/brand-icon'
import {
Bookmark, FolderOpen, FileText, Kanban, Radar, Bell, Bot,
FolderSync, KeyRound, ArrowRight,
@@ -115,7 +116,8 @@ export default function HelpPage() {
<div className="min-h-screen bg-background">
<header className="border-b border-border">
<div className="mx-auto flex max-w-4xl items-center justify-between px-6 py-4">
<Link href="/login" className="font-display text-lg font-bold tracking-tight">
<Link href="/login" className="flex items-center gap-2 font-display text-lg font-bold tracking-tight">
<BrandIcon className="h-6 w-6" />
superbrain
</Link>
<Button asChild size="sm">
+1
View File
@@ -15,6 +15,7 @@ export const metadata = {
icons: {
icon: '/favicon.svg',
shortcut: '/favicon.svg',
apple: '/superbrain-icon.png',
},
openGraph: {
title: 'Superbrain',
+3 -4
View File
@@ -4,7 +4,8 @@ import { useState } from 'react'
import { signIn } from 'next-auth/react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Link2, Shield, Mail, Lock } from 'lucide-react'
import { Shield, Mail, Lock } from 'lucide-react'
import { BrandIcon } from '@/components/brand-icon'
import Link from 'next/link'
import { toast } from 'sonner'
import { useRouter } from 'next/navigation'
@@ -42,9 +43,7 @@ export function LoginClient({ oidcEnabled, passwordEnabled }: { oidcEnabled: boo
<div className="w-full max-w-sm space-y-8">
<div className="text-center">
<div className="flex justify-center mb-4">
<div className="flex h-14 w-14 items-center justify-center rounded-2xl bg-primary text-primary-foreground">
<Link2 className="h-7 w-7" />
</div>
<BrandIcon className="h-14 w-14" />
</div>
<h1 className="font-display text-3xl font-bold tracking-tight">Superbrain</h1>
<p className="text-sm text-muted-foreground mt-2">Your personal binder of life on the web</p>
+4 -7
View File
@@ -4,7 +4,8 @@ import { useState } from 'react'
import { useSearchParams, useRouter } from 'next/navigation'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Link2, Lock } from 'lucide-react'
import { Lock } from 'lucide-react'
import { BrandIcon } from '@/components/brand-icon'
import Link from 'next/link'
import { toast } from 'sonner'
@@ -48,9 +49,7 @@ export function ResetPasswordClient() {
<div className="min-h-screen flex items-center justify-center bg-background p-4">
<div className="w-full max-w-sm space-y-8 text-center">
<div className="flex justify-center mb-4">
<div className="flex h-14 w-14 items-center justify-center rounded-2xl bg-primary text-primary-foreground">
<Link2 className="h-7 w-7" />
</div>
<BrandIcon className="h-14 w-14" />
</div>
<h1 className="font-display text-3xl font-bold tracking-tight">Reset Password</h1>
<p className="text-sm text-muted-foreground mt-2">
@@ -71,9 +70,7 @@ export function ResetPasswordClient() {
<div className="w-full max-w-sm space-y-8">
<div className="text-center">
<div className="flex justify-center mb-4">
<div className="flex h-14 w-14 items-center justify-center rounded-2xl bg-primary text-primary-foreground">
<Link2 className="h-7 w-7" />
</div>
<BrandIcon className="h-14 w-14" />
</div>
<h1 className="font-display text-3xl font-bold tracking-tight">Choose a New Password</h1>
<p className="text-sm text-muted-foreground mt-2">Resetting signs out every other device.</p>
+3 -4
View File
@@ -4,7 +4,8 @@ import { useState } from 'react'
import { signIn } from 'next-auth/react'
import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Link2, Mail, Lock, User } from 'lucide-react'
import { Mail, Lock, User } from 'lucide-react'
import { BrandIcon } from '@/components/brand-icon'
import Link from 'next/link'
import { toast } from 'sonner'
import { useRouter } from 'next/navigation'
@@ -52,9 +53,7 @@ export function SignupClient() {
<div className="w-full max-w-sm space-y-8">
<div className="text-center">
<div className="flex justify-center mb-4">
<div className="flex h-14 w-14 items-center justify-center rounded-2xl bg-primary text-primary-foreground">
<Link2 className="h-7 w-7" />
</div>
<BrandIcon className="h-14 w-14" />
</div>
<h1 className="font-display text-3xl font-bold tracking-tight">Create Account</h1>
<p className="text-sm text-muted-foreground mt-2">Join Superbrain to start organizing your links</p>
+4 -10
View File
@@ -3,7 +3,7 @@
import { useState } from 'react'
import { useSearchParams } from 'next/navigation'
import { Button } from '@/components/ui/button'
import { BellOff, Check, Link2 } from 'lucide-react'
import { BrandIcon } from '@/components/brand-icon'
import Link from 'next/link'
import { toast } from 'sonner'
@@ -46,9 +46,7 @@ export function UnsubscribeClient() {
<div className="min-h-screen flex items-center justify-center bg-background p-4">
<div className="w-full max-w-sm space-y-8 text-center">
<div className="flex justify-center mb-4">
<div className="flex h-14 w-14 items-center justify-center rounded-2xl bg-primary text-primary-foreground">
<Link2 className="h-7 w-7" />
</div>
<BrandIcon className="h-14 w-14" />
</div>
<h1 className="font-display text-3xl font-bold tracking-tight">Invalid Link</h1>
<p className="text-sm text-muted-foreground mt-2">
@@ -72,9 +70,7 @@ export function UnsubscribeClient() {
<div className="min-h-screen flex items-center justify-center bg-background p-4">
<div className="w-full max-w-sm space-y-8 text-center">
<div className="flex justify-center mb-4">
<div className="flex h-14 w-14 items-center justify-center rounded-2xl bg-primary text-primary-foreground">
<Check className="h-7 w-7" />
</div>
<BrandIcon className="h-14 w-14" />
</div>
<h1 className="font-display text-3xl font-bold tracking-tight">You&apos;re Unsubscribed</h1>
<p className="text-sm text-muted-foreground mt-2">
@@ -99,9 +95,7 @@ export function UnsubscribeClient() {
<div className="w-full max-w-sm space-y-8">
<div className="text-center">
<div className="flex justify-center mb-4">
<div className="flex h-14 w-14 items-center justify-center rounded-2xl bg-primary text-primary-foreground">
<BellOff className="h-7 w-7" />
</div>
<BrandIcon className="h-14 w-14" />
</div>
<h1 className="font-display text-3xl font-bold tracking-tight">Unsubscribe</h1>
<p className="text-sm text-muted-foreground mt-2">
+8
View File
@@ -0,0 +1,8 @@
import { cn } from '@/lib/utils'
// The Superbrain mark (public/superbrain-icon.png, transparent rounded
// corners). One component so every brand surface — sidebar, auth pages,
// help header — stays in sync with the asset.
export function BrandIcon({ className }: { className?: string }) {
return <img src="/superbrain-icon.png" alt="" className={cn('shrink-0', className)} />
}
+2 -3
View File
@@ -10,6 +10,7 @@ import { Suspense, useCallback, useEffect, useRef, useState, useSyncExternalStor
// identified from the UI alone.
const APP_VERSION = process.env.NEXT_PUBLIC_SUPERBRAIN_VERSION || ''
import { cn } from '@/lib/utils'
import { BrandIcon } from '@/components/brand-icon'
import {
Calendar, Tags, Users, Kanban, Link2, Settings, ChevronLeft, ChevronRight, ChevronDown,
FileText, Pin, PinOff, Plus, Shield, Search, MoreHorizontal, Trash2, Pencil, Layers, GripVertical, X,
@@ -91,9 +92,7 @@ export function Sidebar({ open, mobileOpen = false, onToggle, onCloseMobile, onQ
>
<div className="flex items-center gap-2 px-3 py-3">
<Link href="/pages" className="flex min-w-0 items-center gap-2">
<div className="flex h-6 w-6 shrink-0 items-center justify-center rounded bg-primary text-primary-foreground">
<Link2 className="h-3.5 w-3.5" />
</div>
<BrandIcon className="h-6 w-6" />
{expanded && <span className="truncate font-display text-sm font-bold tracking-tight">superbrain</span>}
</Link>
<Button variant="ghost" size="icon-sm" className="ml-auto lg:hidden" onClick={onCloseMobile} aria-label="Close navigation">
+33 -8
View File
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 548 B

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB