Skip to content

Commit b8454a1

Browse files
committed
feat(web): simplify top nav to 4 items, drop Stable badge
The previous navbar carried 7 items plus a 'Stable' pill, and 'Why Aixgo' wrapped at common desktop widths (~1200px). Per ux-engineer recommendation, the desktop nav is now Docs / Blog / GitHub(icon) / Get Started -- matching the pattern used by Temporal, Dagger, and Encore. Home is dropped (the logo carries it), Features and Why Aixgo move to the footer (pages remain accessible by URL). GitHub is demoted to an icon-only ghost button on desktop with aria-label='GitHub'; the label is preserved inside the mobile drawer where touch users have no hover affordance. The dead .alpha-badge CSS is removed; data.version.current is preserved because the homepage still consumes it.
1 parent 63d72b9 commit b8454a1

4 files changed

Lines changed: 30 additions & 50 deletions

File tree

web/config/_default/menus.en.toml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
# -- Main Menu --
22

3-
[[main]]
4-
name = "Home"
5-
url = "/"
6-
weight = 5
7-
83
[[main]]
94
name = "Docs"
105
url = "/docs"
116
weight = 7
127

13-
[[main]]
14-
name = "Features"
15-
pageRef = "features"
16-
weight = 10
17-
18-
[[main]]
19-
name = "Why Aixgo"
20-
pageRef = "why-aixgo"
21-
weight = 15
22-
238
[[main]]
249
name = "Blog"
2510
pageRef = "blog"
@@ -42,6 +27,11 @@
4227
pageRef = "features"
4328
weight = 5
4429

30+
[[footer]]
31+
name = "Why Aixgo"
32+
pageRef = "why-aixgo"
33+
weight = 7
34+
4535
[[footer]]
4636
name = "GitHub"
4737
url = "https://github.com/aixgo-dev/aixgo"

web/layouts/partials/header.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
{{ range .Site.Menus.main }}
2222
<li>
2323
{{ if eq .Name "GitHub" }}
24-
<a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" class="nav-github-btn">
25-
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
24+
<a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" class="nav-github-icon" aria-label="GitHub">
25+
<svg width="20" height="20" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
2626
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/>
2727
</svg>
28-
{{ .Name }}
28+
<span class="nav-label">{{ .Name }}</span>
2929
</a>
3030
{{ else if or (hasPrefix .URL "http://") (hasPrefix .URL "https://") }}
3131
<a href="{{ .URL }}" target="_blank" rel="noopener noreferrer">
@@ -38,7 +38,6 @@
3838
{{ end }}
3939
<li class="nav-cta">
4040
<a href="{{ .Site.Data.version.cta_url }}" class="btn-get-started">{{ .Site.Data.version.cta_text }}</a>
41-
<span class="alpha-badge">{{ .Site.Data.version.current }}</span>
4241
</li>
4342
</ul>
4443
</div>

web/static/css/alpha-notices.css

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
/* Alpha Badge (next to Get Started button) */
2-
.alpha-badge {
3-
display: inline-flex;
4-
align-items: center;
5-
padding: 0.25rem 0.625rem;
6-
background: rgba(34, 211, 238, 0.15);
7-
border: 1px solid rgba(34, 211, 238, 0.3);
8-
border-radius: 9999px;
9-
font-size: 0.75rem;
10-
font-weight: 500;
11-
color: #22d3ee;
12-
margin-left: 0.75rem;
13-
white-space: nowrap;
14-
}
15-
16-
@media (max-width: 768px) {
17-
.alpha-badge {
18-
display: none;
19-
}
20-
}
21-
221
/* Alpha Notice Banner */
232
.alpha-notice-banner {
243
background: #FFB74D;

web/static/css/main.css

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,27 +169,33 @@ header {
169169
opacity: 1;
170170
}
171171

172-
/* Navigation GitHub Button */
173-
.nav-github-btn {
172+
/* Navigation GitHub Icon (desktop: icon-only ghost; mobile: labeled full-width) */
173+
.nav-github-icon {
174174
display: inline-flex;
175175
align-items: center;
176-
gap: 0.5rem;
177-
padding: 0.5rem 1rem;
178-
border: 1px solid var(--color-border);
176+
justify-content: center;
177+
width: 40px;
178+
height: 40px;
179+
border: 1px solid transparent;
179180
border-radius: 6px;
180181
transition: all 0.2s;
181-
font-weight: 500 !important;
182+
color: var(--color-text);
182183
}
183184

184-
.nav-github-btn:hover {
185+
.nav-github-icon:hover {
185186
border-color: var(--color-cyan);
186187
background-color: rgba(34, 211, 238, 0.05);
188+
color: var(--color-cyan);
187189
}
188190

189-
.nav-github-btn svg {
191+
.nav-github-icon svg {
190192
flex-shrink: 0;
191193
}
192194

195+
.nav-github-icon .nav-label {
196+
display: none;
197+
}
198+
193199
/* Get Started CTA Button */
194200
.nav-cta {
195201
margin-left: 0.5rem;
@@ -1350,16 +1356,22 @@ h1, h2, h3, h4, h5, h6 {
13501356
font-size: 1rem;
13511357
}
13521358

1353-
/* Mobile GitHub Button */
1354-
.nav-github-btn {
1359+
/* Mobile GitHub: show label, full-width like other items */
1360+
.nav-github-icon {
13551361
display: flex !important;
13561362
justify-content: center;
13571363
align-items: center;
13581364
width: 100% !important;
1365+
height: auto !important;
13591366
padding: 0.875rem 1rem !important;
13601367
margin: 0 !important;
13611368
box-sizing: border-box;
13621369
border: 1px solid var(--color-border);
1370+
gap: 0.5rem;
1371+
}
1372+
1373+
.nav-github-icon .nav-label {
1374+
display: inline;
13631375
}
13641376

13651377
/* Mobile Get Started CTA */

0 commit comments

Comments
 (0)