Plus de couleur au choix ni de thèmes Nuit/Étoilé ; police Inter partout
- Apparence : auto, clair ou sombre seulement ; Nuit et Étoilé sont relus comme sombre - Accent ambre fixe, défini dans le CSS (plus foncé en clair pour rester lisible) ; la section « Couleur d'accent » des réglages et ses textes disparaissent - Une seule police, Inter (titres en gras), à la place de Gloock / Onest / Sometype Mono Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
34 files changed
+85
-679
No files matched your search
@@ -1,12 +1,12 @@
|
||||
import type { ReactNode } from 'react'
|
||||
import { cx } from '../lib/utils'
|
||||
|
||||
/** En-tête de page : titre en Gloock. La partie « accent » n'est colorée que pour le logo (wordmark). */
|
||||
/** En-tête de page : titre en gras. La partie « accent » n'est colorée que pour le logo (wordmark). */
|
||||
export function PageHeader({ title, accent, subtitle, action, wordmark }: { title: string; accent?: string; subtitle?: string; action?: ReactNode; wordmark?: boolean }) {
|
||||
return (
|
||||
<header className="flex items-end justify-between gap-3 pb-5 pt-7">
|
||||
<div className="min-w-0">
|
||||
<h1 className={cx('leading-[1.05]', wordmark ? 'text-[2.15rem]' : 'text-[2rem]')}>
|
||||
<h1 className={cx('leading-[1.05]', wordmark ? 'text-[2rem] tracking-[-0.02em]' : 'text-[1.9rem]')}>
|
||||
{title}
|
||||
{accent && <span className={wordmark ? 'text-accent' : undefined}>{accent}</span>}
|
||||
</h1>
|
||||
@@ -21,17 +21,17 @@ export function StatTile({ label, value, hint, className }: { label: string; val
|
||||
return (
|
||||
<div className={cx('card p-4', className)}>
|
||||
<div className="eyebrow">{label}</div>
|
||||
<div className="mt-2 font-display text-[1.85rem] leading-none tabular-nums">{value}</div>
|
||||
<div className="mt-2 font-bold text-[1.85rem] leading-none tabular-nums">{value}</div>
|
||||
{hint && <div className="mt-2 text-xs text-ink-3">{hint}</div>}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/** Titre de section : Gloock, sans capitales ni filet. */
|
||||
/** Titre de section : gras, sans capitales ni filet. */
|
||||
export function SectionTitle({ children, action }: { children: ReactNode; action?: ReactNode }) {
|
||||
return (
|
||||
<div className="mb-3.5 mt-10 flex items-baseline justify-between gap-3">
|
||||
<h2 className="text-[1.45rem] leading-tight text-ink">{children}</h2>
|
||||
<h2 className="text-[1.3rem] leading-tight text-ink">{children}</h2>
|
||||
{action}
|
||||
</div>
|
||||
)
|
||||
@@ -74,7 +74,7 @@ export function LinkArrow({ onClick, children }: { onClick: () => void; children
|
||||
export function EmptyState({ title, text, action }: { title: string; text?: string; action?: ReactNode }) {
|
||||
return (
|
||||
<div className="card mt-4 flex flex-col items-center px-6 py-12 text-center">
|
||||
<p className="font-display text-[1.5rem] leading-tight">{title}</p>
|
||||
<p className="font-bold text-[1.5rem] leading-tight">{title}</p>
|
||||
{text && <p className="mt-2 max-w-xs text-sm text-ink-2">{text}</p>}
|
||||
{action && <div className="mt-6">{action}</div>}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user