Skip to content

Landing page redesign, newsletter, and sitewide dash cleanup - #28

Merged
CodeWithEugene merged 14 commits into
mainfrom
feature/newsletter-and-landing-redesign
Sep 25, 2026
Merged

CodeWithEugene merged 14 commits into
mainfrom
feature/newsletter-and-landing-redesign

Conversation

@CodeWithEugene

Copy link
Copy Markdown
Owner

Summary

  • refactor(ui): removes every em/en dash from user-facing copy across the app (headings, body text, buttons, errors, placeholders), per the new house style rule. Hyphens in compound words and code comments are untouched.
  • feat(ui): redesigns the button system (pill shape, diagonal hover fill, trailing arrow on navigation buttons), adds a mobile hamburger nav (portaled drawer, Home link), reorders the landing page, adds a Trust & Impact section, and rebuilds the final CTA as a gradient banner.
  • feat(newsletter): a real, working public newsletter — signup form, welcome email, signed one-click unsubscribe (page + RFC 8058 API route), and a pnpm run newsletter:send script with a reusable blast template for one-off campaigns.

Test plan

  • tsc --noEmit clean
  • eslint clean
  • pnpm test — 156/156 passing
  • pnpm run build — all routes build
  • Newsletter flow tested end-to-end against local Postgres: subscribe → row persisted → welcome email logged (dev fallback) → unsubscribe link → confirmed → row updated → blast script dry-run and live-mode both verified
  • Visual check at desktop/mobile/dark-mode for all touched sections

Replace every em/en dash in visitor-facing text (headings, body copy,
buttons, placeholders, toasts, error messages, table cell fallbacks)
with sentence splits, commas, colons, or semicolons. Code comments,
hyphens in compound words (Proof-of-Work, 48-hour), and numeric ranges
are untouched.
- Buttons are pills everywhere: a diagonal fill sweeps in on hover/active
  from the bottom-left corner, and navigation buttons get a trailing
  arrow that nudges further up-right (components/ui/button.tsx).
- Mobile: the header nav collapses behind a hamburger menu that opens a
  left-sliding drawer (portaled to <body> so it isn't clipped by the
  header's backdrop-blur), adds a Home link, and drops the header logo
  duplication in favor of the drawer's own logo.
- Landing page: reorders sections, adds a Trust & Impact section (stat
  cards, framed photo with trust callouts, photo strip), and rebuilds
  the final CTA as a gradient banner.
- How It Works / Builder Journey: center key copy on mobile and collapse
  the Build/Ship/Win heading to one line there.
- NewsletterSubscriber model (anonymous, no User account required),
  separate from NotificationPreference which only governs mail for
  people who already have one.
- subscribeAction: zod-validated, honeypot-protected, rate-limited;
  sends a welcome email and always returns a generic success message.
- Real unsubscribe: signed one-click token, RFC 8058 one-click API
  route for mail clients, and a human confirmation page.
- lib/newsletter/mail-templates.ts has both the welcome email and the
  reusable blast template; scripts/send-newsletter-blast.ts (new
  `pnpm run newsletter:send`) sends a one-off campaign to every active
  subscriber.
Widen the image and strip columns, enlarge the star and heading, turn
the frame into a true arch (border-radius caps at 50% of the box, so
it self-clips to a half-circle top regardless of width), and move the
floating trust callouts to hang off the frame's mid-left and
upper-right edges instead of its corners.
Derive the grid from the reference's 363/665/200 column widths as fr
units, give the strip photos a fixed 200:262 aspect instead of
stretching to fill the column, restore the matte (arched photo inset in
an arch outline), and place the star, callouts, and stat cards by the
reference's percentages so the section scales as one composition.
Size type, padding, and card dimensions in container units of the
section's width so they shrink with the photos, and cap the section's
width by viewport height so the whole composition, stat cards included,
fits on one screen. Use the standard-size CTA so it stays on one line in
the narrower text column.
…cards

Drop the viewport-height width cap so the section spans the site
container like every other section, trim the photo columns so the arch
photo and strip photos sit about 20% smaller, and fill the stat cards
with the logo navy (brand-ink, theme-stable) over a logo bright-blue
hard shadow.
Remove the blurred glow and grain layers so the card is a solid logo
navy (brand-ink, theme-stable instead of ink, which flips light in dark
mode), and split it in half with the photo filling the right side edge
to edge.
Light footer on the page background: HackVillage logo, a one-line
description and the GitHub link on the left; Platform, Project, and Get
Started link columns; a Contact Us column with the real email and
location; and a bottom bar with the copyright plus license, Terms, and
Privacy links. Replaces the Salamander heritage mark with the
HackVillage logo.
Catch database errors in subscribeAction and return a friendly form
error instead of throwing, so a failed insert never claims the person
was added or breaks the page.
Add an "In partnership with:" line and the Salamander wordmark beneath
the Technetium Kenya credit in the Contact Us column.
"A CodeWithEugene Creation." sits between the copyright and the legal
links, with CodeWithEugene opening codewitheugene.top in a new tab. The
bar goes three-across from xl so the legal links never wrap.
Add HackVillage's LinkedIn, X, and YouTube profiles beside GitHub, using
official brand marks in currentColor (plus a currentColor GithubMark) so
the row shares the brand blue. Each opens in a new tab.
@CodeWithEugene
CodeWithEugene merged commit 813e4a7 into main Sep 25, 2026
5 checks passed
Repository owner deleted a comment from vercel Bot Sep 25, 2026

This branch was successfully deployed

1 active deployment
Preview — dc726841 Deployed Sep 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant