first commit
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
812e4f4005
43
README.md
Normal file
43
README.md
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# GRV-Email
|
||||
|
||||
Branded email templates for the **Great Rift Valley Innovation Summit** (GRV Summit 2.0), presented by the Ethiopian Diaspora Trust Fund.
|
||||
|
||||
Every email the platform sends is defined here: HTML (table-based, inline styles, works in Gmail, Outlook and Apple Mail), a plain-text version, and sample data for previews. The backend sends exactly these templates, and the admin has a preview page for them.
|
||||
|
||||
## Templates
|
||||
|
||||
| Group | Template | Sent when |
|
||||
| --- | --- | --- |
|
||||
| Account | Sign-in code (OTP) | Someone signs in to the app or admin |
|
||||
| Account | Team invite (door staff / admin) | An admin adds someone on the Team page |
|
||||
| Invitations | Summit invitation (guest / investor / speaker) | Personal invitations to attend |
|
||||
| Invitations | Invitation to apply | Recommended startups, before the deadline |
|
||||
| Applications | Draft saved (resume link) | A founder starts an application |
|
||||
| Applications | Application received | A founder submits |
|
||||
| Applications | Decision: **Finalist**, **Accepted into GRV**, Shortlisted, Not selected | Staff change an application's status |
|
||||
| Requests & partners | Request received: partnership, sponsorship, booth, press, general, sales, startup recommendation, newsletter | Any website form |
|
||||
| Requests & partners | Partner confirmed (sponsor / exhibitor / partner) | A partnership is confirmed |
|
||||
| Tickets | Order received (tickets / merch), Tickets issued | Orders and payments |
|
||||
| Staff | New application, New request | Team inbox notifications |
|
||||
|
||||
## Use
|
||||
|
||||
```bash
|
||||
pnpm install
|
||||
pnpm preview # renders previews/*.html (+ .txt) and a gallery: open previews/index.html
|
||||
pnpm sync # copies src/ into ../GRV-Backend/src/shared/email (BACKEND_DIR to override)
|
||||
pnpm typecheck
|
||||
```
|
||||
|
||||
`SITE_URL=http://localhost:3000 pnpm preview` renders against a local site.
|
||||
|
||||
## How it fits
|
||||
|
||||
- `src/layout.ts` is the GRV layout and brand tokens (greens `#30614c` / `#1a4034`, sage `#b9d8c9`, gold badges, DM Sans, topographic hero).
|
||||
- `src/templates.ts` has `createTemplates({ siteUrl, adminUrl, assetsUrl })`, which returns every email as `{ subject, html, text }`.
|
||||
- `src/catalog.ts` lists every template and version with sample data. The admin's **Email templates** page and `pnpm preview` both use it.
|
||||
- The backend's `src/shared/email-templates.ts` adapts backend data to these functions. **Change wording or design here, then run `pnpm sync`**; never edit the synced copy in the backend.
|
||||
|
||||
## Images
|
||||
|
||||
Emails load images from the public site: `/GRVLogo.png` and `/email/pattern.png` (in `GRVSummit/public/email/`, copied from `assets/`). Until the site is deployed with them, the hero falls back to solid brand green. Point the backend at another host with `EMAIL_ASSETS_URL`.
|
||||
Loading…
Reference in New Issue
Block a user