/** * Model names set the way minimax.io sets them. `MarkLockup` is the card picture: "MiniMax" in * Outfit over the mark in Abhaya Libre ExtraBold ("M3.1", "H3"; a word model stacks its word, * "Speech" over "2.8"), and a trailing word in Libre Baskerville italic ("flash", "image"). * `TitleLockup` is the headline over a hero: one line of Outfit with that italic word. */ const split = (name: string) => { const m = /^MiniMax-(.+?)(?:-([A-Za-z]{3,}))?$/.exec(name) if (!m) return null const word = /^([A-Za-z]{3,})-?([0-9.]+)$/.exec(m[1]) // Music3, Text-01 return { token: m[1], word: word?.[1], mark: word ? word[2] : m[1], tail: m[2]?.toLowerCase() } } export function MarkLockup({ name }: { name: string }) { const p = split(name) if (!p) return {name} return ( MiniMax {p.word && {p.word}} 4 ? "text-[62px]" : "text-[80px]"}`}>{p.mark} {p.tail && {p.tail}} ) } export function TitleLockup({ name }: { name: string }) { const p = split(name) if (!p) return <>{name} return ( <> MiniMax {p.token} {p.tail && {p.tail}} ) }