Conversation
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.
🚀 Feature: Interactive Event Announcement Cards & Top Navbar Banner Carousel
📝 Summary
This PR introduces interactive event announcement features across the application, including full card hover/click-redirect capabilities for Catalogue event cards and a smooth, auto-sliding event banner carousel in the top navbar. It also implements a session-persistent dismissal system with clean instant container collapsing.
✨ Key Changes & Features
1. 🎯 Interactive Event Cards (Catalogue Grid)
registrationUrl) in a new tab. Sub-buttons (e.g. "Learn More") continue to handle their specific actions.hover:-translate-y-0.5 hover:shadow-xl).group-hover:scale-105)."Hide x"button with a clean, minimalXicon button (<X className="h-4 w-4" />).2. 🎡 Top Navbar Banner Carousel
ease-in-outhorizontal sliding transition (translateX) between event slides.3. 🛡️ Clean Parent-Level Session Dismissal
Navbar.tsxandCatalogueContent.tsx), instantly removing the entire banner/card container without leaving empty space or waiting for the next 5-second interval slide.sessionStorage(session-only), ensuring announcements automatically reappear when a user opens a new browser tab or session.🛠️ Technical Details & Files Modified
src/components/ui/announcement/Announcement.tsxonClickhandle for card & banner variants with target filtering for action buttons (target.closest("button, a, input, svg")).hover:bg-[#EFEAFF], etc.).Xicon.sessionStoragefallback for dismissal state.src/components/Navbar.tsxcurrentBannerIndexauto-rotation state (5000ms timer with hover pause).transition-transform duration-700 ease-in-out).isTopBannerDismissedstate to instantly collapse the top banner container on dismiss.src/components/CatalogueContent.tsxisGridEventsDismissedstate to instantly clear all grid event cards when dismissed.🧪 Verification & Testing
npx tsc --noEmitpassed with 0 errors.npm run build) compiled successfully with✓ Generating static pages (13/13).