feat: favicon Tablée, carton de table en A5 ou A6, titre du carton sans le suffixe aléatoire du slug
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||||
<!-- Le token admin est dans l'URL (#) : ne jamais l'envoyer en Referer vers un autre site. -->
|
<!-- Le token admin est dans l'URL (#) : ne jamais l'envoyer en Referer vers un autre site. -->
|
||||||
<meta name="referrer" content="no-referrer">
|
<meta name="referrer" content="no-referrer">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<title>Espace organisateur · Tablée</title>
|
<title>Espace organisateur · Tablée</title>
|
||||||
<!--
|
<!--
|
||||||
Cette page est servie pour toute URL du type /admin/<slug> (le slug est lu
|
Cette page est servie pour toute URL du type /admin/<slug> (le slug est lu
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<title>Carton de table · Tablée</title>
|
<title>Carton de table · Tablée</title>
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
<link rel="preload" href="/vendor/fonts/cormorantgaramond-latin-variable.woff2" as="font" type="font/woff2" crossorigin>
|
<link rel="preload" href="/vendor/fonts/cormorantgaramond-latin-variable.woff2" as="font" type="font/woff2" crossorigin>
|
||||||
@@ -22,9 +23,10 @@
|
|||||||
l'esprit du carton dessiné sur la landing (src/landing/, .tablecard). C'est la pièce la plus
|
l'esprit du carton dessiné sur la landing (src/landing/, .tablecard). C'est la pièce la plus
|
||||||
vue par les invités : composition de faire-part, filet bordeaux, titre en Cormorant.
|
vue par les invités : composition de faire-part, filet bordeaux, titre en Cormorant.
|
||||||
|
|
||||||
Impression A5 portrait. Toutes les cotes du carton sont en --mm = 100cqi / 148 (1 mm en A5) :
|
Impression A5 ou A6 portrait (même proportion √2). Toutes les cotes du carton sont en
|
||||||
l'aperçu écran se réduit sans recalcul, et un format A6 ne demanderait que --card-w/--card-h
|
--mm = 100cqi / 148 (1 mm en A5) : l'A6 est l'A5 réduit à 71 %, seuls les petits textes sont
|
||||||
+ la taille @page (Chrome ignore les @page nommées : il faudra une ligne de JS). Fond non imprimé (papier
|
agrandis pour rester lisibles (~6,5 pt). La taille @page est réécrite en JS (#pageSize), Chrome
|
||||||
|
ignorant les @page nommées. Fond non imprimé (papier
|
||||||
blanc ou ivoire du client, pas d'encre gâchée) ; filets en bordures, qui s'impriment même
|
blanc ou ivoire du client, pas d'encre gâchée) ; filets en bordures, qui s'impriment même
|
||||||
sans « Graphiques d'arrière-plan ». QR en encre #1e1a16 sur le papier, sans cadre blanc.
|
sans « Graphiques d'arrière-plan ». QR en encre #1e1a16 sur le papier, sans cadre blanc.
|
||||||
|
|
||||||
@@ -239,8 +241,13 @@
|
|||||||
/* Carton dupliqué : masqué à l'écran, seul visible à l'impression. */
|
/* Carton dupliqué : masqué à l'écran, seul visible à l'impression. */
|
||||||
.card--for-print { display: none; }
|
.card--for-print { display: none; }
|
||||||
|
|
||||||
|
/* A6 (105 × 148 mm) : sans ça, mentions et URL tomberaient à ~5 pt. */
|
||||||
|
:root[data-format="a6"] { --card-w: 105mm; --card-h: 148mm; }
|
||||||
|
:root[data-format="a6"] .card__eyebrow { font-size: calc(3.4 * var(--mm)); }
|
||||||
|
:root[data-format="a6"] :is(.card__hint, .card__url) { font-size: calc(3.3 * var(--mm)); }
|
||||||
|
:root[data-format="a6"] .card__footnote { font-size: calc(3.2 * var(--mm)); max-width: 100%; }
|
||||||
|
|
||||||
/* ---------- Impression : un carton par page, sans le chrome d'admin ---------- */
|
/* ---------- Impression : un carton par page, sans le chrome d'admin ---------- */
|
||||||
@page { size: A5 portrait; margin: 0; }
|
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
body { background: none; }
|
body { background: none; }
|
||||||
@@ -257,6 +264,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<!-- Réécrit par applyFormat() selon le format choisi. -->
|
||||||
|
<style id="pageSize">@page { size: A5 portrait; margin: 0; }</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="workspace">
|
<div class="workspace">
|
||||||
@@ -278,6 +287,12 @@
|
|||||||
<label for="baseUrl">Domaine de base de l'app</label>
|
<label for="baseUrl">Domaine de base de l'app</label>
|
||||||
<input id="baseUrl" type="text" placeholder="https://photobooth.mondomaine.fr" autocomplete="off" />
|
<input id="baseUrl" type="text" placeholder="https://photobooth.mondomaine.fr" autocomplete="off" />
|
||||||
|
|
||||||
|
<label for="format">Format</label>
|
||||||
|
<select id="format">
|
||||||
|
<option value="a5" selected>A5 — 148 × 210 mm</option>
|
||||||
|
<option value="a6">A6 — 105 × 148 mm (petites tables)</option>
|
||||||
|
</select>
|
||||||
|
|
||||||
<label for="ecLevel">Correction d'erreur du QR</label>
|
<label for="ecLevel">Correction d'erreur du QR</label>
|
||||||
<select id="ecLevel">
|
<select id="ecLevel">
|
||||||
<option value="M">M — standard</option>
|
<option value="M">M — standard</option>
|
||||||
@@ -290,7 +305,7 @@
|
|||||||
<button type="button" id="printBtn" disabled>Imprimer / Enregistrer en PDF</button>
|
<button type="button" id="printBtn" disabled>Imprimer / Enregistrer en PDF</button>
|
||||||
|
|
||||||
<p class="hint hint--small">
|
<p class="hint hint--small">
|
||||||
Format A5 portrait, un carton par page. Dans la boîte de dialogue
|
Un carton par page, en portrait. Dans la boîte de dialogue
|
||||||
d'impression : désactiver en-têtes et pieds de page, marges
|
d'impression : désactiver en-têtes et pieds de page, marges
|
||||||
« Aucune », échelle 100 %. Sur papier ivoire ou bristol, c'est encore
|
« Aucune », échelle 100 %. Sur papier ivoire ou bristol, c'est encore
|
||||||
plus beau.
|
plus beau.
|
||||||
@@ -348,6 +363,8 @@
|
|||||||
const titleInput = document.getElementById('title');
|
const titleInput = document.getElementById('title');
|
||||||
const baseUrlInput = document.getElementById('baseUrl');
|
const baseUrlInput = document.getElementById('baseUrl');
|
||||||
const ecLevelSelect = document.getElementById('ecLevel');
|
const ecLevelSelect = document.getElementById('ecLevel');
|
||||||
|
const formatSelect = document.getElementById('format');
|
||||||
|
const pageSizeStyle = document.getElementById('pageSize');
|
||||||
const errorEl = document.getElementById('error');
|
const errorEl = document.getElementById('error');
|
||||||
const printBtn = document.getElementById('printBtn');
|
const printBtn = document.getElementById('printBtn');
|
||||||
|
|
||||||
@@ -375,9 +392,21 @@
|
|||||||
if (initialSlug) {
|
if (initialSlug) {
|
||||||
slugInput.value = initialSlug;
|
slugInput.value = initialSlug;
|
||||||
}
|
}
|
||||||
|
if (initialParams.get('format') === 'a6') {
|
||||||
|
formatSelect.value = 'a6';
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyFormat() {
|
||||||
|
const format = formatSelect.value;
|
||||||
|
document.documentElement.dataset.format = format;
|
||||||
|
// Cotes en mm : Chrome ne connaît pas le mot-clé A6 (il retombe sur Letter).
|
||||||
|
const size = format === 'a6' ? '105mm 148mm' : '148mm 210mm';
|
||||||
|
pageSizeStyle.textContent = `@page { size: ${size}; margin: 0; }`;
|
||||||
|
}
|
||||||
|
|
||||||
function humanizeSlug(slug) {
|
function humanizeSlug(slug) {
|
||||||
return slug
|
return slug
|
||||||
|
.replace(/-[0-9a-f]{6}$/, '') // suffixe aléatoire du slug (migration 20261015130000)
|
||||||
.replace(/[-_]+/g, ' ')
|
.replace(/[-_]+/g, ' ')
|
||||||
.trim()
|
.trim()
|
||||||
.replace(/\b\w/g, (c) => c.toUpperCase());
|
.replace(/\b\w/g, (c) => c.toUpperCase());
|
||||||
@@ -431,11 +460,13 @@
|
|||||||
titleInput.addEventListener('input', refresh);
|
titleInput.addEventListener('input', refresh);
|
||||||
baseUrlInput.addEventListener('input', refresh);
|
baseUrlInput.addEventListener('input', refresh);
|
||||||
ecLevelSelect.addEventListener('change', refresh);
|
ecLevelSelect.addEventListener('change', refresh);
|
||||||
|
formatSelect.addEventListener('change', applyFormat);
|
||||||
|
|
||||||
printBtn.addEventListener('click', () => {
|
printBtn.addEventListener('click', () => {
|
||||||
window.print();
|
window.print();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
applyFormat();
|
||||||
refresh();
|
refresh();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<title>QR code · Tablée</title>
|
<title>QR code · Tablée</title>
|
||||||
<meta name="robots" content="noindex, nofollow" />
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
<meta name="theme-color" content="#f5f0e6" />
|
<meta name="theme-color" content="#f5f0e6" />
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<title>Ajouter une photo · Tablée</title>
|
<title>Ajouter une photo · Tablée</title>
|
||||||
<!--
|
<!--
|
||||||
Cette page est servie pour toute URL du type /e/<slug> (le slug est lu
|
Cette page est servie pour toute URL du type /e/<slug> (le slug est lu
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="6" fill="#f5f0e6"/><rect x="5" y="5" width="54" height="54" fill="none" stroke="#7a2b22" stroke-width="2.5"/><text x="32" y="47" text-anchor="middle" font-family="Cormorant Garamond,Georgia,'Times New Roman',serif" font-size="42" fill="#7a2b22">T</text></svg>
|
||||||
|
After Width: | Height: | Size: 353 B |
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<title>La fête · Tablée</title>
|
<title>La fête · Tablée</title>
|
||||||
<!--
|
<!--
|
||||||
Écran "galerie invité" — DA « Tablée — Faire-part »
|
Écran "galerie invité" — DA « Tablée — Faire-part »
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<title>Galerie photo de mariage par QR code — toutes les photos de vos invités</title>
|
<title>Galerie photo de mariage par QR code — toutes les photos de vos invités</title>
|
||||||
<meta name="description" content="Un carton QR sur les tables : vos invités déposent leurs photos depuis leur téléphone, sans appli ni compte. Vous récupérez tout en un ZIP. Effacement automatique 7 jours après. Chartres, Eure-et-Loir, Île-de-France.">
|
<meta name="description" content="Un carton QR sur les tables : vos invités déposent leurs photos depuis leur téléphone, sans appli ni compte. Vous récupérez tout en un ZIP. Effacement automatique 7 jours après. Chartres, Eure-et-Loir, Île-de-France.">
|
||||||
<meta name="theme-color" content="#f5f0e6">
|
<meta name="theme-color" content="#f5f0e6">
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<title>Conditions générales de vente</title>
|
<title>Conditions générales de vente</title>
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
<meta name="theme-color" content="#f5f0e6">
|
<meta name="theme-color" content="#f5f0e6">
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<title>Politique de confidentialité</title>
|
<title>Politique de confidentialité</title>
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
<meta name="theme-color" content="#f5f0e6">
|
<meta name="theme-color" content="#f5f0e6">
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
<title>Mentions légales</title>
|
<title>Mentions légales</title>
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
<meta name="theme-color" content="#f5f0e6">
|
<meta name="theme-color" content="#f5f0e6">
|
||||||
|
|||||||
Reference in New Issue
Block a user