@@ -24,21 +24,21 @@ export function PublicLayout() {
2424
2525 return (
2626 < div className = "min-h-screen bg-background" >
27- < header className = "sticky top-0 z-50 border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60" >
27+ < header className = "sticky top-0 z-50 border-b border-border/60 bg-background/80 backdrop-blur-xl supports-[backdrop-filter]:bg-background/60" >
2828 < div className = "mx-auto flex h-14 max-w-6xl items-center justify-between px-4" >
29- < Link to = "/" className = "flex items-center gap-2" >
30- < img src = "/logo.jpg" alt = "PeerClaw" className = "size-7 rounded-md object-cover" />
31- < span className = "font-semibold text-sm" > PeerClaw</ span >
29+ < Link to = "/" className = "flex items-center gap-2.5 group " >
30+ < img src = "/logo.jpg" alt = "PeerClaw" className = "size-7 rounded-lg object-cover ring-1 ring-border/50 transition-all group-hover:ring-primary/40 " />
31+ < span className = "font-semibold text-sm tracking-tight " > PeerClaw</ span >
3232 </ Link >
3333
34- < nav className = "flex items-center gap-4 " >
34+ < nav className = "flex items-center gap-1 " >
3535 < NavLink
3636 to = "/directory"
3737 className = { ( { isActive } ) =>
38- `text-sm transition-colors ${
38+ `rounded-md px-3 py-1.5 text-sm transition-all ${
3939 isActive
40- ? "text-foreground font-medium"
41- : "text-muted-foreground hover:text-foreground"
40+ ? "text-foreground font-medium bg-secondary/60 "
41+ : "text-muted-foreground hover:text-foreground hover:bg-secondary/40 "
4242 } `
4343 }
4444 >
@@ -47,10 +47,10 @@ export function PublicLayout() {
4747 < NavLink
4848 to = "/playground"
4949 className = { ( { isActive } ) =>
50- `text-sm transition-colors ${
50+ `rounded-md px-3 py-1.5 text-sm transition-all ${
5151 isActive
52- ? "text-foreground font-medium"
53- : "text-muted-foreground hover:text-foreground"
52+ ? "text-foreground font-medium bg-secondary/60 "
53+ : "text-muted-foreground hover:text-foreground hover:bg-secondary/40 "
5454 } `
5555 }
5656 >
@@ -59,10 +59,10 @@ export function PublicLayout() {
5959 < NavLink
6060 to = "/about"
6161 className = { ( { isActive } ) =>
62- `text-sm transition-colors ${
62+ `rounded-md px-3 py-1.5 text-sm transition-all ${
6363 isActive
64- ? "text-foreground font-medium"
65- : "text-muted-foreground hover:text-foreground"
64+ ? "text-foreground font-medium bg-secondary/60 "
65+ : "text-muted-foreground hover:text-foreground hover:bg-secondary/40 "
6666 } `
6767 }
6868 >
@@ -73,19 +73,19 @@ export function PublicLayout() {
7373 < NavLink
7474 to = "/console"
7575 className = { ( { isActive } ) =>
76- `text-sm transition-colors ${
76+ `rounded-md px-3 py-1.5 text-sm transition-all ${
7777 isActive
78- ? "text-foreground font-medium"
79- : "text-muted-foreground hover:text-foreground"
78+ ? "text-foreground font-medium bg-secondary/60 "
79+ : "text-muted-foreground hover:text-foreground hover:bg-secondary/40 "
8080 } `
8181 }
8282 >
8383 { t ( 'nav.console' ) }
8484 </ NavLink >
8585 < DropdownMenu >
8686 < DropdownMenuTrigger asChild >
87- < button className = "flex items-center gap-1.5 rounded-md px-2 py-1.5 text-sm transition-colors hover:bg-accent/50 focus:outline-none" >
88- < div className = "flex size-6 items-center justify-center rounded-full bg-accent text-xs font-medium " >
87+ < button className = "ml-1 flex items-center gap-1.5 rounded-lg px-2 py-1.5 text-sm transition-all hover:bg-secondary/40 focus:outline-none" >
88+ < div className = "flex size-6 items-center justify-center rounded-full bg-primary/15 text-xs font-semibold text-primary ring-1 ring-primary/20 " >
8989 { ( user . display_name || user . email ) . charAt ( 0 ) . toUpperCase ( ) }
9090 </ div >
9191 < span className = "max-w-[120px] truncate text-sm text-foreground" >
@@ -121,7 +121,7 @@ export function PublicLayout() {
121121 ) : (
122122 < Link
123123 to = "/login"
124- className = "rounded-md border border-border px-3 py-1.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-foreground "
124+ className = "ml-1 rounded-lg border border-primary/30 bg-primary/5 px-3.5 py-1.5 text-xs font-medium text-primary transition-all hover:bg-primary/10 hover:border-primary/50 "
125125 >
126126 { t ( 'nav.signIn' ) }
127127 </ Link >
@@ -130,7 +130,7 @@ export function PublicLayout() {
130130 href = "https://github.com/peerclaw/peerclaw"
131131 target = "_blank"
132132 rel = "noopener noreferrer"
133- className = "text-muted-foreground hover:text-foreground transition-colors "
133+ className = "ml-1 rounded-md p-1.5 text-muted-foreground hover:text-foreground hover:bg-secondary/40 transition-all "
134134 title = { t ( 'nav.github' ) }
135135 >
136136 < Github className = "size-[18px]" />
0 commit comments