import Link from "next/link"; import { AvatarFlip } from "./avatar-flip"; import { HeroTitle } from "./hero-title"; import { QqButton } from "./qq-button"; import { siteConfig } from "@/config/site"; import { localePath, type Locale } from "@/lib/i18n"; import { getMessages } from "@/messages"; // The number-only QQ pill read oddly next to the round icons; kept in the code // but hidden for now — flip this to bring it back. const SHOW_QQ = false; // Icons are drawn at 16×16. QQ isn't here: it renders through , // which shows the number instead of trying to start a chat. const socials = [ { label: "email", href: siteConfig.links.email, viewBox: "0 0 16 16", path: "M1.5 3h13c.8 0 1.5.7 1.5 1.5v7c0 .8-.7 1.5-1.5 1.5h-13C.7 13 0 12.3 0 11.5v-7C0 3.7.7 3 1.5 3Zm.3 1.6L8 8.8l6.2-4.2H1.8Zm12.6 1.5L8.4 10.2a.8.8 0 0 1-.8 0L1.6 6.1v5.3h12.8V6.1Z", }, ]; export function HeroCard({ avatarUrl, dogUrl, lang, }: { avatarUrl?: string; dogUrl?: string; lang: Locale; }) { const t = getMessages(lang); const name = (label: string) => (label === "email" ? t.common.email : label); return (

{t.hero.name}

{t.common.location}

{/* The byline holds the top and the links the bottom; any spare height is shared evenly above and below the statement, so it sits centred between them however its lines fall (the bio wraps differently from one platform's text face to another). Below 768px the card is as tall as its content and nothing is spare. */}

{t.hero.bio}

); }