Skip to content

AI Check-In landing: finalized copy + Resend lead-magnet backend - #67

Open
acharlop wants to merge 1 commit into
mainfrom
feat/ai-checkin-landing-copy
Open

acharlop wants to merge 1 commit into
mainfrom
feat/ai-checkin-landing-copy

Conversation

@acharlop

Copy link
Copy Markdown
Contributor

Finishes the AI Check-In wedge landing page: swaps the placeholder scaffold (#59) for the finalized copy (#58) and builds the lead-magnet email backend with Resend.

What's in here

  • Finalized landing copy wired into /ai-at-work — recommended headline ("Your AI rollout isn't stalling on the tech. It's stalling on the people."), value props, footer CTA, SEO title/description.
  • Verified proof stats with live source links (Pew / Ivanti / McKinsey / Mercer) — replaces the placeholder numbers; the unverifiable "~38% feel supported" figure was dropped.
  • POST /api/ai-checkin-subscribe (SSR): validates email, captures the lead via the existing insertUser (newsletter: true, email-unique upsert — no DB migration), and emails the 10-question starter (spread across the deck's 4 acts) via Resend.
  • Re-enabled the email form (was shipped disabled to avoid a dead field), now fetch-posts to the endpoint with sending / success / error states.
  • Env: RESEND_API_KEY (optional — route returns a graceful 503 when unset, so builds/dev never break) and RESEND_FROM_EMAIL (defaults to WhoCards <hello@whocards.cc>).

⚠️ Required before this can email real users

  1. Set RESEND_API_KEY in Netlify (and local .env).
  2. Verify a sender domain in Resend (e.g. whocards.cc) and set RESEND_FROM_EMAIL to a verified address — until then Resend only delivers to the account owner.

Verification

  • pnpm build green; the API route is bundled into the SSR function.
  • Lead is stored even if the email send fails (logged, non-blocking).

Closes nothing on its own; completes the #58/#59 landing work and supersedes the planned capture-endpoint follow-up.

- Wire finalized landing copy + verified, sourced stats into /ai-at-work
- Add /api/ai-checkin-subscribe: captures lead via insertUser (newsletter), emails the 10-question starter via Resend
- Re-enable the email form, wired to the endpoint with success/error states
- Add optional RESEND_API_KEY + RESEND_FROM_EMAIL env (graceful 503 when unset)
@netlify

netlify Bot commented Jun 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for whocards-calmly ready!

Name Link
🔨 Latest commit 0fda8df
🔍 Latest deploy log https://app.netlify.com/projects/whocards-calmly/deploys/6a319fce8f14530008badbc6
😎 Deploy Preview https://deploy-preview-67--whocards-calmly.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 97
Accessibility: 87
Best Practices: 100
SEO: 100
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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