From 31d60983b259e966086a1fc6f2ce0f77a3117500 Mon Sep 17 00:00:00 2001 From: Gilles Soulier Date: Mon, 25 May 2026 13:53:27 +0200 Subject: [PATCH] =?UTF-8?q?feat(ui):=20header=20global=20visible=20sur=20t?= =?UTF-8?q?outes=20les=20pages=20=E2=80=94=20identit=C3=A9=20app=20+=20com?= =?UTF-8?q?pte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TopBar enrichi : icône maison + nom + version (gauche), thème + compte (droite) - Bouton compte désactivé (placeholder pour future auth multi-utilisateurs) - Suppression de la carte HomeHub redondante sur la page d'accueil Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/components/layout/Layout.tsx | 43 ++++++++++++++++++----- frontend/src/pages/HomePage.tsx | 13 ------- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/frontend/src/components/layout/Layout.tsx b/frontend/src/components/layout/Layout.tsx index 4b7ce00..0e695ba 100644 --- a/frontend/src/components/layout/Layout.tsx +++ b/frontend/src/components/layout/Layout.tsx @@ -1,3 +1,4 @@ +import type React from 'react' import { Outlet } from 'react-router-dom' import BottomNav from './BottomNav' import SideNav from './SideNav' @@ -19,27 +20,53 @@ function TopBar() { setTheme(THEME_CYCLE[(idx + 1) % THEME_CYCLE.length]) } + const iconBtn: React.CSSProperties = { + background: 'var(--bg-4)', border: 'none', borderRadius: 8, + width: 36, height: 36, cursor: 'pointer', + color: 'var(--ink-2)', fontSize: 16, + display: 'flex', alignItems: 'center', justifyContent: 'center', + flexShrink: 0, + } + return (
+ {/* Identité app — gauche */} + + HomeHub + v{__APP_VERSION__} + +
+ + {/* Boutons — droite */} + +
) } diff --git a/frontend/src/pages/HomePage.tsx b/frontend/src/pages/HomePage.tsx index 465409a..996c821 100644 --- a/frontend/src/pages/HomePage.tsx +++ b/frontend/src/pages/HomePage.tsx @@ -3,19 +3,6 @@ import { Link } from 'react-router-dom' export default function HomePage() { return (
-
-
-

- HomeHub -

- - v{__APP_VERSION__} - -
-

- Application d'organisation personnelle -

-
{[ { label: 'Todos', icon: 'list-check', path: '/todos' },