Production ready changes - #2
Merged
Merged
Conversation
Member
Author
|
added mascot |
There was a problem hiding this comment.
Pull request overview
Adds a “Paavni” mascot callout to the ewaste-26 page, including an interactive eco-fact popup and page-specific styling to support the new UI element.
Changes:
- Added
PaavniMascotcomponent with timed welcome + click-to-cycle eco facts. - Introduced
app/ewaste-26/page.cssand imported it into the page for mascot styling. - Refactored/realigned JSX indentation in the hero + leaderboard sections (no functional change intended).
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| app/ewaste-26/page.tsx | Adds the Paavni mascot component and mounts it in the hero section; imports page-local CSS. |
| app/ewaste-26/page.css | Adds mascot container/popup styling and responsive breakpoints for the new hero mascot UI. |
Suppressed comments (2)
app/ewaste-26/page.tsx:216
- The mascot container is clickable but not keyboard-accessible (no role/tabIndex/key handlers). This prevents keyboard and assistive-technology users from triggering the eco-fact interaction.
<motion.div
className="paavni-mascot-container"
onClick={handleClick}
style={{ cursor: canClick ? "pointer" : "default" }}
app/ewaste-26/page.css:176
@keyframes popupFadeis declared but never used (the popup animation is handled via Framer Motion). Keeping unused keyframes adds dead CSS to maintain.
@keyframes popupFade {
from {
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| "Every contribution brings us closer to a cleaner campus." | ||
| ]; | ||
| function PaavniMascot() { | ||
| const [isVisible, setIsVisible] = useState(true); |
Comment on lines
+23
to
+25
| .paavni-mascot-image { | ||
| pointer-events: none; | ||
| } |
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.
mascot added