From f4b3339fe4113bcdc5ae160553c6601fa32990c6 Mon Sep 17 00:00:00 2001 From: ordinarthur Date: Wed, 8 Apr 2026 13:36:16 +0200 Subject: [PATCH] feat(ui): redesign /recipes/new from scratch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The page had 2 stacked headers (its own + MainLayout), was capped at max-w-md which wasted desktop space, and had cheap-looking dashed amber borders. Full rewrite with 4 clean states. State machine: idle -> recording -> review -> processing IDLE state: - Brand pill 'Nouvelle recette' with Wand2 icon - Big H1 with 'ton frigo' in warm-gradient - Subtitle explaining the chef Antoine - User preferences rendered as chips (vegan, allergies, max time, cuisine) loaded from /users/profile. Each chip is a Badge with backdrop-blur, + a 'Modifier' chip linking to /profile. Chips only appear if the user actually set preferences. - Giant centered mic button (112-128px) with: - 3 concentric pulsing rings (border-2, staggered 0.6s delays) - Gradient from-orange-500 to-amber-500 - shadow-2xl + orange glow - ring-4 ring-white for separation from background - Scale 1.04/0.94 on hover/tap - Keyboard shortcut hint (Space) shown on md+ - Rotating tip card below with Lightbulb icon (4 tips cycling every 4.5s) RECORDING state: - Pulsing red dot + 'ENREGISTREMENT' label - 7xl monospaced tabular timer - Synthetic 20-bar waveform animating (each bar randomized height/duration for organic feel) - Large red stop button (80px) with Square icon - Keyboard shortcut hint REVIEW state: - Spring-animated green checkmark badge - H2 'Tout est bon ?' + subtitle - Audio player card with: - Circular play/pause button (brand gradient) - 32-bar static waveform (deterministic sin/cos pattern) - Trash button - Hidden