UiForge
Prompt

Compteurs odomètre – les chiffres de Relay Grid

Composants UIDark modeMonospaceRetro terminalMicro-interactionsScroll revealStaggerReactTailwindFramer Motion
Prêt à l'emploi

Copie le prompt dans le presse-papier, sans quitter la page.

❯ Prompt Claude
1. CONTEXT & GOAL
Build the key-figures stats section for Relay Grid, an edge network and CDN for realtime applications (multiplayer games, trading dashboards, collaborative tools). The audience is backend and platform engineers who instinctively trust numbers formatted like their own monitoring stack. Signature idea: the stats behave like a network operations control room — amber monospace odometer counters whose digits roll vertically into place on scroll, a live status line with a blinking green dot and UTC timestamp, and one counter ('requests served today') that keeps incrementing in real time after the entrance animation, proving the network is alive right now. Deliver as a demo page with a heading section above and a paragraph section below so the scroll trigger can be tested.

2. ART DIRECTION
Control-room brutalism: asphalt-black canvas, amber phosphor numerals, thin hairline frames like rack-mounted equipment bezels, small uppercase status labels. References: air-traffic consoles, Prometheus dashboards, split-flap airport boards translated to digital. No gradients, no glow halos except the tiny status LED; the drama comes from the rolling digits and the density of technical annotation (units, deltas, timestamps).

3. COLOR SYSTEM
Background #0B0A08. Panel surface #12100C, inner surface #17140F. Hairline borders #2A251C. Primary numerals amber #FFB000, dimmed amber #B87F0A. Text primary #EDE6D8, secondary #9C927C, muted #635B49. Status green #3DDC84 with LED glow rgba(61,220,132,0.4). Delta positive #3DDC84, delta negative #FF5C49. Sparkline stroke #FFB000, fill rgba(255,176,0,0.08). Loading dash #4A4234. Focus ring #FFB000 2px. Hover on stat cards: border brightens to #4A4234 and surface to #17140F. Badge REC: #FF5C49 dot on #2A251C border.

4. TYPOGRAPHY
All numerals in 'IBM Plex Mono' (Google Fonts) with tabular figures: hero counters 64px/1 weight 500 desktop, 40px mobile; secondary stats 28px/32px weight 500. Units and suffixes 16px/20px weight 400 color #9C927C. Labels 'IBM Plex Mono' 12px/16px uppercase letter-spacing 0.14em color #635B49. Supporting copy 'IBM Plex Sans' 16px/25px. Section heading 'IBM Plex Sans' 34px/40px weight 600 letter-spacing -0.01em. Status line 13px/18px mono.

5. LAYOUT & GRID
Container max 1200px, padding 24px mobile / 48px desktop. Section header left-aligned, then the status line full-width (1px rule above and below), then a 4-column grid of hero counters with 1px hairline dividers between columns (not gaps — shared borders like equipment panels), then a 3-column secondary grid 24px below. Breakpoints: 4 columns >=1024px, 2x2 grid at 640-1023px with horizontal rules, single column below 640px with each stat as a 88px-tall row (label left, numeral right). Vertical padding of the section: 112px desktop, 64px mobile.

6. SECTIONS & COMPONENTS
Heading: 'The network, measured.' with subline 'Live figures from 214 points of presence. Updated every second, not every quarter.' Status line: green LED dot + 'ALL SYSTEMS NOMINAL — 2026-07-12 14:32:07 UTC — REFRESH 1S'. Hero counters: 8.4 ms ('P99 GLOBAL LATENCY', sparkline of last 24h, delta '-0.6 ms vs last week' in green); 2,847,391,204 ('REQUESTS SERVED TODAY', live-incrementing by a randomized 300-900 per second, REC badge); 214 ('POINTS OF PRESENCE', delta '+9 this quarter'); 99.997% ('UPTIME, TRAILING 90 DAYS'). Secondary stats: 41 Tbps peak capacity, 12,400 customer deployments, 38 countries. Each stat card states: default, hover (border brighten + tooltip with methodology note like 'Measured by 3rd-party probes in 92 cities'), focus-visible ring when the tooltip trigger is keyboard-focused, loading (numerals replaced by rolling dashes '– – –' blinking at 800ms), and an error/fallback state showing the last cached figure with 'CACHED 14:31 UTC' in muted amber. Tooltips close on Escape.

