Newsletter: social bar and event countdown parts, full-width builder
- Social bar: a colored band of the site's platform icons, linked;
no links added shows the footer's (src/data/socialLinks.ts, shared)
- Icons are white and ink PNGs in public/email/, made from
PlatformIcon.tsx by scripts/email-icons.mjs (no SVG in Gmail/Outlook)
- Event countdown: a picture drawn by /api/countdown/<id>.png when the
email is opened (days, hours, minutes to local midnight in
America/Chicago; then happening now; then over), with a fixed line
under it as of copying
- The builder takes the whole window (useWideAdminPage('full'))
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a943ecd3a3
commit
00170ca912
29 changed files with 322 additions and 27 deletions
15
src/data/socialLinks.ts
Normal file
15
src/data/socialLinks.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/* ═══════════════════════════════════════════════════════════════
|
||||
SOCIAL LINKS
|
||||
|
||||
The site's own accounts: the footer's icons, and what a newsletter's
|
||||
social bar starts with (AdminNewsletter.tsx). `platform` is one of
|
||||
PLATFORMS (src/lib/platforms.ts), which picks the icon.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import type { Platform } from '../lib/platforms.ts'
|
||||
|
||||
export const SOCIAL_LINKS: Array<{ label: string; href: string; platform: Platform }> = [
|
||||
{ label: 'Instagram', href: 'https://www.instagram.com/nextgenerationunity/', platform: 'instagram' },
|
||||
{ label: 'Facebook', href: 'https://www.facebook.com/NextGenerationofUnity', platform: 'facebook' },
|
||||
{ label: 'Discord', href: 'https://discord.com/invite/AtngzpqaX5', platform: 'discord' },
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue