feat(ui): unify page header — tagline left, lang switcher far right

Make the header consistent across Home, New report, and Editor:
- Tagline (cfg.tagline) now sits next to the brand on the left for
  every page, instead of right-aligned on Home only.
- LanguageSwitcher moved to the far right of the action group on
  every page (previously sandwiched between brand and report info on
  Editor).
- Dropped the redundant "← Accueil" ghost button on New report and
  Editor headers; the brand itself is already a link to "/", so two
  controls were doing the same job. Aria label preserved on the
  brand link.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bastien ChanotandClaude Opus 4.7 committed 2026-05-21 07:08:56 +02:00
1 parent caac14904d
commit 06a22aec11
3 files changed
+13 -19

No files matched your search

+3 -3
View File
@@ -54,11 +54,11 @@ export default function HomeRoute() {
return (
<main className="min-h-screen flex flex-col">
<header className="px-6 py-4 border-b border-[var(--color-border)] flex items-center justify-between">
<Brand size="lg" />
<div className="flex items-center gap-4">
<LanguageSwitcher />
<div className="flex items-baseline gap-3">
<Brand size="lg" />
<span className="text-sm text-[var(--color-ink-muted)]">{cfg.tagline}</span>
</div>
<LanguageSwitcher />
</header>
<section className="flex-1 grid place-items-center px-6">
<div className="grid gap-4 md:grid-cols-2 max-w-3xl w-full">
+4 -4
View File
@@ -10,11 +10,13 @@ import Label from '@/components/ui/Label'
import { todayIso } from '@/lib/dates'
import { readCachedPractitioner, writeCachedPractitioner } from '@/state/practitionerCache'
import { useReportStore } from '@/state/reportStore'
import { useConfig } from '@/app/providers/ConfigProvider'
import { useT } from '@/i18n/useT'
export default function NewReportRoute() {
const navigate = useNavigate()
const initReport = useReportStore((s) => s.initReport)
const cfg = useConfig()
const t = useT()
const [practitioner, setPractitioner] = useState({ name: '' })
@@ -47,10 +49,7 @@ export default function NewReportRoute() {
return (
<main className="min-h-screen">
<header className="px-6 py-4 border-b border-[var(--color-border)] flex items-center justify-between">
<div className="flex items-center gap-3">
<Button variant="ghost" size="sm" onClick={() => navigate('/')} aria-label={t('common.back_to_home')}>
← {t('common.home')}
</Button>
<div className="flex items-baseline gap-3">
<Link
to="/"
aria-label={t('common.back_to_home')}
@@ -58,6 +57,7 @@ export default function NewReportRoute() {
>
<Brand />
</Link>
<span className="text-sm text-[var(--color-ink-muted)]">{cfg.tagline}</span>
</div>
<LanguageSwitcher />
</header>