From 03a3fb7411e80885884ab1d250214d55bfa906dc Mon Sep 17 00:00:00 2001 From: Antigravity Date: Sat, 4 Jul 2026 21:49:24 +0000 Subject: [PATCH] fix(ux-audit): landing next/image + confirm AlertDialog + search-modal i18n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Landing page: - → next/image avec width/height (CLS fix) - padding nav responsive px-4 sm:px-8 note-card: - confirm() natif → AlertDialog (non-bloquant, stylable) - showLeaveDialog state + dialog component search-modal (20 chaînes FR → i18n): - useLanguage ajouté - 20 strings FR hardcoded → t('searchModal.*') - Clés ajoutées dans en.json + fr.json --- memento-note/components/landing-page.tsx | 5 +-- memento-note/components/note-card.tsx | 34 +++++++++++++++----- memento-note/components/search-modal.tsx | 40 +++++++++++++----------- memento-note/locales/en.json | 22 +++++++++++++ memento-note/locales/fr.json | 22 +++++++++++++ 5 files changed, 94 insertions(+), 29 deletions(-) diff --git a/memento-note/components/landing-page.tsx b/memento-note/components/landing-page.tsx index 6159772..6bc19d6 100644 --- a/memento-note/components/landing-page.tsx +++ b/memento-note/components/landing-page.tsx @@ -7,6 +7,7 @@ import { Box } from 'lucide-react' import { useRouter } from 'next/navigation' +import Image from 'next/image' import { useLanguage } from '@/lib/i18n' import { useState } from 'react' @@ -44,7 +45,7 @@ export function LandingPage() { return (
{/* Navigation */} -