SPB Git

Repository Public

briefs.ts 10.4 KB 131 lines typescript

1// Briefs de départ du générateur (FR et EN) et gabarit du modèle vierge. Chargés avec le studio, pas avec le courrier.2import type { Category } from "../state/templates"34export interface StarterBrief {5  id: string6  category: Category7  label: { fr: string; en: string }8  brief: { fr: string; en: string }9}1011export const STARTER_BRIEFS: StarterBrief[] = [12  {13    id: "welcome",14    category: "transactional",15    label: { fr: "Bienvenue", en: "Welcome" },16    brief: {17      fr: "Courriel de bienvenue envoyé juste après l'inscription. Saluer la personne par son prénom, rappeler en une phrase ce que le service lui apporte, puis proposer trois premiers pas concrets (compléter son profil, découvrir la fonction principale, inviter une collègue), chacun avec un court texte. Un seul bouton principal « Commencer » vers son espace. Terminer par une ligne chaleureuse signée de l'équipe et un lien vers l'aide.",18      en: "Welcome email sent right after sign-up. Greet the person by first name, remind them in one sentence what the service does for them, then offer three concrete first steps (complete their profile, try the main feature, invite a colleague), each with a short line of copy. One primary button, “Get started”, leading to their workspace. Close with a warm line signed by the team and a link to the help centre.",19    },20  },21  {22    id: "receipt",23    category: "receipt",24    label: { fr: "Reçu / facture", en: "Receipt / invoice" },25    brief: {26      fr: "Reçu de paiement clair et vérifiable. En tête : montant payé, date et numéro de reçu. Ensuite un tableau des articles (description, quantité, prix), sous-total, taxes (TPS et TVQ sur deux lignes) et total. Rappeler le mode de paiement (quatre derniers chiffres de la carte) et l'adresse de facturation. Bouton « Télécharger la facture (PDF) ». Pied de page : coordonnées de l'entreprise, numéros de taxes et adresse du soutien. Ton neutre, aucun texte promotionnel.",27      en: "A clear, verifiable payment receipt. At the top: amount paid, date and receipt number. Then a table of line items (description, quantity, price), subtotal, tax and total. Mention the payment method (last four digits of the card) and the billing address. A “Download invoice (PDF)” button. Footer: company details, tax numbers and support address. Neutral tone, no promotional copy.",28    },29  },30  {31    id: "security",32    category: "security",33    label: { fr: "Alerte de sécurité", en: "Security alert" },34    brief: {35      fr: "Alerte de sécurité : une nouvelle connexion au compte vient d'avoir lieu. Aller droit au fait, sans dramatiser. Présenter dans un encadré l'appareil, le navigateur, le lieu approximatif, l'adresse IP et l'heure. Deux issues nettes : « C'était moi » (rien à faire) et un bouton « Sécuriser mon compte » si ce n'était pas la personne. Rappeler que l'équipe ne demande jamais de mot de passe par courriel. Aucune image décorative, contraste élevé.",36      en: "Security alert: a new sign-in to the account just happened. Get to the point without drama. Show the device, browser, approximate location, IP address and time in a framed block. Two clear outcomes: “That was me” (nothing to do) and a “Secure my account” button if it was not them. Remind the reader that the team never asks for a password by email. No decorative images, high contrast.",37    },38  },39  {40    id: "newsletter",41    category: "newsletter",42    label: { fr: "Infolettre", en: "Newsletter issue" },43    brief: {44      fr: "Numéro d'une infolettre mensuelle. En-tête avec le nom de l'infolettre, le numéro et la date. Un mot d'ouverture de trois ou quatre phrases signé par la rédaction, puis un article principal (titre, chapeau, lien « Lire la suite ») et trois brèves avec titre, deux lignes de texte et lien. Une section « À l'agenda » avec deux dates. Pied de page : pourquoi la personne reçoit ce courriel, lien de désabonnement et lien vers les archives. Mise en page éditoriale, aérée, agréable à lire sur téléphone.",45      en: "One issue of a monthly newsletter. Masthead with the newsletter name, issue number and date. An opening note of three or four sentences signed by the editor, then a lead story (headline, standfirst, “Read more” link) and three short items, each with a headline, two lines of copy and a link. An “On the calendar” section with two dates. Footer: why the reader is receiving this, an unsubscribe link and a link to the archive. Editorial, airy layout that reads well on a phone.",46    },47  },48  {49    id: "invitation",50    category: "invitation",51    label: { fr: "Invitation", en: "Event invitation" },52    brief: {53      fr: "Invitation à un événement. Mettre en avant le nom de l'événement, puis la date, l'heure et le lieu dans un bloc très lisible. Deux ou trois phrases sur ce qui attend les personnes invitées et le nom de l'hôte. Bouton principal « Confirmer ma présence » et lien secondaire « Je ne pourrai pas venir ». Préciser la date limite de réponse, le stationnement ou l'accès, et une personne à joindre pour les questions. Ton élégant et accueillant.",54      en: "Invitation to an event. Lead with the event name, then the date, time and venue in a highly legible block. Two or three sentences on what guests can expect, and the host's name. Primary button “Confirm my attendance” and a secondary link “I can't make it”. Mention the reply-by date, parking or access details and a contact person for questions. Elegant, welcoming tone.",55    },56  },57  {58    id: "magic-link",59    category: "security",60    label: { fr: "Lien de connexion", en: "Sign-in link" },61    brief: {62      fr: "Courriel de connexion sans mot de passe. Très court : une phrase d'explication, un grand bouton « Me connecter », puis la durée de validité du lien (15 minutes, utilisable une seule fois). En dessous, l'adresse complète du lien en petit pour qui préfère la copier. Préciser que si la personne n'a rien demandé, elle peut ignorer ce message et que personne ne pourra se connecter sans ce lien. Aucun élément superflu.",63      en: "Password-less sign-in email. Very short: one sentence of explanation, a large “Sign in” button, then how long the link stays valid (15 minutes, single use). Below it, the full link in small type for people who prefer to copy it. State that if they did not request this they can ignore the message and that nobody can sign in without this link. Nothing superfluous.",64    },65  },66  {67    id: "announcement",68    category: "announcement",69    label: { fr: "Annonce de produit", en: "Product announcement" },70    brief: {71      fr: "Annonce d'une nouvelle fonctionnalité. Un titre fort qui dit ce qui change pour la personne, une image d'en-tête, puis trois bénéfices concrets présentés avec un court titre et une phrase chacun. Une citation d'une cliente qui l'a essayée en avant-première. Bouton principal « Essayer maintenant » et lien secondaire vers les notes de version. Pied de page avec lien de désabonnement. Ton enthousiaste mais précis, sans superlatifs creux.",72      en: "Announcement of a new feature. A strong headline that says what changes for the reader, a header image, then three concrete benefits, each with a short title and one sentence. A quote from a customer who tried it early. Primary button “Try it now” and a secondary link to the release notes. Footer with an unsubscribe link. Enthusiastic but precise tone, no empty superlatives.",73    },74  },75  {76    id: "personal",77    category: "personal",78    label: { fr: "Mot personnel", en: "Personal note" },79    brief: {80      fr: "Mot personnel envoyé à une personne après une rencontre. Mise en page très sobre, proche d'une lettre : pas de bannière, une seule colonne étroite, typographie soignée. Saluer par le prénom, remercier pour l'échange en rappelant le sujet abordé, proposer une suite concrète avec une date, puis une formule de politesse et une signature avec nom, fonction et téléphone. Un seul lien discret pour prendre rendez-vous.",81      en: "A personal note sent to one person after a meeting. Very restrained layout, close to a letter: no banner, a single narrow column, careful typography. Greet them by first name, thank them for the conversation and recall its topic, propose a concrete next step with a date, then a sign-off and a signature with name, role and phone number. One discreet link to book a meeting.",82    },83  },84]8586/** Idées de retouche proposées sous la zone « Retoucher avec l'IA ». */87export const REVISION_IDEAS: { fr: string; en: string }[] = [88  { fr: "Rends le bouton plus sobre", en: "Make the button more understated" },89  { fr: "Ajoute une section FAQ de trois questions", en: "Add a three-question FAQ section" },90  { fr: "Raccourcis le texte de moitié", en: "Cut the copy by half" },91  { fr: "Passe au tutoiement", en: "Make the tone more casual" },92]9394/** Modèle vierge : un document de courriel minimal, lisible partout, avec rendu sombre. */95export function blankTemplateHtml(lang: "fr" | "en"): string {96  const hello = lang === "fr" ? "Bonjour {{first_name}}," : "Hello {{first_name}},"97  const body = lang === "fr" ? "Écrivez ici le contenu de votre courriel." : "Write the content of your email here."98  return `<!DOCTYPE html>99<html lang="${lang}">100<head>101<meta charset="utf-8">102<meta name="viewport" content="width=device-width, initial-scale=1">103<meta name="color-scheme" content="light dark">104<title></title>105<style>106body{margin:0;padding:0;background:#f4f3ef;}107.card{background:#ffffff;color:#1c1b19;}108@media (max-width:600px){.container{width:100% !important;}.px{padding-left:20px !important;padding-right:20px !important;}}109@media (prefers-color-scheme:dark){body{background:#161716 !important;}.card{background:#1f201e !important;color:#ecebe6 !important;}}110</style>111</head>112<body>113<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">114  <tr>115    <td align="center" style="padding:32px 12px;">116      <table role="presentation" class="container card" width="600" cellpadding="0" cellspacing="0" border="0" style="width:600px;max-width:100%;border-radius:12px;">117        <tr>118          <td class="px" style="padding:36px 40px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.55;">119            <p style="margin:0 0 16px;">${hello}</p>120            <p style="margin:0;">${body}</p>121          </td>122        </tr>123      </table>124    </td>125  </tr>126</table>127</body>128</html>129`130}131
Files main
Menu

Theme