Skip to content

feat: enhance Why Kmesh section with icons and improved UI styling#292

Open
shubhtrek wants to merge 2 commits into
kmesh-net:mainfrom
shubhtrek:feat/why-kmesh-icons-clean
Open

feat: enhance Why Kmesh section with icons and improved UI styling#292
shubhtrek wants to merge 2 commits into
kmesh-net:mainfrom
shubhtrek:feat/why-kmesh-icons-clean

Conversation

@shubhtrek
Copy link
Copy Markdown

What this PR does

  • Adds professional icons to the "Why Kmesh" section
  • Improves visual hierarchy and readability
  • Adds smooth hover interactions
  • Supports both light and dark themes

Why this change

Improves UI clarity and visual appeal without changing layout.

###Preview

Uploading why-kmesh-UI.gif…

Copilot AI review requested due to automatic review settings May 5, 2026 18:52
@kmesh-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign nlgwcy for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for kmesh-net failed.

Name Link
🔨 Latest commit 46767bf
🔍 Latest deploy log https://app.netlify.com/projects/kmesh-net/deploys/69fa415ecc6adb00085a6b86

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the 'Why' section by integrating Lucide icons into the reason cards and refactoring the layout from Flexbox to CSS Grid for improved responsiveness. It also introduces hover animations and better dark mode support. Feedback focuses on improving accessibility by adding aria-hidden to decorative icons, implementing a safety check for the icon component before rendering, and replacing hardcoded colors with currentColor or theme-specific variables to ensure visual consistency.


{/* ICON */}
<div className="reasonIcon">
<Icon />
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The Icon component should be checked for existence before rendering to prevent potential runtime errors if a reason is added without an icon. Additionally, since these icons are decorative, they should be hidden from screen readers using aria-hidden="true".

Suggested change
<Icon />
{Icon && <Icon aria-hidden="true" />}

padding: 28px 20px;
border-radius: 12px;

border: 1px solid rgba(0, 0, 0, 0.05);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The border color is currently hardcoded for light mode. To ensure visual consistency in dark mode, consider adding a theme-specific override.

Suggested change
border: 1px solid rgba(0, 0, 0, 0.05);
border: 1px solid rgba(0, 0, 0, 0.05);
[data-theme='dark'] & {
border-color: rgba(255, 255, 255, 0.1);
}

.reasonIcon svg {
width: 36px;
height: 36px;
color: #1a1a1a;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Hardcoded color values should be avoided. Using currentColor or a theme-defined CSS variable ensures the icon color adapts correctly to the surrounding text color and theme changes.

Suggested change
color: #1a1a1a;
color: currentColor;

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refreshes the homepage “Why Kmesh” section by adding iconography and updated card styling in the Docusaurus frontend.

Changes:

  • Replace the existing flex layout with a responsive CSS grid for the reason cards.
  • Add hover, spacing, border, and dark-mode styles for the “Why Kmesh” cards and icons.
  • Introduce lucide-react icons for each reason item in the React component.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/components/Why/index.scss Reworks the section layout and visual styling, including responsive grid behavior and dark-mode icon/hover styles.
src/components/Why/index.js Adds icon imports, maps each reason to an icon, and renders the icon above each reason title/content.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +2 to +9
import {
Plug,
Rocket,
ArrowDown,
ShieldCheck,
Activity,
Globe
} from "lucide-react";
@kmesh-bot
Copy link
Copy Markdown
Collaborator

Adding label do-not-merge/contains-merge-commits because PR contains merge commits, which are not allowed in this repository.
Use git rebase to reapply your commits on top of the target branch. Detailed instructions for doing so can be found here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Signed-off-by: Shubh Pingale <135618936+shubhtrek@users.noreply.github.com>
@shubhtrek shubhtrek force-pushed the feat/why-kmesh-icons-clean branch from f308265 to 202da9d Compare May 5, 2026 19:01
Signed-off-by: Shubh Pingale <135618936+shubhtrek@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 5, 2026 19:13
@kmesh-bot kmesh-bot added size/XXL and removed size/L labels May 5, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +18 to +26
# Output as raw JSON:
kmeshctl dump <kmesh-daemon-pod> kernel-native -o json
```

### Options

```bash
-h, --help help for dump
-h, --help help for dump
-o, --output string Output format: table or json (default "table")
Comment on lines +18 to +26
# Output as raw JSON:
kmeshctl dump <kmesh-daemon-pod> kernel-native -o json
```

### Options

```bash
-h, --help help for dump
-h, --help help for dump
-o, --output string Output format: table or json (default "table")
Comment on lines +18 to +26
# Output as raw JSON:
kmeshctl dump <kmesh-daemon-pod> kernel-native -o json
```

### Options

```bash
-h, --help help for dump
-h, --help help for dump
-o, --output string Output format: table or json (default "table")
Comment on lines +25 to +30
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.reasonBox:hover {
transform: translateY(-6px) scale(1.02);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants