feat: add cookie consent banner for privacy compliance#1025
Merged
JuanPabloDiaz merged 1 commit intotech-conferences:mainfrom Jul 9, 2025
Merged
Conversation
- Add CookieConsent component with accept/decline functionality - Store user preferences in localStorage - Responsive design with proper ARIA attributes for accessibility - Dark mode compatible styling - Integrate banner into main App component - Export component through components index
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cookie Consent Banner Implementation
This PR adds GDPR-compliant cookie consent functionality to improve privacy compliance.
breaking down #1021
This pull request introduces a new
CookieConsentcomponent to handle user consent for cookies and third-party services, along with its integration into the app. The changes include the creation of the component, its styling, and the addition of the consent banner to the main application layout.New CookieConsent Component:
CookieConsentcomponent insrc/components/CookieConsent/CookieConsent.tsx, which displays a banner for users to accept or decline cookies. It useslocalStorageto store consent status and dynamically handles third-party services like Twitter widgets based on user choice.CookieConsent.module.scssto style the banner, ensuring responsiveness and theme compatibility for both light and dark modes. Includes styles for buttons and layout adjustments for smaller screens.Integration into Application:
CookieConsentcomponent into the main application layout by importing it insrc/components/App/App.tsxand adding it to the rendered output. [1] [2]Component Export and Index Updates:
src/components/CookieConsentfor default export of theCookieConsentcomponent.src/components/index.tsto includeCookieConsentin the global exports for easier access throughout the codebase.