Skip to content

Commit 9c194ac

Browse files
committed
style(header): enhance with vibrant colors and effects
- Add rainbow gradient border (blue-purple-teal-emerald) - Update terminal dots with gradient and glow effects - Replace cyan with blue in code syntax highlighting - Add smooth color transitions on interactive elements
1 parent 84363bb commit 9c194ac

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

components/layout/header.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export function Header() {
4545
: 'bg-transparent'
4646
)}
4747
>
48-
{/* Code-style top border */}
49-
<div className="h-1 bg-gradient-to-r from-cyan-500 via-blue-400 to-orange-500"></div>
48+
{/* Code-style top border - Vibrant gradient */}
49+
<div className="h-1 bg-gradient-to-r from-blue-400 via-purple-400 via-cyan-400 to-teal-400 animate-gradient"></div>
5050

5151
<nav className="container mx-auto px-4 sm:px-6 lg:px-8">
5252
<div className="flex items-center justify-between h-16">
@@ -81,21 +81,21 @@ export function Header() {
8181
className={cn(
8282
'group relative flex items-center space-x-2 px-4 py-2 rounded-lg text-sm font-medium font-mono transition-all duration-300',
8383
isActive
84-
? 'text-cyan-600 bg-cyan-50/80 dark:text-cyan-400 dark:bg-cyan-950/50 shadow-sm'
85-
: 'text-muted-foreground hover:text-foreground hover:bg-muted/50'
84+
? 'text-blue-600 bg-blue-50/80 dark:text-blue-400 dark:bg-blue-950/50 shadow-sm glow-blue'
85+
: 'text-muted-foreground hover:text-foreground hover:bg-accent/50'
8686
)}
8787
>
8888
{/* Code bracket indicator */}
8989
<span className={cn(
9090
'text-xs transition-colors duration-300',
91-
isActive ? 'text-cyan-500' : 'text-muted-foreground/50 group-hover:text-muted-foreground'
91+
isActive ? 'text-blue-500' : 'text-muted-foreground/50 group-hover:text-muted-foreground'
9292
)}>
9393
{'{'}
9494
</span>
9595

9696
<Icon className={cn(
9797
'h-4 w-4 transition-colors duration-300',
98-
isActive ? 'text-cyan-500' : 'text-muted-foreground/70 group-hover:text-foreground'
98+
isActive ? 'text-blue-500' : 'text-muted-foreground/70 group-hover:text-foreground'
9999
)} />
100100

101101
<span className="relative">
@@ -104,7 +104,7 @@ export function Header() {
104104
{isActive && (
105105
<motion.div
106106
layoutId="activeTab"
107-
className="absolute -bottom-1 left-0 right-0 h-0.5 bg-gradient-to-r from-cyan-500 to-orange-400 rounded-full"
107+
className="absolute -bottom-1 left-0 right-0 h-0.5 bg-gradient-to-r from-blue-500 via-purple-500 to-teal-500 rounded-full"
108108
initial={false}
109109
transition={{ type: "spring", stiffness: 500, damping: 30 }}
110110
/>
@@ -113,13 +113,13 @@ export function Header() {
113113

114114
<span className={cn(
115115
'text-xs transition-colors duration-300',
116-
isActive ? 'text-cyan-500' : 'text-muted-foreground/50 group-hover:text-muted-foreground'
116+
isActive ? 'text-blue-500' : 'text-muted-foreground/50 group-hover:text-muted-foreground'
117117
)}>
118118
{'}'}
119119
</span>
120120

121121
{/* Hover effect */}
122-
<div className="absolute inset-0 rounded-lg bg-gradient-to-r from-cyan-500/10 to-orange-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 -z-10" />
122+
<div className="absolute inset-0 rounded-lg bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-teal-500/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 -z-10" />
123123
</Link>
124124
</motion.div>
125125
);
@@ -130,8 +130,8 @@ export function Header() {
130130
{/* Right side with terminal-style elements */}
131131
<div className="hidden md:flex items-center space-x-3">
132132
{/* Status indicator */}
133-
<div className="flex items-center space-x-2 px-3 py-1.5 bg-muted/50 rounded-lg border border-border/50">
134-
<div className="w-2 h-2 bg-emerald-400 rounded-full animate-pulse"></div>
133+
<div className="flex items-center space-x-2 px-3 py-1.5 bg-muted/50 rounded-lg border border-border/50 backdrop-blur-sm">
134+
<div className="w-2 h-2 bg-gradient-to-r from-emerald-400 to-teal-400 rounded-full animate-pulse shadow-lg shadow-emerald-400/50"></div>
135135
<span className="text-xs font-mono text-muted-foreground">online</span>
136136
</div>
137137

@@ -140,7 +140,7 @@ export function Header() {
140140
<Button
141141
variant="ghost"
142142
size="sm"
143-
className="h-9 w-9 hover:bg-cyan-50 hover:text-cyan-600 dark:hover:bg-cyan-950 transition-colors"
143+
className="h-9 w-9 hover:bg-blue-50 hover:text-blue-600 dark:hover:bg-blue-950 dark:hover:text-blue-400 transition-all hover:glow-blue"
144144
asChild
145145
>
146146
<Link
@@ -154,7 +154,7 @@ export function Header() {
154154
<Button
155155
variant="ghost"
156156
size="sm"
157-
className="h-9 w-9 hover:bg-orange-50 hover:text-orange-600 dark:hover:bg-orange-950 transition-colors"
157+
className="h-9 w-9 hover:bg-purple-50 hover:text-purple-600 dark:hover:bg-purple-950 dark:hover:text-purple-400 transition-all hover:glow-purple"
158158
asChild
159159
>
160160
<Link
@@ -250,21 +250,21 @@ export function Header() {
250250
className={cn(
251251
'flex items-center space-x-3 px-3 py-2.5 rounded-md text-base font-medium font-mono transition-all duration-300',
252252
isActive
253-
? 'text-cyan-600 bg-cyan-50/80 dark:text-cyan-400 dark:bg-cyan-950/50'
254-
: 'text-muted-foreground hover:text-foreground hover:bg-muted/50'
253+
? 'text-blue-600 bg-blue-50/80 dark:text-blue-400 dark:bg-blue-950/50 glow-blue'
254+
: 'text-muted-foreground hover:text-foreground hover:bg-accent/50'
255255
)}
256256
onClick={() => setIsOpen(false)}
257257
>
258258
<span className={cn(
259259
'text-sm',
260-
isActive ? 'text-cyan-500' : 'text-muted-foreground/50'
260+
isActive ? 'text-blue-500' : 'text-muted-foreground/50'
261261
)}>
262262
$
263263
</span>
264264
<Icon className="h-4 w-4" />
265265
<span>{item.name.toLowerCase()}</span>
266266
{isActive && (
267-
<div className="ml-auto w-2 h-2 bg-cyan-500 rounded-full"></div>
267+
<div className="ml-auto w-2 h-2 bg-gradient-to-r from-blue-500 to-purple-500 rounded-full animate-pulse shadow-lg shadow-blue-400/50"></div>
268268
)}
269269
</Link>
270270
</motion.div>

0 commit comments

Comments
 (0)