Skip to content

Commit 3fcb759

Browse files
committed
feat: Update header component with a new sponsor card and combine sign up/sign in options
1 parent 44ab227 commit 3fcb759

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

components/header.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { usePathname } from "next/navigation"
55
import { LanguageSwitcher } from "./language-switcher"
66
import { getTranslations, getUserLanguage } from "@/lib/i18n"
77
import { useEffect, useState } from "react"
8-
import { Code2, FileText, Users, BookOpen, LogIn, UserPlus } from "lucide-react"
8+
import { Code2, FileText, Users, BookOpen, LogIn, UserPlus, Coffee } from "lucide-react"
99

1010
export function Header() {
1111
const pathname = usePathname()
@@ -84,28 +84,30 @@ export function Header() {
8484
<LanguageSwitcher />
8585
</div>
8686

87-
{/* Sign Up Card - Primary */}
87+
{/* Sponsor Card */}
8888
<Link
89-
href="/signup"
89+
href="https://buymeacoffee.com/lab68dev"
90+
target="_blank"
91+
rel="noopener noreferrer"
9092
className="group relative"
9193
>
92-
<div className="flex items-center gap-2 px-4 py-2 border-2 border-primary bg-primary/10 hover:bg-primary hover:shadow-lg transition-all duration-200">
93-
<UserPlus className="h-4 w-4 text-primary group-hover:text-primary-foreground transition-colors" />
94-
<span className="text-sm font-medium text-primary group-hover:text-primary-foreground transition-colors">
95-
{t.nav.signUp}
94+
<div className="flex items-center gap-2 px-4 py-2 border border-yellow-500 bg-yellow-500/10 hover:bg-yellow-500 hover:shadow-lg transition-all duration-200">
95+
<Coffee className="h-4 w-4 text-yellow-500 group-hover:text-white transition-colors" />
96+
<span className="text-sm font-medium text-yellow-500 group-hover:text-white transition-colors">
97+
Sponsor
9698
</span>
9799
</div>
98100
</Link>
99101

100-
{/* Sign In Card */}
102+
{/* Get Started Card - Combined Sign Up/Sign In */}
101103
<Link
102-
href="/login"
104+
href="/signup"
103105
className="group relative"
104106
>
105-
<div className="flex items-center gap-2 px-4 py-2 border border-border bg-card hover:border-primary hover:shadow-lg transition-all duration-200">
106-
<LogIn className="h-4 w-4 text-muted-foreground group-hover:text-primary transition-colors" />
107-
<span className="text-sm font-medium group-hover:text-primary transition-colors">
108-
{t.nav.signIn}
107+
<div className="flex items-center gap-2 px-4 py-2 border-2 border-primary bg-primary/10 hover:bg-primary hover:shadow-lg transition-all duration-200">
108+
<UserPlus className="h-4 w-4 text-primary group-hover:text-primary-foreground transition-colors" />
109+
<span className="text-sm font-medium text-primary group-hover:text-primary-foreground transition-colors">
110+
Get Started
109111
</span>
110112
</div>
111113
</Link>

0 commit comments

Comments
 (0)