Skip to content

Commit 4eae175

Browse files
CopilotJusterZhu
andcommitted
Address code review feedback: improve accessibility and performance
Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com>
1 parent bbec868 commit 4eae175

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

website/src/css/custom.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,14 @@
8686
box-shadow: 6px 6px 0 rgba(93, 173, 226, 0.3);
8787
}
8888

89-
/* Smooth transitions */
90-
* {
89+
/* Smooth transitions for theme components */
90+
.cosmicHero,
91+
.cosmicHero *,
92+
.featuresSection,
93+
.featuresSection *,
94+
.techSection,
95+
.techSection *,
96+
.navbar,
97+
.footer {
9198
transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
9299
}

website/src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function CosmicHero() {
2020
<Heading as="h1" className={styles.cosmicTitle}>
2121
{siteConfig.title}
2222
</Heading>
23-
<p className={styles.cosmicSubtitle}>
23+
<p className={styles.cosmicSubtitle} aria-label="跨平台自动更新框架 极简 高效 开源">
2424
🚀 跨平台自动更新框架 · 极简 · 高效 · 开源
2525
</p>
2626
<div className={styles.actionButtons}>

0 commit comments

Comments
 (0)