Skip to content

Add Cookie Consent Banner#302

Open
nikita-kashyap-codes wants to merge 1 commit into
Durgeshwar-AI:mainfrom
nikita-kashyap-codes:main
Open

Add Cookie Consent Banner#302
nikita-kashyap-codes wants to merge 1 commit into
Durgeshwar-AI:mainfrom
nikita-kashyap-codes:main

Conversation

@nikita-kashyap-codes

Copy link
Copy Markdown

🔀 Pull Request

📌 Issue Reference

Closes #280

📝 Summary

This PR adds a Cookie Consent Banner to improve user privacy awareness and cookie preference management.

Changes Made

  • Added CookieBanner.jsx component.
  • Added Accept Cookies button.
  • Added Reject Cookies button.
  • Persisted user choice using localStorage.
  • Added link to the Cookie Policy page (/cookies).
  • Integrated the Cookie Banner globally in App.jsx so it appears across the application.
  • Banner automatically hides after a user makes a choice.

✅ Checklist

  • My code follows the project's coding conventions
  • I have tested all impacted features
  • I have updated or added necessary documentation

🏅 Open Source Program Participation

Program Name: GSSoC 2026

💬 Additional Notes

  • Cookie preferences are stored locally in the browser using localStorage.
  • Banner is displayed only when no prior consent choice exists.
  • No backend changes were required for this feature.

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown

@nikita-kashyap-codes is attempting to deploy a commit to the Durgeshwar's projects Team on Vercel.

A member of the Team first needs to authorize it.

@nikita-kashyap-codes

Copy link
Copy Markdown
Author

hi,@Durgeshwar-AI , please review my pr

@Durgeshwar-AI

Copy link
Copy Markdown
Owner

@nikita-kashyap-codes please attach a screen recording showing it in action.

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.

[Feature] Add Cookie Consent Banner

2 participants