From 0459d1b18ae7d8f0d1aef9b7088696d73637e516 Mon Sep 17 00:00:00 2001 From: twixxty <151402590+twixxty@users.noreply.github.com> Date: Wed, 29 Jul 2026 22:49:20 +0530 Subject: [PATCH 1/2] Refactor M3EButtonWithIcon for conditional rendering Refactor M3EButtonWithIcon to conditionally render an anchor tag if href is provided. --- src/components/Hero.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx index 5cdbdb7..b758c65 100644 --- a/src/components/Hero.tsx +++ b/src/components/Hero.tsx @@ -9,13 +9,10 @@ import MaterialIcon from "./MaterialIcon"; function M3EButtonWithIcon({ icon, label, href, variant = "filled", size = "medium", target, rel, trailingIcon, style, ...rest }) { - return ( + const button = ( @@ -24,6 +21,16 @@ function M3EButtonWithIcon({ icon, label, href, variant = "filled", size = "medi {trailingIcon && {trailingIcon}} ); + + if (href) { + return ( + + {button} + + ); + } + + return button; } export function Hero() { From 7950954627f39c2a7bd6978eeeab5e8e431da75c Mon Sep 17 00:00:00 2001 From: twixxty <151402590+twixxty@users.noreply.github.com> Date: Wed, 29 Jul 2026 22:49:45 +0530 Subject: [PATCH 2/2] Refactor footer links for improved accessibility Updated footer links to use anchor tags for accessibility and added rel=noreferrer. --- src/components/Footer.tsx | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 75f7961..0718687 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -21,15 +21,21 @@ export function Footer() {

- - Documentation - - - GitHub - - - Support Server - + + + Documentation + + + + + GitHub + + + + + Support Server + + @@ -44,4 +50,4 @@ export function Footer() { ); -} \ No newline at end of file +}