From c8cb6bfa5dfc2673aced28c29b30ad594ab42d81 Mon Sep 17 00:00:00 2001 From: louispaulb Date: Mon, 6 Jul 2026 12:24:06 -0400 Subject: [PATCH] =?UTF-8?q?feat(events):=20courriel=20d'invitation=20plus?= =?UTF-8?q?=20festif=20+=20titre=20=C2=AB=20Targo=20f=C3=AAte=20ses=2020?= =?UTF-8?q?=20ans=20=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Titre corrigé partout (courriel, page RSVP, admin) : « Fête Targo 20 ans » → « Targo fête ses 20 ans » (FR) / « Targo turns 20! » (EN), tagline étoffée. - Courriel refait façon flyer : bandeau confetti + ballons 🎈 + pastille « 20 ANS », programme en cercles colorés (vert/bleu/violet/rose/orange), encart « places limitées », ligne « Merci de votre confiance au fil des années 💚 », pied targo.ca. Déployé hub 2026-07-06 (page RSVP live = « Targo fête ses 20 ans » ; test envoyé OK). La page RSVP et le nom en admin viennent du hub — pas de rebuild SPA requis (le repli cosmétique dans EventsPage suivra au prochain déploiement SPA). 21/21 tests unitaires. Co-Authored-By: Claude Opus 4.8 --- apps/ops/src/pages/EventsPage.vue | 2 +- services/targo-hub/lib/events.js | 50 +++++++++++++++++++------------ 2 files changed, 32 insertions(+), 20 deletions(-) diff --git a/apps/ops/src/pages/EventsPage.vue b/apps/ops/src/pages/EventsPage.vue index ef97c5c..09129ab 100644 --- a/apps/ops/src/pages/EventsPage.vue +++ b/apps/ops/src/pages/EventsPage.vue @@ -7,7 +7,7 @@
20ANS
-
{{ ev.name || 'Fête Targo 20 ans' }}
+
{{ ev.name || 'Targo fête ses 20 ans' }}
{{ ev.when || '1ᵉʳ août, de 10 h à 15 h' }}
diff --git a/services/targo-hub/lib/events.js b/services/targo-hub/lib/events.js index e9479d4..83678f3 100644 --- a/services/targo-hub/lib/events.js +++ b/services/targo-hub/lib/events.js @@ -38,8 +38,8 @@ const SEED = { active: true, date_iso: '2026-08-01', fr: { - name: 'Fête Targo 20 ans', - tagline: "Toute l'équipe de Targo est heureuse de vous inviter à notre fête de 20 ans !", + name: 'Targo fête ses 20 ans', + tagline: "Toute l'équipe de Targo est heureuse de vous inviter à notre grande fête d'anniversaire !", when: '1ᵉʳ août, de 10 h à 15 h', body: "Joignez-vous à nous pour une journée de plaisir, de rencontres et de célébration en compagnie des employés de Targo et de leurs familles.", program: [ @@ -78,8 +78,8 @@ const SEED = { foot: 'TARGO — votre fournisseur Internet local', }, en: { - name: "Targo's 20th Anniversary", - tagline: 'The whole Targo team is happy to invite you to our 20th anniversary party!', + name: 'Targo turns 20!', + tagline: 'The whole Targo team is happy to invite you to our big anniversary celebration!', when: 'August 1st, 10 a.m. to 3 p.m.', body: 'Join us for a day of fun, meeting people and celebrating alongside the Targo team and their families.', program: [ @@ -182,23 +182,35 @@ function inviteSubject (eventId, lang) { function inviteEmail (eventId, lang, name, rsvpUrl) { const e = getEvent(eventId); if (!e) return '' lang = normLang(lang); const t = e[lang] - const prog = t.program.map(p => `${p.icon} ${esc(p.label)}`).join('  ·  ') + const merci = lang === 'en' ? 'Thank you for your trust over the years! 💚' : 'Merci de votre confiance au fil des années ! 💚' + const CIRC = ['#e6f7ea', '#e3f2fd', '#ede7f6', '#fce4ec', '#fff3e0'] + const LBL = ['#1e8e3e', '#1976d2', '#7e57c2', '#d81b60', '#ef6c00'] + const prog = t.program.map((p, i) => + `` + + `
${p.icon}
` + + `
${esc(p.label)}
`).join('') return `` - + `` - + `
` - + `` - + `` - + `` - + `` - + `
 
TARGO

${esc(t.name)}

` - + `

${esc(t.tagline)}

${esc(t.greet(firstName(name)) || '')}

` + + `` + + `
` + + `` + + `` + + `` + + `` + + `` - + `` - + `` - + `` - + `` - + `` - + `` + + `` + + `` + + `` + + `` + + `` + + `` + + `` + `
 
` + + `
🎈🎉🎈
` + + `
🎉 20 ANS 🎉

` + + `TARGO

${esc(t.name)} 🎉

` + + `

${esc(t.tagline)}

${esc(t.greet(firstName(name)) || '')}

` + `

${esc(t.body)}

📅 ${esc(t.when)}

${prog}

⏳ ${esc(t.limited)}

${esc(t.submit)} →

${esc(t.closing)}

${esc(t.notes[0])}
${esc(t.notes[1])}

${esc(t.foot)}
📅 ${esc(t.when)}
${prog}

${esc(t.program_line)}

⏳ ${esc(t.limited)}
${esc(t.submit)} →

${esc(merci)}

` + + `

${esc(t.closing)}

${esc(t.notes[0])}
${esc(t.notes[1])}` + + `
🌐 targo.ca  ·  ${esc(t.foot)}
` }