style: enhance Why Kmesh section with animated cards - #320
Conversation
Signed-off-by: Pranav-IIITM <jogdandpranav2007@gmail.com>
✅ Deploy Preview for kmesh-net ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @Pranav-IIITM! It looks like this is your first PR to kmesh-net/website 🎉 |
There was a problem hiding this comment.
Code Review
This pull request introduces a new .reasonCard wrapper inside the Why component, adding card styling, hover transitions, and a fade-up entry animation. It also updates the responsive media query breakpoints. The review feedback suggests replacing the hardcoded SCSS @for loop (which limits the animation delay to 6 items) with a dynamic CSS custom property passed directly from React, making the component more scalable and maintainable.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Pull request overview
This PR updates the landing page’s “Why Kmesh” section to present each feature as a styled “card” with entrance and hover animations, improving visual hierarchy and modernizing the section layout.
Changes:
- Wrap each “Why Kmesh” feature item in a new
.reasonCardcontainer in the React component. - Add card styling (surface background, border, radius, shadow) plus hover lift/shadow enhancement.
- Add staggered entrance animations and update responsive breakpoints (3→2→1 columns), including
prefers-reduced-motionhandling.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/components/Why/index.js | Wraps each feature’s title/content in a new .reasonCard element. |
| src/components/Why/index.scss | Adds card visuals, entrance/hover animations, stagger delays, and responsive breakpoints. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@YaoZengzeng @LiZhenCheng9527 Please review the PR !! |
Summary
This PR enhances the "Why Kmesh" section on the landing page by wrapping each feature into a styled card component with smooth animations, improving the overall visual appeal and modern feel of the site.
Closes #319
Changes Made
src/components/Why/index.jsdiv.reasonCardcomponentsrc/components/Why/index.scssfadeUpentrance animation (fade-in + scale from0.95to1)@forloop with:nth-childtranslateY(-4px)and enhanced shadow<= 996px)<= 576px)@media (prefers-reduced-motion: reduce)block for accessibilityBefore & After
Before
After
why.kmesh.video.1.mp4
Checklist
prefers-reduced-motionfor accessibility