Skip to content

Commit ad360f3

Browse files
authored
Merge pull request #88 from zevorn/website/nav-cleanup
website: simplify nav and brighten link color
2 parents a0b8775 + 4c7f586 commit ad360f3

3 files changed

Lines changed: 10 additions & 14 deletions

File tree

website/blog.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
.nav-logo img { height: 28px; }
6161
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
6262
.nav-links a {
63-
color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
63+
color: var(--text); font-size: 0.88rem; font-weight: 500;
6464
transition: color 0.2s;
6565
}
66-
.nav-links a:hover { color: var(--text); }
66+
.nav-links a:hover { color: var(--accent-light); }
6767
.nav-github {
6868
color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem;
6969
transition: color 0.2s;
@@ -202,8 +202,8 @@
202202
</a>
203203
<button class="nav-toggle" onclick="document.querySelector('.nav-links').classList.toggle('open')" aria-label="Menu">&#9776;</button>
204204
<ul class="nav-links">
205-
<li><a href="index.html">Home</a></li>
206-
<li><a href="docs.html">Docs</a></li>
205+
<li><a href="blog.html" data-en="Blog" data-zh="博客">Blog</a></li>
206+
<li><a href="docs.html" data-en="Docs" data-zh="文档">Docs</a></li>
207207
<li><a href="https://github.com/zevorn/rt-claw" class="nav-github" target="_blank">
208208
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.387.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 21.795 24 17.295 24 12c0-6.63-5.37-12-12-12"/></svg>
209209
GitHub

website/docs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
.nav-logo img { height: 28px; }
6161
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
6262
.nav-links a {
63-
color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
63+
color: var(--text); font-size: 0.88rem; font-weight: 500;
6464
transition: color 0.2s;
6565
}
66-
.nav-links a:hover { color: var(--text); }
66+
.nav-links a:hover { color: var(--accent-light); }
6767
.nav-github {
6868
color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem;
6969
transition: color 0.2s;
@@ -207,8 +207,8 @@
207207
</a>
208208
<button class="nav-toggle" onclick="document.querySelector('.nav-links').classList.toggle('open')" aria-label="Menu">&#9776;</button>
209209
<ul class="nav-links">
210-
<li><a href="index.html" data-en="Home" data-zh="首页">Home</a></li>
211-
<li><a href="index.html#flash" data-en="Flash" data-zh="烧录">Flash</a></li>
210+
<li><a href="blog.html" data-en="Blog" data-zh="博客">Blog</a></li>
211+
<li><a href="docs.html" data-en="Docs" data-zh="文档">Docs</a></li>
212212
<li>
213213
<div class="lang-toggle" onclick="toggleLang()">
214214
<span id="lang-en" class="active">EN</span>

website/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
.nav-logo img { height: 28px; }
6767
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
6868
.nav-links a {
69-
color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
69+
color: var(--text); font-size: 0.88rem; font-weight: 500;
7070
transition: color 0.2s;
7171
}
72-
.nav-links a:hover { color: var(--text); }
72+
.nav-links a:hover { color: var(--accent-light); }
7373
.nav-btn {
7474
display: inline-flex; align-items: center; gap: 0.4rem;
7575
padding: 0.55rem 1.15rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
@@ -573,10 +573,6 @@
573573
</a>
574574
<button class="nav-toggle" onclick="document.querySelector('.nav-links').classList.toggle('open')" aria-label="Menu">&#9776;</button>
575575
<ul class="nav-links">
576-
<li><a href="#features" data-en="Features" data-zh="特性">Features</a></li>
577-
<li><a href="#architecture" data-en="Architecture" data-zh="架构">Architecture</a></li>
578-
<li><a href="#platforms" data-en="Platforms" data-zh="平台">Platforms</a></li>
579-
<li><a href="#community" data-en="Community" data-zh="社区">Community</a></li>
580576
<li><a href="blog.html" data-en="Blog" data-zh="博客">Blog</a></li>
581577
<li><a href="docs.html" data-en="Docs" data-zh="文档">Docs</a></li>
582578
<li>

0 commit comments

Comments
 (0)