Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cookie Consent Banner for User Privacy and Compliance (#477) #554

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

dipexplorer
Copy link
Contributor

@dipexplorer dipexplorer commented Nov 9, 2024

Fixes #477

This PR introduces a cookie consent banner to the site, enhancing user privacy and ensuring compliance with data protection regulations. The banner informs users about our cookie usage and provides options to accept or reject non-essential cookies, storing their preference in local storage for future visits.

Changes

  • Added "Accept" and "Reject" buttons with the following functionality:
  • Accept: Stores user consent in local storage and allows all cookies.
  • Reject: Stores user preference to decline non-essential cookies, allowing only essential cookies.
  • Configured the banner to remember the user’s choice, preventing it from reappearing unless cookies or local storage are cleared.

Testing Instructions

  1. Pull this branch.
  2. Run npm install to install dependencies.
  3. Run npm test to execute the test suite.
  4. Verify that ...

Screenshots (if applicable)

10.11.2024_04.31.08_REC.mp4

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I am working on this issue under GSSOC

Copy link

vercel bot commented Nov 9, 2024

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

Name Status Preview Comments Updated (UTC)
wanderlust-2024 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 9, 2024 11:06pm

Copy link

github-actions bot commented Nov 9, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@Soujanya2004 Soujanya2004 merged commit 7aba26a into Soujanya2004:main Nov 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Add Cookie Consent Banner for User Privacy and Compliance
2 participants