Events still not working
This commit is contained in:
cdricms
2025-02-12 16:51:57 +01:00
parent 27c17fc33f
commit 9d6aa4c163
10 changed files with 746 additions and 350 deletions

View File

@@ -128,6 +128,18 @@ const Navbar = () => {
>
A propos
</a>
<a
className={cn(
"text-muted-foreground",
navigationMenuTriggerStyle,
buttonVariants({
variant: "ghost",
}),
)}
href="/gallery"
>
Gallerie
</a>
<a
className={cn(
"text-muted-foreground",
@@ -144,13 +156,33 @@ const Navbar = () => {
</div>
<div className="flex gap-2 animate-in ease-in-out">
<ThemeSwitcher />
<Button variant="outline">
{cookie ? (
<Link href="/dashboard">Compte</Link>
) : (
<Link href="/login">Se connecter</Link>
)}
</Button>
{cookie ? (
<Link
className={cn(
"text-muted-foreground",
navigationMenuTriggerStyle,
buttonVariants({
variant: "outline",
}),
)}
href="/dashboard"
>
Compte
</Link>
) : (
<Link
className={cn(
"text-muted-foreground",
navigationMenuTriggerStyle,
buttonVariants({
variant: "outline",
}),
)}
href="/login"
>
Se connecter
</Link>
)}
{cookie ? (
<Button
onClick={() => {
@@ -219,6 +251,12 @@ const Navbar = () => {
>
À propos
</Link>
<Link
href="/gallery"
className="font-semibold"
>
Gallerie
</Link>
<Link
href="/blog"
className="font-semibold"