Skip to content

feat: add newsletter signup section to homepage#11

Merged
flaglint merged 1 commit into
mainfrom
feat/newsletter-homepage-signup
Jul 6, 2026
Merged

feat: add newsletter signup section to homepage#11
flaglint merged 1 commit into
mainfrom
feat/newsletter-homepage-signup

Conversation

@Krishan27

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a "Stay in the loop" section above the footer on the main homepage
  • Email input + Subscribe button POSTs to Loops newsletter form API (cmpeyyijd02t40jud6lemhuu0)
  • JavaScript fetch() handles submission with no page reload — shows "You're in. Talk soon." on success, error message on failure
  • Fully styled to match the existing dark/light theme system
  • Accessible: aria-live on the message element, aria-label on the input, novalidate with custom validation

Test plan

  • Visit homepage, enter a valid email, click Subscribe — verify success message appears and contact appears in Loops Audience
  • Submit with invalid email — browser native validation blocks it
  • Submit twice — verify second submit shows appropriate message
  • Toggle light/dark theme — verify section styles correctly in both modes
  • Mobile (<680px) — verify input and button stack/wrap correctly

Adds a "Stay in the loop" section above the footer that captures emails
and submits them to the Loops audience via the newsletter form API.

Signed-off-by: Krishan Kant Sharma <krishansharma0327@gmail.com>
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Krishan27, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 5 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: be7932cf-c58b-4161-8c74-4c76ddcaf7a3

📥 Commits

Reviewing files that changed from the base of the PR and between 0df1df6 and 2780907.

📒 Files selected for processing (1)
  • src/pages/index.astro
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/newsletter-homepage-signup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying flaglint with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2780907
Status: ✅  Deploy successful!
Preview URL: https://f071b0a0.flaglint.pages.dev
Branch Preview URL: https://feat-newsletter-homepage-sig.flaglint.pages.dev

View logs

@flaglint flaglint merged commit e3b1dfe into main Jul 6, 2026
4 checks passed
@flaglint flaglint deleted the feat/newsletter-homepage-signup branch July 6, 2026 04:41
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.

2 participants