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>
<meta name="robots" content="noindex, nofollow" />
<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 {
color-scheme: light;
--border: #d8d8d8;
--text: #1a1a1a;
--muted: #666;
--accent: #1a1a1a;
--color-bg: #faf8f5;
--color-surface: #ffffff;
--color-surface-muted: #f2ede4;
--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; }
body {
margin: 0;
padding: 1.25rem;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
color: var(--text);
background: #fafafa;
padding: 1.5rem 1.1rem 3rem;
font-family: var(--font-sans);
color: var(--color-text);
background: var(--color-bg);
max-width: 480px;
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 {
font-size: 1.1rem;
margin: 0 0 0.25rem;
font-size: 1.2rem;
font-weight: 700;
letter-spacing: -0.01em;
margin: 0 0 0.35rem;
}
p.hint {
color: var(--muted);
color: var(--color-muted);
font-size: 0.85rem;
margin-top: 0;
margin-bottom: 1.25rem;
}
label {
display: block;
font-weight: 600;
font-size: 0.85rem;
margin-bottom: 0.25rem;
margin-top: 1rem;
margin-bottom: 0.35rem;
margin-top: 1.1rem;
}
input, select {
width: 100%;
padding: 0.6rem;
padding: 0.7rem 0.75rem;
font: inherit;
font-size: 1rem;
border: 1px solid var(--border);
border-radius: 6px;
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
background: var(--color-surface);
color: inherit;
}
.preview {
margin-top: 1.5rem;
padding: 1rem;
border: 1px solid var(--border);
border-radius: 8px;
background: #fff;
padding: 1.1rem;
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-surface);
display: flex;
flex-direction: column;
align-items: center;
@@ -65,35 +106,46 @@
}
.preview .url {
font-size: 0.8rem;
color: var(--muted);
color: var(--color-muted);
word-break: break-all;
text-align: center;
}
.actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
gap: 0.6rem;
margin-top: 1.1rem;
}
button {
flex: 1;
padding: 0.7rem;
font: inherit;
font-weight: 600;
padding: 0.85rem 0.7rem;
min-height: 48px;
font-size: 0.95rem;
border: 1px solid var(--accent);
border-radius: 6px;
background: var(--accent);
color: #fff;
border: 1px solid var(--color-accent);
border-radius: var(--radius-sm);
background: var(--color-accent);
color: var(--color-accent-contrast);
box-shadow: var(--shadow-sm);
cursor: pointer;
}
button:active:not(:disabled) {
background: var(--color-accent-hover);
}
button.secondary {
background: #fff;
color: var(--accent);
background: var(--color-surface);
color: var(--color-accent);
box-shadow: none;
}
button.secondary:active:not(:disabled) {
background: var(--color-accent-soft);
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.error {
color: #b00020;
color: var(--color-error-text);
font-size: 0.85rem;
margin-top: 0.5rem;
min-height: 1.2em;
@@ -101,6 +153,13 @@
</style>
</head>
<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>
<p class="hint">
Outil admin autonome : saisir le slug d'un événement et le domaine de