Skip to content

Conversation

Samridha0305
Copy link
Contributor

@Samridha0305 Samridha0305 commented Jul 29, 2025

Description

This PR introduces a professionally styled, rich, and elegant newsletter popup to the RecodeHive website. Inspired by Substack’s design, the popup is non-intrusive yet visually appealing, and is shown to users once they scroll 80% of the page height.

The popup includes:
Smooth scroll-based trigger mechanism
localStorage persistence (recodehive_newsletter_popup) to ensure it's shown only once per user
Close and Subscribe button interactions

Fixes #207

Changes Made

Added NewsletterPopup.tsx component
Implemented useEffect to detect scroll and trigger popup
Applied rich and responsive Tailwind styling
Prevent repeated popup display using localStorage

Checklist

Responsive and accessible design
Appears only when user scrolls 80% of the page
localStorage key set to prevent repeat display
Easy to modify logic for testing (can set popup to always show)
Styled to look modern, luxurious, and non-intrusive

Tested and working without breaking any other component

  • My code follows the style guidelines of this project.

  • I have tested my changes across major browsers/devices

  • My changes do not generate new console warnings or errors , I ran npm run build and attached scrrenshot in this PR.

  • This is already assigned Issue to me, not an unassigned issue

  • How to Test
    Run the development server
    Open the homepage
    Scroll down slowly
    Popup will show once you reach ~80% scroll height

Screenshot 2025-07-29 104210 Click "Subscribe" or close — it won’t appear again unless localStorage is cleared.

Copy link

vercel bot commented Jul 29, 2025

@Samridha0305 is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@Samridha0305
Copy link
Contributor Author

@sanjay-kv have a look sir

Copy link

vercel bot commented Jul 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
recode-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 30, 2025 4:47am

@sanjay-kv sanjay-kv added area:backend-sql for issues related to the experimintal support of MsSql as backend gssoc25 level 2 30 points labels Jul 29, 2025
@sanjay-kv sanjay-kv moved this to In Progress in @recode-web Jul 29, 2025
@sanjay-kv
Copy link
Member

image

I checked this in my local system, but it failed in the vercel deployment, can u investigate this.

@sanjay-kv
Copy link
Member

your development is damn good.

@sanjay-kv
Copy link
Member

image

@Samridha0305
Copy link
Contributor Author

i have fixed the newsletterpopup..please chcek @sanjay-kv

@Samridha0305
Copy link
Contributor Author

your development is damn good.

thank you sir!! please let me know if i can work on any other issues.

@sanjay-kv
Copy link
Member

image vercel is failing again

@Samridha0305
Copy link
Contributor Author

Samridha0305 commented Jul 29, 2025 via email

@sanjay-kv
Copy link
Member

Awesome all checks has been completed now.

Its alright its a new repository, now you got the handson how it works.
Let me know any help needed. n your contribution is good, i will sponsor you soon. enable github sponsorship

@sanjay-kv sanjay-kv merged commit 4d8beba into recodehive:main Jul 30, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in @recode-web Jul 30, 2025
@Samridha0305
Copy link
Contributor Author

Awesome all checks has been completed now.

Its alright its a new repository, now you got the handson how it works. Let me know any help needed. n your contribution is good, i will sponsor you soon. enable github sponsorship

Thank you sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend-sql for issues related to the experimintal support of MsSql as backend gssoc25 level 2 30 points

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

banner for newsletter

2 participants