Brand Wheel
Rotating logos text: a lead word and a wheel of brand pills that rolls through the platforms you ship to, blurred rows above and below, then a cursor clicks the last one. Motion measured frame by frame from a recording.
Source
components/kuchi/brand-wheel/index.tsx
1"use client";23import { loadFont } from "@remotion/google-fonts/InterTight";4import {5 AbsoluteFill,6 getRemotionEnvironment,7 useCurrentFrame,8 useVideoConfig,9} from "remotion";10import {11 resolveFont,12 type KuchiTheme,13 useKuchiTheme,14 withAlpha,15} from "@/lib/kuchi-ui";16import {17 BRANDS,18 type BrandMark,19 brandKey,20 CURSOR,21 ENTER,22 FADE,23 FIRST,24 FIRST_REST,25 INK,26 PITCH,27 REF_H,28 REF_W,29 STEP,30 STEP_FRAMES,31 STOP_EARLY,32 SWAP,33} from "./data";3435/**36 * A lead word and a wheel of brand pills that rolls through where you ship.37 *38 * "launch on" holds the left of the line; the pill to its39 * right is one row of a column whose other rows sit above and below it, blurred40 * and fading. The column rolls a row every two thirds of a second, never quite41 * stopping, draws in as a cursor glides up, and freezes on the last brand just42 * as the cursor clicks it. A ring answers the click, then the line slides away.43 *44 * Every number in `./data` was recovered frame by frame from a recording and is45 * in that recording's pixels — the 57.45px pitch, the step curve that creeps46 * through the slot and rushes between rows, the moment focus changes hands, the47 * fade with distance, the cursor's glide. The constants below are the same48 * frame's geometry: the scene is laid out at 712 × 402 and scaled by height.49 *50 * The recording is set in SF Pro, which no render farm has. Inter Tight is the51 * nearest face a Remotion bundle can load — fingerprinted on five words against52 * the reference's ink, 2.9% RMS with -0.012em of tracking — and each size below53 * is fitted to the reference's ink height, not to a nominal point size.54 */5556const { fontFamily: SANS } = loadFont("normal", {57 weights: ["400", "500"],58 subsets: ["latin"],59});6061/* ── The lockup, in reference px ─────────────────────────────────────────── */6263/** The slot's middle. Pill borders measured at 177.55 and 215.30. */64const ROW_Y = 196.43;65/** Centre of the whole lockup, lead.s left edge to pill's right (504.6). */66const ROW_X = 360.875;67const PILL_H = 38.75;68/** Border to brand box, and label's box to border, at the widest label. */69const PILL_PAD_L = 6.5;70const PILL_PAD_R = 12.86;71const MARK_H = 28;72const MARK_GAP = 10.73;73const LABEL = 22.8;74const LEAD = 30.65;75const TRACK = "-0.032em";76const LEAD_GAP = 20.05;77/**78 * Baselines, as nudges off flex centring: the lead's ink sits on 206.65 and79 * the label's on 204.9, neither of which is where centring a line box puts it.80 */81const LEAD_NUDGE = 0.31;82const LABEL_NUDGE = 0.75;8384/** Rows out of focus. */85const BLUR = 2.4;86const DIM = 0.42;8788/* ── Timing, in reference frames at 30fps, relative to the stop ──────────── */8990/** The wheel draws in under the approaching cursor. */91const SHRINK = 0.93;92const SHRINK_AT: readonly [number, number] = [-33.6, -9.6];93const CURSOR_IN: readonly [number, number] = [-34.6, -19.6];94/** Click: the cursor presses to 0.9 and lets go. */95const PRESS: readonly [number, number, number, number] = [-2.6, -0.6, 4.4, 7.4];96/** The ring that answers the click: grows to 12.5px and fades out by +17.4. */97const RING_AT = 0.4;98const RING_W = 12.5;99const RING_FADE: readonly [number, number] = [3.4, 17.4];100const RING_ALPHA = 0.06;101/** The line leaves on an ease-in slide, fading over its last five frames. */102const EXIT_AT = 2.4;103const EXIT_FADE: readonly [number, number] = [20.4, 25.4];104105type Table = readonly (readonly [number, number])[];106107function read(table: Table, v: number): number {108 const first = table[0];109 const last = table[table.length - 1];110 if (!first || !last) return 0;111 if (v <= first[0]) return first[1];112 if (v >= last[0]) return last[1];113 for (let i = 1; i < table.length; i++) {114 const hi = table[i];115 const lo = table[i - 1];116 if (hi && lo && v <= hi[0]) {117 return lo[1] + ((hi[1] - lo[1]) * (v - lo[0])) / (hi[0] - lo[0]);118 }119 }120 return last[1];121}122123const clamp01 = (v: number) => Math.min(1, Math.max(0, v));124const ramp = (v: number, a: number, b: number) => clamp01((v - a) / (b - a));125const smooth = (v: number) => v * v * (3 - 2 * v);126127/** The reference frame the strip freezes on, for a reel of `n`. */128export const stopFrame = (n: number) =>129 FIRST_REST + STEP_FRAMES * Math.max(0, n - 2) - STOP_EARLY;130131/** Frames at 30fps for a reel of `n`: the roll, the click, the exit. */132export const brandWheelDuration = (n: number) =>133 Math.ceil(stopFrame(n) + EXIT_FADE[1]);134135/** Rows travelled at reference frame `f`, for a reel of `n`. */136export function rollAt(f: number, n: number): number {137 if (n < 2) return 0;138 const g = Math.min(f, stopFrame(n));139 if (g < FIRST_REST) return read(FIRST, g);140 const k = (g - FIRST_REST) / STEP_FRAMES;141 const whole = Math.floor(k);142 const u = (k - whole) * STEP_FRAMES;143 const i = Math.floor(u);144 const a = STEP[i] ?? 1;145 const b = STEP[i + 1] ?? 1;146 return Math.min(n - 1, 1 + whole + a + (b - a) * (u - i));147}148149/** The row in focus: it changes hands before the midpoint, at `SWAP`. */150export const focusAt = (q: number, n: number) =>151 Math.min(n - 1, Math.floor(q + 1 - SWAP));152153/** Interpolates a (t, x, y) track. */154function track(v: number): readonly [number, number] {155 const first = CURSOR[0]!;156 const last = CURSOR[CURSOR.length - 1]!;157 if (v <= first[0]) return [first[1], first[2]];158 for (let i = 1; i < CURSOR.length; i++) {159 const hi = CURSOR[i]!;160 const lo = CURSOR[i - 1]!;161 if (v <= hi[0]) {162 const k = (v - lo[0]) / (hi[0] - lo[0]);163 return [lo[1] + (hi[1] - lo[1]) * k, lo[2] + (hi[2] - lo[2]) * k];164 }165 }166 return [last[1], last[2]];167}168169function Mark({170 mark,171 label,172 ink,173 card,174 u,175}: {176 mark?: BrandMark;177 label: string;178 ink: string;179 card: string;180 u: number;181}) {182 const box = {183 width: (mark?.w ?? MARK_H) * u,184 height: MARK_H * u,185 flexShrink: 0,186 display: "flex",187 alignItems: "center",188 justifyContent: "center",189 } as const;190 if (!mark) {191 // A brand with no mark gets its initial on a disc, so any copy works.192 return (193 <div style={box}>194 <svg width={24 * u} height={24 * u} viewBox="0 0 24 24" aria-hidden>195 <circle cx={12} cy={12} r={12} fill={ink} />196 <text197 x={12}198 y={16.5}199 textAnchor="middle"200 fontSize={13}201 fontWeight={600}202 fill={card}203 >204 {label.charAt(0).toUpperCase()}205 </text>206 </svg>207 </div>208 );209 }210 const id = `bw-${brandKey(label)}`;211 return (212 <div style={box}>213 <svg214 width={mark.ink[0] * u}215 height={mark.ink[1] * u}216 viewBox={mark.view ?? "0 0 24 24"}217 preserveAspectRatio="none"218 aria-hidden219 >220 {mark.tile ? (221 <>222 <defs>223 <radialGradient id={id} cx="0.3" cy="1.07" r="1.3">224 {mark.tile.map((c, i, all) => (225 <stop226 key={c}227 offset={0.05 + (0.85 * i) / (all.length - 1)}228 stopColor={c}229 />230 ))}231 </radialGradient>232 </defs>233 <rect width={24} height={24} rx={5} fill={`url(#${id})`} />234 </>235 ) : null}236 {mark.paths.map((p) => (237 <path238 key={p.d.slice(0, 32)}239 d={p.d}240 transform={p.t}241 fill={p.fill === INK ? ink : p.fill}242 />243 ))}244 </svg>245 </div>246 );247}248249export interface BrandWheelProps {250 /** The word that never changes. */251 lead?: string;252 /** The reel, comma separated, top to bottom. It comes to rest on the last. */253 items?: string;254 /** The lead word. Defaults to the theme's primary. */255 accent?: string;256 /** Glide a cursor onto the last pill and click it. */257 cursor?: boolean;258 speed?: number;259 theme?: Partial<KuchiTheme>;260 mode?: "light" | "dark";261 fontFamily?: string;262}263264export function BrandWheel({265 lead = "launch on",266 items = "X, YouTube, LinkedIn, Instagram, TikTok, Product Hunt",267 accent,268 cursor = true,269 speed = 1,270 theme,271 mode = "light",272 fontFamily = "Default",273}: BrandWheelProps) {274 const frame = useCurrentFrame();275 const { fps, width, height } = useVideoConfig();276 const t = useKuchiTheme(theme, mode);277 const face = resolveFont(fontFamily) ?? SANS;278 const tint = accent ?? t.primary;279280 const reel = items281 .split(",")282 .map((s) => s.trim())283 .filter(Boolean);284 const n = reel.length;285286 const u = height / REF_H;287 const ox = (width - REF_W * u) / 2;288 const f = (frame * speed * 30) / fps;289 const since = f - stopFrame(n);290291 const q = rollAt(f, n);292 const focus = focusAt(q, n);293294 const slide = read(ENTER, f) - 0.0212 * Math.max(0, since - EXIT_AT) ** 2.24;295 const gone = 1 - ramp(since, EXIT_FADE[0], EXIT_FADE[1]);296 const shrink = 1 - (1 - SHRINK) * smooth(ramp(since, ...SHRINK_AT));297 const ringW = RING_W * (1 - Math.exp(-Math.max(0, since - RING_AT) / 2.5));298 const ringA =299 since > RING_AT ? RING_ALPHA * (1 - ramp(since, ...RING_FADE)) : 0;300301 const wheelIn = ramp(f, -1, 3);302303 const [tx, ty] = track(since);304 const press =305 1 -306 0.1 *307 (smooth(ramp(since, PRESS[0], PRESS[1])) -308 smooth(ramp(since, PRESS[2], PRESS[3])));309310 // Composite in the Player, re-rasterise in the render — see motion-quality.311 const live = getRemotionEnvironment().isRendering312 ? null313 : ({ willChange: "transform" } as const);314315 const pill = (label: string, ring?: string) => (316 <div317 style={{318 boxSizing: "border-box",319 height: PILL_H * u,320 display: "flex",321 alignItems: "center",322 gap: MARK_GAP * u,323 paddingLeft: PILL_PAD_L * u,324 paddingRight: PILL_PAD_R * u,325 borderRadius: t.radius * u,326 border: `${u}px solid ${t.border}`,327 background: t.card,328 boxShadow: ring,329 color: t.cardForeground,330 }}331 >332 <Mark333 mark={BRANDS[brandKey(label)]}334 label={label}335 ink={t.cardForeground}336 card={t.card}337 u={u}338 />339 <span340 style={{341 fontSize: LABEL * u,342 lineHeight: 1,343 fontWeight: 500,344 letterSpacing: TRACK,345 transform: `translateY(${LABEL_NUDGE * u}px)`,346 }}347 >348 {label}349 </span>350 </div>351 );352353 return (354 <AbsoluteFill style={{ backgroundColor: t.background }}>355 <div356 style={{357 position: "absolute",358 left: ox,359 top: 0,360 width: REF_W * u,361 height: REF_H * u,362 overflow: "hidden",363 fontFamily: face,364 fontWeight: 400,365 textRendering: "geometricPrecision",366 whiteSpace: "nowrap",367 }}368 >369 <div370 style={{371 position: "absolute",372 left: ROW_X * u,373 top: (ROW_Y - PILL_H / 2) * u,374 height: PILL_H * u,375 display: "flex",376 alignItems: "center",377 opacity: gone,378 transform: `translateX(calc(-50% + ${slide * u}px))`,379 ...live,380 }}381 >382 <div383 style={{384 marginRight: LEAD_GAP * u,385 fontSize: LEAD * u,386 lineHeight: 1,387 letterSpacing: "-0.024em",388 color: tint,389 transform: `translateY(${LEAD_NUDGE * u}px)`,390 }}391 >392 {lead}393 </div>394 {/* Every pill in one grid cell: the column is as wide as its widest395 label, so every row is the same pill and any copy fits. */}396 <div397 style={{398 display: "grid",399 height: PILL_H * u,400 opacity: wheelIn,401 transform: `scale(${shrink})`,402 }}403 >404 {reel.map((label, i) => {405 const d = (i - q) * PITCH;406 const vis = read(FADE, Math.abs(d * shrink));407 const sharp = i === focus;408 return (409 <div410 key={`${i}-${label}`}411 style={{412 gridArea: "1 / 1",413 visibility: vis > 0 ? "visible" : "hidden",414 transform: `translateY(${d * u}px)`,415 opacity: vis * (sharp ? 1 : DIM),416 filter: sharp ? undefined : `blur(${BLUR * u}px)`,417 ...live,418 }}419 >420 {pill(421 label,422 i === n - 1 && ringA > 0423 ? `0 0 0 ${ringW * u}px ${withAlpha(t.foreground, ringA)}`424 : undefined,425 )}426 </div>427 );428 })}429 </div>430 </div>431 {cursor && n > 1 ? (432 <div433 style={{434 position: "absolute",435 left: (tx - 1) * u,436 top: (ty - 1) * u,437 opacity: ramp(since, ...CURSOR_IN),438 transform: `scale(${press})`,439 transformOrigin: `${u}px ${u}px`,440 }}441 >442 {/* A macOS arrow, its tip one unit in from the corner. */}443 <svg444 width={13 * u}445 height={21 * u}446 viewBox="-1 -1 13 21"447 aria-hidden448 >449 <path450 d="M0 0V16.2L3.9 12.6L6.6 18.7L9.1 17.6L6.5 11.6H11.6Z"451 fill="#000000"452 stroke="#ffffff"453 strokeWidth={1}454 strokeLinejoin="round"455 />456 </svg>457 </div>458 ) : null}459 </div>460 </AbsoluteFill>461 );462}
components/kuchi/brand-wheel/data.ts
1/**2 * Everything Brand Wheel knows about its own motion, measured.3 *4 * The numbers below were recovered from a 4.6 second, 712 × 402 screen capture,5 * every one of its 139 frames, and they are in that recording's own pixels and6 * its own 30fps frames. The scene scales them by height, so a render at the7 * reference's size is the reference's size and nothing resamples in between.8 */910export const REF_W = 712;11export const REF_H = 402;1213/**14 * Row to row, in px. Three rest crossings — 34.72, 54.35 and 74.76 — land15 * 57.78, 57.11 and 57.44 apart on the strip; this is their mean.16 */17export const PITCH = 57.45;1819/**20 * A step of the wheel, from one row resting in the slot to the next, as21 * (share of the 20 frames, share of the pitch).22 *23 * It is not an ease you can name. The strip never stops between rows: it24 * creeps through the slot at 1.35px a frame, speeds up to 9px a frame as the25 * next row comes in, and creeps again — which reads as a wheel with weight26 * rather than as a carousel with a timer. Read by cross-correlating the column's27 * vertical ink profile frame to frame (0.01px steps) and averaging the two28 * cycles the cursor does not touch; they agree to 0.46px.29 */30export const STEP: readonly number[] = [31 0, 0.0264, 0.055, 0.0864, 0.122, 0.1636, 0.2147, 0.2838, 0.3991, 0.5496,32 0.656, 0.7222, 0.771, 0.8107, 0.8452, 0.8759, 0.9042, 0.9293, 0.953, 0.9763,33 1,34];3536/** Frames per step. Swaps land on 22.5, 42.5, 62.5, 82.5 and 102.5. */37export const STEP_FRAMES = 20;3839/**40 * The first step, which starts from a standstill and so is not a `STEP`: the41 * first row holds the slot until frame 11.5, then the strip pulls away slowly42 * and catches the rhythm by the time the second row rests at 34.72.43 */44export const FIRST: readonly (readonly [number, number])[] = [45 [11.5, 0],46 [12, 0.0003],47 [13, 0.0015],48 [14, 0.0041],49 [15, 0.0077],50 [16, 0.0145],51 [17, 0.0228],52 [18, 0.0363],53 [19, 0.054],54 [20, 0.0788],55 [21, 0.1178],56 [22, 0.1899],57 [23, 0.3876],58 [24, 0.567],59 [25, 0.6587],60 [26, 0.7226],61 [27, 0.7733],62 [28, 0.815],63 [29, 0.8507],64 [30, 0.8826],65 [31, 0.9114],66 [32, 0.9365],67 [33, 0.9596],68 [34, 0.9823],69 [34.72, 1],70];7172/** The frame the second row comes to rest; every later row is 20 frames on. */73export const FIRST_REST = 34.72;7475/**76 * Where in a step the slot changes hands, as a share of the pitch.77 *78 * Not half. The incoming row takes the focus when it is still 0.64 of a pitch79 * out — between 0.319 and 0.388 on every swap in the recording — which is why80 * each new row arrives already sharp instead of popping in at the midpoint.81 */82export const SWAP = 0.36;8384/**85 * The strip freezes this many frames before the last row would rest, still86 * creeping at 1.15px a frame. Measured, and it is the beat that makes the stop87 * read as a click landing rather than as the wheel running out.88 */89export const STOP_EARLY = 1.12;9091/**92 * How visible a row is by its distance from the slot, in px, as (distance,93 * opacity). Read off the peak ink of every row in every frame of the Google94 * cycle and normalised to the row in the slot. It is a property of position,95 * not of focus: the row in the slot is faded by it too while it is arriving.96 */97export const FADE: readonly (readonly [number, number])[] = [98 [0, 1],99 [12, 1],100 [21.4, 0.88],101 [32.4, 0.81],102 [41.7, 0.7],103 [47, 0.61],104 [53.9, 0.47],105 [59.4, 0.36],106 [67.2, 0.25],107 [74.2, 0.14],108 [82.6, 0.09],109 [93.5, 0.04],110 [105, 0],111];112113/**114 * The lockup sliding into place, as (frame, px to the right of home). It is a115 * plain exponential settle — 0.8 of the remaining distance each frame.116 */117export const ENTER: readonly (readonly [number, number])[] = [118 [0, 38],119 [1, 31.5],120 [2, 25],121 [3, 20.5],122 [4, 17],123 [5, 14],124 [6, 11.3],125 [7, 9.2],126 [8, 7.6],127 [9, 6.2],128 [10, 5],129 [11, 4],130 [12, 3.2],131 [13, 2.5],132 [14, 1.9],133 [15, 1.4],134 [16, 1],135 [18, 0.45],136 [21, 0],137];138139/**140 * The cursor's tip, as (frames before the stop, x, y). It glides in from the141 * lower right, decelerating, and parks on the end of the pill a few frames142 * before the wheel stops under it.143 */144export const CURSOR: readonly (readonly [number, number, number])[] = [145 [-40, 640, 343],146 [-37, 606, 314],147 [-34, 580, 292],148 [-31.6, 557, 273],149 [-30.6, 553, 267],150 [-29.6, 548, 263],151 [-28.6, 542, 258],152 [-27.6, 536, 253],153 [-26.6, 528.5, 248],154 [-25.6, 522, 242.5],155 [-24.6, 515.5, 237.5],156 [-23.6, 509.5, 233],157 [-22.6, 504.5, 229],158 [-21.6, 500, 225.5],159 [-20.6, 496.5, 222.5],160 [-19.6, 493.5, 220],161 [-18.6, 491, 218],162 [-17.6, 488.5, 216.2],163 [-16.6, 486.5, 214.6],164 [-15.6, 484.5, 213.2],165 [-14.6, 483, 212],166 [-13.6, 481.6, 211],167 [-12.6, 480.5, 210.2],168 [-11.6, 479.6, 209.6],169 [-10.6, 479, 209.1],170 [-8.6, 478.4, 208.6],171 [-6.6, 478, 208.4],172];173174/**175 * Brand marks. Each sits in a box `w` wide and 28 tall at the reference's176 * scale — the box is what the label is spaced from, and it is not square:177 * YouTube's is 34, Meta's 31, which is why their labels start later in the178 * recording. `ink` is the drawn size inside it, centred. Paths are Simple179 * Icons (CC0) in their own 24-unit space unless `view` says otherwise.180 */181export interface BrandMark {182 w: number;183 ink: readonly [number, number];184 view?: string;185 paths: readonly { d: string; fill: string; t?: string }[];186 /** A rounded gradient tile under the paths (Instagram). */187 tile?: readonly string[];188}189190/** Paints the ink colour, so a black mark survives `mode="dark"`. */191export const INK = "ink";192193const DISC = "M12 0a12 12 0 1 1 0 24a12 12 0 1 1 0-24z";194195export const BRANDS: Record<string, BrandMark> = {196 x: {197 w: 28,198 ink: [21, 21],199 paths: [200 {201 fill: INK,202 d: "M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z",203 },204 ],205 },206 youtube: {207 w: 30.7,208 ink: [26.2, 20.8],209 view: "0 0 26.2 20.8",210 paths: [211 {212 fill: "#cb1f1a",213 d: "M5.4 0h15.4a5.4 5.4 0 0 1 5.4 5.4v10a5.4 5.4 0 0 1-5.4 5.4H5.4A5.4 5.4 0 0 1 0 15.4v-10A5.4 5.4 0 0 1 5.4 0z",214 },215 { fill: "#ffffff", d: "M10.3 6.3v8.2l7-4.1z" },216 ],217 },218 linkedin: {219 w: 28,220 ink: [23, 23],221 paths: [222 {223 fill: "#0a66c2",224 d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z",225 },226 ],227 },228 instagram: {229 w: 28,230 ink: [24.2, 24.2],231 tile: ["#fdf497", "#fd5949", "#d6249f", "#285aeb"],232 paths: [233 {234 fill: "#ffffff",235 t: "translate(3.6 3.6) scale(0.7)",236 d: "M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077",237 },238 ],239 },240 tiktok: {241 w: 28,242 ink: [21, 23],243 view: "1.6 0 21 24",244 paths: [245 {246 fill: INK,247 d: "M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z",248 },249 ],250 },251 producthunt: {252 w: 28,253 ink: [24, 24],254 paths: [255 {256 fill: "#da552f",257 d: "M13.604 8.4h-3.405V12h3.405c.995 0 1.801-.806 1.801-1.801 0-.993-.805-1.799-1.801-1.799zM12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zm1.604 14.4h-3.405V18H7.801V6h5.804c2.319 0 4.2 1.88 4.2 4.199 0 2.321-1.881 4.201-4.201 4.201z",258 },259 ],260 },261 google: {262 w: 28,263 ink: [26.6, 27.5],264 view: "0 0.95 24 22",265 paths: [266 {267 fill: "#f4af44",268 d: "M7.5137 4.8438L1.5645 15.1484A4.5 4.5 0 0 1 4 14.4297c2.5597-.0075 4.6248 2.1585 4.4941 4.7148l3.2168-5.5723-3.6094-6.25c-.4499-.7793-.6322-1.6394-.5878-2.4784z",269 },270 {271 fill: "#1775b7",272 d: "M23.4641 16.9287L15.4632 3.072C14.3586 1.1587 11.9121.5028 9.9988 1.6074S7.4295 5.1585 8.5341 7.0718l8.0009 13.8567c1.1046 1.9133 3.5511 2.5679 5.4644 1.4646 1.9134-1.1046 2.568-3.5511 1.4647-5.4644z",273 },274 {275 fill: "#34b24a",276 d: "M3.9998 22.9291C1.7908 22.9291 0 21.1383 0 18.9293s1.7908-3.9998 3.9998-3.9998 3.9998 1.7908 3.9998 3.9998-1.7908 3.9998-3.9998 3.9998z",277 },278 ],279 },280 shopify: {281 w: 28,282 ink: [23.3, 30],283 view: "1.25 0 21.3 24",284 paths: [285 {286 fill: "#95bf47",287 d: "M11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z",288 },289 {290 fill: "#5e8e3e",291 d: "M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023z",292 },293 ],294 },295 meta: {296 w: 31,297 ink: [27.5, 18.5],298 view: "0 4.03 24 15.94",299 paths: [300 {301 fill: "#3088e5",302 d: "M6.915 4.03c-1.968 0-3.683 1.28-4.871 3.113C.704 9.208 0 11.883 0 14.449c0 .706.07 1.369.21 1.973a6.624 6.624 0 0 0 .265.86 5.297 5.297 0 0 0 .371.761c.696 1.159 1.818 1.927 3.593 1.927 1.497 0 2.633-.671 3.965-2.444.76-1.012 1.144-1.626 2.663-4.32l.756-1.339.186-.325c.061.1.121.196.183.3l2.152 3.595c.724 1.21 1.665 2.556 2.47 3.314 1.046.987 1.992 1.22 3.06 1.22 1.075 0 1.876-.355 2.455-.843a3.743 3.743 0 0 0 .81-.973c.542-.939.861-2.127.861-3.745 0-2.72-.681-5.357-2.084-7.45-1.282-1.912-2.957-2.93-4.716-2.93-1.047 0-2.088.467-3.053 1.308-.652.57-1.257 1.29-1.82 2.05-.69-.875-1.335-1.547-1.958-2.056-1.182-.966-2.315-1.303-3.454-1.303zm10.16 2.053c1.147 0 2.188.758 2.992 1.999 1.132 1.748 1.647 4.195 1.647 6.4 0 1.548-.368 2.9-1.839 2.9-.58 0-1.027-.23-1.664-1.004-.496-.601-1.343-1.878-2.832-4.358l-.617-1.028a44.908 44.908 0 0 0-1.255-1.98c.07-.109.141-.224.211-.327 1.12-1.667 2.118-2.602 3.358-2.602zm-10.201.553c1.265 0 2.058.791 2.675 1.446.307.327.737.871 1.234 1.579l-1.02 1.566c-.757 1.163-1.882 3.017-2.837 4.338-1.191 1.649-1.81 1.817-2.486 1.817-.524 0-1.038-.237-1.383-.794-.263-.426-.464-1.13-.464-2.046 0-2.221.63-4.535 1.66-6.088.454-.687.964-1.226 1.533-1.533a2.264 2.264 0 0 1 1.088-.285z",303 },304 ],305 },306 stripe: {307 w: 31.4,308 ink: [28.6, 28.6],309 paths: [310 { fill: "#625af4", d: DISC },311 {312 fill: "#ffffff",313 t: "translate(4.6 4.6) scale(0.62)",314 d: "M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z",315 },316 ],317 },318};319320/** `"Product Hunt"` → `producthunt`, so the copy and the lookup can differ. */321export const brandKey = (label: string) =>322 label.toLowerCase().replace(/[^a-z0-9]/g, "");









