mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-04 06:08:38 +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>
37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import { type FC } from 'react';
|
|
import { type Professional, getAccentColorClasses } from '@/data/professionals';
|
|
|
|
interface ProfessionalAvatarProps {
|
|
professional: Professional;
|
|
/** Tailwind size classes for the badge box (e.g. 'w-14 h-14'). */
|
|
className?: string;
|
|
/** Tailwind text-size class for the monogram. */
|
|
textClassName?: string;
|
|
}
|
|
|
|
/**
|
|
* Monogram badge for an AI Professional.
|
|
*
|
|
* Replaces the emoji avatars (⚖️🩺🔬…) — a single, consistent identity system
|
|
* built on the existing accentColor SSOT. Reads as a serious credential mark
|
|
* (initials on a tinted disc), not a toy. Used wherever a professional avatar
|
|
* appears so the look stays uniform.
|
|
*/
|
|
export const ProfessionalAvatar: FC<ProfessionalAvatarProps> = ({
|
|
professional,
|
|
className = 'w-14 h-14',
|
|
textClassName = 'text-xl',
|
|
}) => {
|
|
const colors = getAccentColorClasses(professional.accentColor);
|
|
const monogram = professional.name.charAt(0).toUpperCase();
|
|
|
|
return (
|
|
<div
|
|
className={`${colors.bgLight} ${className} flex items-center justify-center rounded-card font-serif font-semibold ${colors.text} ${textClassName}`}
|
|
aria-hidden="true"
|
|
>
|
|
{monogram}
|
|
</div>
|
|
);
|
|
};
|