7. MOTION
Odometer roll on viewport enter (threshold 0.3, once): each digit column is a vertical strip of 0-9 translating to its target, duration 900ms cubic-bezier(0.16,1,0.3,1), stagger 60ms per digit right to left so units settle first; commas and decimal points fade in at the end over 150ms. Live counter: after settle, increments tick every 1000ms — only changed digits roll, 250ms each. LED blink: opacity 1 to 0.3, 1200ms ease-in-out infinite. Cards stagger in translateY(12px) + opacity, 400ms, 80ms apart. Sparkline draws left to right via stroke-dashoffset 700ms cubic-bezier(0.65,0,0.35,1) with a brighter 2px sweep head. Delta badges pop scale 0.8 to 1 spring stiffness 300 damping 20, 200ms after their counter settles. prefers-reduced-motion: numerals appear at final value instantly, live counter updates without rolling (plain text swap once per second, or paused entirely with a 'live updates paused' note), LED static, sparklines pre-drawn.

8. TECH & QUALITY
React 19, Tailwind CSS v4 tokens, Framer Motion for reveals; the odometer implemented as a reusable OdometerDigit component using transform translateY on a digit strip (no canvas). Files: components/stats/StatsSection.tsx, Odometer.tsx, StatCard.tsx, StatusLine.tsx, Sparkline.tsx, demo app/demo/stats/page.tsx. Accessibility: each counter renders a static accessible value via aria-label on the container (e.g. 'P99 global latency: 8.4 milliseconds') with the animated strips aria-hidden; the live counter uses aria-live=off to avoid flooding screen readers, with a summary sentence updated every 60 seconds in a polite region; contrast verified (#FFB000 on #0B0A08 = 9.4:1, #9C927C = 6.2:1); tooltips follow WAI-ARIA tooltip pattern; all data also present in a visually-hidden table for AT users; reduced-motion path fully implemented.
Objectif

Relay Grid est un réseau edge/CDN pour applications temps réel. Cette section stats affiche les chiffres clés du réseau avec des compteurs animés façon odomètre de salle de contrôle. Idée signature : les compteurs se comportent comme un tableau de bord d'infrastructure — chiffres monospace ambrés qui roulent verticalement chiffre par chiffre, ligne de statut « live » clignotante, et un compteur qui continue de s'incrémenter en direct après l'animation d'entrée.

Style

Terminal monospace ambré, fond bitume presque noir, esthétique salle de contrôle réseau, hairlines et badges de statut.

Composants
Rangée de 4 compteurs odomètre principauxCompteur live auto-incrémenté avec badge RECSparkline de latence sous chaque chiffreLigne de statut réseau avec horodatageLégendes d'unités (ms, req/s, PoPs, uptime)Grille secondaire de 3 stats compactesÉtat de chargement en tirets clignotantsPage de démo sombre avec sections avant/après
Animations
Roulement vertical des chiffres façon odomètreIncrémentation continue du compteur liveClignotement du point de statut vertStagger d'apparition des cartes statsBalayage lumineux des sparklines au reveal
Stack technique
React 19Tailwind CSS v4Framer Motion
Scores
9/10
Qualité
8/10
Originalité
Notes de revue

Force : les compteurs façon odomètre de salle de contrôle, avec un compteur qui continue de s'incrémenter en direct après l'animation d'entrée, donnent une vraie sensation d'infrastructure vivante. Faiblesse : la section de chiffres clés reste un format assez attendu pour un produit d'infrastructure. Pas de changement nécessaire.

À voir aussi

Prompts liés

Composants UI

Grille bento Atlas — fonctionnalites produit en mosaique

Futuriste sombre bleu profond, lignes de circuit lumineuses, inspire des schemas d'architecture

Q 9/10O 9/10FuturisticDark modeLinear
Composants UI

Navbar Meridian — verre, solide et minimale

Dark glow premium inspire de Linear, aurore violette diffuse derriere un verre depoli epais

Q 9/10O 8/10LinearGlassmorphismDark mode
Composants UI

Pile de toasts néon – le système d'alertes de Wavelength

Studio de nuit, noir bleuté profond, liserés néon par sémantique, esthétique console de mixage.

Q 8/10O 8/10Dark modeFuturisticLinear