Harmonise le générateur QR avec la palette/marque du reste du produit

Outil interne, pas vu par les clients, mais cohérence visuelle demandée
par Kévin — mêmes tokens couleur/rayon que src/e et src/admin/gallery.
This commit is contained in:
2026-09-16 15:02:08 +02:00
parent a1e24d1aa8
commit 74718e42c9
+91 -32
View File
@@ -6,53 +6,94 @@
<title>Générateur de QR code — photobooth-qr (admin)</title> <title>Générateur de QR code — photobooth-qr (admin)</title>
<meta name="robots" content="noindex, nofollow" /> <meta name="robots" content="noindex, nofollow" />
<style> <style>
/* Mêmes tokens que src/e/style.css et src/admin/gallery/style.css —
cohérence visuelle même sur cet outil interne que les clients ne
voient pas (cf. retour Kévin 2026-09-16). */
:root { :root {
color-scheme: light; color-scheme: light;
--border: #d8d8d8; --color-bg: #faf8f5;
--text: #1a1a1a; --color-surface: #ffffff;
--muted: #666; --color-surface-muted: #f2ede4;
--accent: #1a1a1a; --color-text: #262420;
--color-muted: #6f6a62;
--color-border: #e3ddd2;
--color-accent: #8a5a44;
--color-accent-hover: #6e4735;
--color-accent-soft: #f1e3d8;
--color-accent-contrast: #ffffff;
--color-error-text: #7a1f14;
--radius-sm: 8px;
--radius: 14px;
--shadow-sm: 0 1px 2px rgba(38, 36, 32, 0.06);
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif;
} }
* { box-sizing: border-box; } * { box-sizing: border-box; }
body { body {
margin: 0; margin: 0;
padding: 1.25rem; padding: 1.5rem 1.1rem 3rem;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-family: var(--font-sans);
color: var(--text); color: var(--color-text);
background: #fafafa; background: var(--color-bg);
max-width: 480px; max-width: 480px;
margin-inline: auto; margin-inline: auto;
line-height: 1.45;
}
.brand {
display: flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
margin-bottom: 1rem;
color: var(--color-muted);
}
.brand svg {
width: 16px;
height: 16px;
flex-shrink: 0;
color: var(--color-accent);
}
.brand span {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.13em;
text-transform: uppercase;
} }
h1 { h1 {
font-size: 1.1rem; font-size: 1.2rem;
margin: 0 0 0.25rem; font-weight: 700;
letter-spacing: -0.01em;
margin: 0 0 0.35rem;
} }
p.hint { p.hint {
color: var(--muted); color: var(--color-muted);
font-size: 0.85rem; font-size: 0.85rem;
margin-top: 0; margin-top: 0;
margin-bottom: 1.25rem; margin-bottom: 1.25rem;
} }
label { label {
display: block; display: block;
font-weight: 600;
font-size: 0.85rem; font-size: 0.85rem;
margin-bottom: 0.25rem; margin-bottom: 0.35rem;
margin-top: 1rem; margin-top: 1.1rem;
} }
input, select { input, select {
width: 100%; width: 100%;
padding: 0.6rem; padding: 0.7rem 0.75rem;
font: inherit;
font-size: 1rem; font-size: 1rem;
border: 1px solid var(--border); border: 1px solid var(--color-border);
border-radius: 6px; border-radius: var(--radius-sm);
background: #fff; background: var(--color-surface);
color: inherit;
} }
.preview { .preview {
margin-top: 1.5rem; margin-top: 1.5rem;
padding: 1rem; padding: 1.1rem;
border: 1px solid var(--border); border: 1px solid var(--color-border);
border-radius: 8px; border-radius: var(--radius);
background: #fff; background: var(--color-surface);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@@ -65,35 +106,46 @@
} }
.preview .url { .preview .url {
font-size: 0.8rem; font-size: 0.8rem;
color: var(--muted); color: var(--color-muted);
word-break: break-all; word-break: break-all;
text-align: center; text-align: center;
} }
.actions { .actions {
display: flex; display: flex;
gap: 0.5rem; gap: 0.6rem;
margin-top: 1rem; margin-top: 1.1rem;
} }
button { button {
flex: 1; flex: 1;
padding: 0.7rem; font: inherit;
font-weight: 600;
padding: 0.85rem 0.7rem;
min-height: 48px;
font-size: 0.95rem; font-size: 0.95rem;
border: 1px solid var(--accent); border: 1px solid var(--color-accent);
border-radius: 6px; border-radius: var(--radius-sm);
background: var(--accent); background: var(--color-accent);
color: #fff; color: var(--color-accent-contrast);
box-shadow: var(--shadow-sm);
cursor: pointer; cursor: pointer;
} }
button:active:not(:disabled) {
background: var(--color-accent-hover);
}
button.secondary { button.secondary {
background: #fff; background: var(--color-surface);
color: var(--accent); color: var(--color-accent);
box-shadow: none;
}
button.secondary:active:not(:disabled) {
background: var(--color-accent-soft);
} }
button:disabled { button:disabled {
opacity: 0.5; opacity: 0.5;
cursor: not-allowed; cursor: not-allowed;
} }
.error { .error {
color: #b00020; color: var(--color-error-text);
font-size: 0.85rem; font-size: 0.85rem;
margin-top: 0.5rem; margin-top: 0.5rem;
min-height: 1.2em; min-height: 1.2em;
@@ -101,6 +153,13 @@
</style> </style>
</head> </head>
<body> <body>
<p class="brand" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" focusable="false">
<path d="M4 8h3l1.5-2h7L17 8h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z"/>
<circle cx="12" cy="13" r="3.5"/>
</svg>
<span>Photobooth</span>
</p>
<h1>Générateur de QR code — événement</h1> <h1>Générateur de QR code — événement</h1>
<p class="hint"> <p class="hint">
Outil admin autonome : saisir le slug d'un événement et le domaine de Outil admin autonome : saisir le slug d'un événement et le domaine de