'use strict' /** * gift-email-native-reminder-fr — proof-of-concept reminder template built * entirely from Unlayer NATIVE blocks (text / image / button) wherever * possible, with strategic html blocks for the chips and the brand-logo * strip (too custom for native). * * Operator can edit each text/button/image block individually in the * Unlayer canvas (rich panel on the right with font, color, padding, * alignment controls). The 4 html blocks (Option 1 chip, brand-logo card, * Option 2 chip, dark footer band) still need raw HTML edits. */ module.exports = { preheader: "Comme toi, on aime les connexions stables et les relations durables.", ariaLabel: "Une offre exclusive de TARGO", // rows() receives the block factories from build-native-template.js rows: ({ textBlock, imageBlock, buttonBlock, htmlBlock, row }) => [ // ── 1 · Optional "View in browser" line (collapses if view_url empty) ── row([ htmlBlock({ html: `{{#view_url}}
Affichage incorrect ? Voir dans le navigateur
{{/view_url}}`, padding: '0', }), ], { padding: '8px 0 0' }), // ── 2 · Header logo (white rounded card top) ───────────────────────── row([ imageBlock({ src: 'https://xqy3m.mjt.lu/img2/xqy3m/eed4d18c-8065-4c5f-b47c-58af63171cd0/content', alt: 'TARGO', width: 140, padding: '28px 36px 22px', textAlign: 'center', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '12px 12px 0 0' }), // ── 3 · Greeting (text block — fully editable) ─────────────────────── row([ textBlock({ html: 'Petit rappel pour {{firstname}},', padding: '20px 36px 8px', fontSize: '16px', color: '#374151', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0' }), // ── 4 · Urgency line (text block, bold dark green) ─────────────────── row([ textBlock({ html: '🎁 Ton cadeau de {{amount}} reste disponible jusqu\'au {{expires_at_date}}.', padding: '4px 36px 14px', fontSize: '17px', fontWeight: 600, color: '#1B2E24', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0' }), // ── 5 · Body paragraph (text block, justify) ───────────────────────── row([ textBlock({ html: 'On voulait juste s\'assurer que tu ne l\'as pas manqué. La carte-cadeau qu\'on t\'a envoyée pour te remercier peut s\'utiliser chez des centaines de marques canadiennes, en quelques clics.

Si tu préfères ne pas l\'utiliser, aucun souci, pas besoin de répondre à ce courriel.', padding: '0 36px 18px', fontSize: '16px', color: '#374151', textAlign: 'justify', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0' }), // ── 6 · Option 1 chip (html block — too custom for native text) ────── row([ htmlBlock({ html: '
✅ Option 1
', padding: '8px 36px 4px', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0' }), // ── 7 · Compact info card with brand logos (html block) ────────────── row([ htmlBlock({ html: `
🎁 {{amount}} chez des centaines de marques

Tim Hortons Walmart Home Depot IGA Home Hardware et plus
⚡ Disponible instantanément sur Giftbit en cliquant sur ton montant
🤝 Condition : Maintenir l'abonnement {{commitment_months}} mois ou +
`, padding: '0 36px 22px', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0' }), // ── 8 · Big green CTA button (NATIVE button block!) ────────────────── row([ buttonBlock({ text: '🎁   {{amount}}', href: '{{gift_url}}', padding: '8px 36px', buttonPadding: '30px 24px', bgColor: '#00C853', color: '#FFFFFF', borderRadius: '12px', fontSize: '32px', fontWeight: 700, }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0' }), // ── 9 · Expiry badge (text block) ──────────────────────────────────── row([ textBlock({ html: '⏰ Cadeau valide jusqu\'au {{expires_at_date}}', padding: '0 36px 4px', fontSize: '13px', color: '#64748B', textAlign: 'center', lineHeight: '140%', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0' }), // ── 10 · Prorata disclaimer (text block) ───────────────────────────── row([ textBlock({ html: '🪂 Annulation avant {{commitment_months}} mois : seulement à rembourser au prorata des mois restants.', padding: '10px 36px 22px', fontSize: '14px', color: '#6b7280', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0' }), // ── 11 · Option 2 chip + text ──────────────────────────────────────── row([ htmlBlock({ html: '
⏭️ Option 2
', padding: '8px 36px 4px', }), textBlock({ html: 'Ne rien faire. Aucun changement à ton abonnement actuel.', padding: '0 36px 22px', fontSize: '15px', color: '#4b5563', lineHeight: '155%', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0' }), // ── 12 · Signature (text block) ────────────────────────────────────── row([ textBlock({ html: '🤝 Merci de faire rouler l\'économie de notre région avec nous !
L\'équipe TARGO', padding: '18px 36px 28px', fontSize: '15px', color: '#1B2E24', }), ], { backgroundColor: '#ffffff', border: '1px solid #e5e7eb', borderRadius: '0 0 12px 12px' }), // ── 13 · Contact info (text block, outside the card) ───────────────── row([ textBlock({ html: 'Tu reçois ce courriel parce que tu es client(e) TARGO à {{description}}.
Une question ? N\'hésite pas à nous écrire à support@targo.ca ou nous appeler au 514-448-0773.', padding: '18px 36px 8px', fontSize: '12px', color: '#64748B', textAlign: 'center', lineHeight: '155%', }), ], {}), // ── 14 · Dark footer band (image + text on #1C1E26) ────────────────── row([ imageBlock({ src: 'https://xqy3m.mjt.lu/img2/xqy3m/eed4d18c-8065-4c5f-b47c-58af63171cd0/content', alt: 'TARGO', width: 120, padding: '26px 36px 0', textAlign: 'center', }), textBlock({ html: 'www.targo.ca · 1867 ch. de la rivière, Ste-Clotilde, QC
© {{year}} TARGO Communications · Tous droits réservés.', padding: '12px 36px 22px', fontSize: '11px', color: 'rgba(255,255,255,0.55)', textAlign: 'center', lineHeight: '155%', }), ], { backgroundColor: '#1C1E26', borderRadius: '12px' }), ], }