mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-04 04:47:45 +01:00
Botsmann had no identity of its own: a generic 2021-era AI-SaaS skin with the brand fragmented across three disagreeing sources (config OpenAI-green, globals.css black/white, page blue/purple/cyan gradients). Derive Botsmann's OWN voice — serious, credible counsel: warm editorial ink + a single authoritative ochre accent, carried by a serif display face, not gradient tricks. - globals.css is now the single SSOT for design tokens (semantic colors for brand/action/surface/text + radii + shadows, two-tier primitive→semantic). - tailwind.config wired to the CSS vars; literal colors removed. Ripped out the OpenAI-borrowed tokens (openai-green #10a37f / openai-gray) and migrated every consumer to the semantic `action` / `brand` tokens. - Killed the generic "AI gradient" skin: removed the blue→purple→cyan gradient wordmark, the blurred gradient hero blobs, gradient buttons, and glassmorphism. Replaced with one confident ochre accent + ink, hairline editorial surfaces. - Real typeface via next/font: Fraunces (serif display, headings + wordmark) + Inter (UI/body), bound to --font-serif / --font-sans. Retires system-ui. - Replaced emoji professional avatars (⚖️🩺🔬🇨🇭🎨♛) with a ProfessionalAvatar monogram badge built on the existing accentColor SSOT. - One headline value prop: tab title, hero H1 and footer now all agree on "Your Private AI Professionals" (was a split tagline vs H1). Design only — all content and functionality preserved. Lint clean; no new tsc errors (the pre-existing embeddings.test.ts error is unchanged from main); production CSS resolves the full token chain. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
59 lines
1.2 KiB
TypeScript
59 lines
1.2 KiB
TypeScript
import { type FC } from 'react';
|
|
import Link from 'next/link';
|
|
import type { Route } from 'next';
|
|
|
|
interface LogoProps {
|
|
/** Link destination. Set to null to render without a link */
|
|
href?: Route | null;
|
|
showText?: boolean;
|
|
size?: 'sm' | 'md' | 'lg';
|
|
}
|
|
|
|
const sizeClasses = {
|
|
sm: {
|
|
icon: 'px-2 py-1 text-sm',
|
|
text: 'text-lg',
|
|
},
|
|
md: {
|
|
icon: 'px-4 py-2 text-xl',
|
|
text: 'text-2xl',
|
|
},
|
|
lg: {
|
|
icon: 'px-5 py-3 text-2xl',
|
|
text: 'text-3xl',
|
|
},
|
|
} as const;
|
|
|
|
/**
|
|
* Botsmann Logo component
|
|
* Single source of truth for logo styling across the app
|
|
*/
|
|
export const Logo: FC<LogoProps> = ({ href = '/' as Route, showText = true, size = 'md' }) => {
|
|
const sizes = sizeClasses[size];
|
|
|
|
const logoContent = (
|
|
<div className="group flex items-center space-x-2.5">
|
|
<div
|
|
className={`relative bg-brand text-paper font-serif font-semibold ${sizes.icon} rounded-btn`}
|
|
>
|
|
B
|
|
</div>
|
|
{showText && (
|
|
<span className={`${sizes.text} font-serif font-semibold tracking-tight text-ink`}>
|
|
Botsmann
|
|
</span>
|
|
)}
|
|
</div>
|
|
);
|
|
|
|
if (href) {
|
|
return (
|
|
<Link href={href} className="flex items-center">
|
|
{logoContent}
|
|
</Link>
|
|
);
|
|
}
|
|
|
|
return logoContent;
|
|
};
|