Skip to content

Commit 0570735

Browse files
groksrcclaude
andcommitted
Update header and sidebar styling
Header improvements: - Align logo with left navigation (w-72 and px-8) - Lighten header border to gray-100 - Add spacing between nav items (mr-8 for GitHub, mr-6 for Get Started) - Reduce Get Started button font weight to light - Add small chevron icon to Get Started button Sidebar improvements: - Increase border radius for selected items (rounded-xl) - Change selected item background to #e8e8e8 - Increase padding for selected items (px-3.5 py-2) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 121b811 commit 0570735

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/components/Header.astro

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import MobileMenu from './MobileMenu'
44
import { navConfig } from '@/config/navigation'
55
---
66

7-
<header class="sticky top-0 z-50 w-full border-b border-border bg-background">
7+
<header class="sticky top-0 z-50 w-full border-b border-gray-100 bg-background">
88
<div class="flex justify-center">
99
<div class="flex h-14 w-full max-w-screen-2xl items-center">
10-
<!-- Logo aligned with left sidebar (w-64) -->
11-
<div class="w-64 flex items-center px-4">
10+
<!-- Logo aligned with left sidebar (w-72) -->
11+
<div class="w-72 flex items-center px-8">
1212
<a href="/" class="flex items-center space-x-2">
1313
<img
1414
src="/logo-light.png"
@@ -37,11 +37,11 @@ import { navConfig } from '@/config/navigation'
3737
</button>
3838
</div>
3939

40-
<nav class="flex items-center space-x-8 ml-8">
40+
<nav class="flex items-center ml-8">
4141
{navConfig.topNav.map((item) => (
4242
<a
4343
href={item.href}
44-
class="text-sm font-normal transition-colors hover:text-foreground text-muted-foreground"
44+
class="text-sm font-normal transition-colors hover:text-foreground text-muted-foreground mr-8"
4545
target={item.external ? "_blank" : undefined}
4646
rel={item.external ? "noopener noreferrer" : undefined}
4747
style="text-decoration: none"
@@ -52,10 +52,13 @@ import { navConfig } from '@/config/navigation'
5252

5353
<a
5454
href="/getting-started"
55-
class="inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 bg-foreground text-background hover:bg-foreground/80 hover:text-background h-9 px-4 py-2"
55+
class="inline-flex items-center justify-center whitespace-nowrap rounded-full text-sm font-light transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 bg-foreground text-background hover:bg-foreground/80 hover:text-background h-9 px-4 py-2 mr-6"
5656
style="text-decoration: none"
5757
>
5858
Get Started
59+
<svg class="ml-1 h-3 w-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
60+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
61+
</svg>
5962
</a>
6063
<ThemeToggle client:load />
6164
</nav>

src/components/Sidebar.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ const currentPath = Astro.url.pathname
3939
<li>
4040
<a
4141
href={item.href}
42-
class={`block px-3 py-1.5 text-sm transition-colors hover:text-gray-900 rounded-md ${
42+
class={`block text-sm transition-colors hover:text-gray-900 rounded-xl ${
4343
currentPath === item.href
44-
? 'text-gray-900 font-medium bg-gray-100'
45-
: 'text-gray-600 font-normal hover:bg-gray-50'
44+
? 'text-gray-900 font-medium bg-[#e8e8e8] px-3.5 py-2'
45+
: 'text-gray-600 font-normal hover:bg-gray-50 px-3 py-1.5'
4646
}`}
4747
style="text-decoration: none"
4848
>

0 commit comments

Comments
 (0)