Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: hide button on login

Dillion Vermacdbc9ebc0e2f
diff --git a/components/site-header.tsx b/components/site-header.tsx
index d04b9e05..bf6f6689 100644
--- a/components/site-header.tsx
+++ b/components/site-header.tsx
@@ -72,33 +72,35 @@ export function SiteHeader({ user }: SiteHeaderProps) {
)}
{!user && (
- <Link
- href="/login"
- className={cn(
- buttonVariants({ variant: "secondary", size: "sm" }),
- "px-4",
- )}
- >
- Login
- </Link>
- )}
- <Link
- className={cn(
- buttonVariants(),
- "hidden gap-2 whitespace-pre md:flex",
- "group relative w-full max-w-fit justify-center gap-2 overflow-hidden rounded-sm transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",
- )}
- href={
- "https://buy.stripe.com/00g7vD4Vu8zQb8k5kl?prefilled_promo_code=EARLYBIRD"
- }
- >
- <span className="absolute right-0 -mt-12 h-32 w-8 translate-x-12 rotate-12 transform bg-white opacity-10 transition-all duration-1000 ease-out group-hover:-translate-x-24 dark:bg-black" />
- {/* <Icons.logo className="h-4 w-4" /> */}
- Buy Now
- {/* <div className="hidden items-center gap-1 text-sm text-gray-500 md:flex">
+ <>
+ <Link
+ href="/login"
+ className={cn(
+ buttonVariants({ variant: "secondary", size: "sm" }),
+ "px-4",
+ )}
+ >
+ Login
+ </Link>
+ <Link
+ className={cn(
+ buttonVariants(),
+ "hidden gap-2 whitespace-pre md:flex",
+ "group relative w-full max-w-fit justify-center gap-2 overflow-hidden rounded-sm transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",
+ )}
+ href={
+ "https://buy.stripe.com/00g7vD4Vu8zQb8k5kl?prefilled_promo_code=EARLYBIRD"
+ }
+ >
+ <span className="absolute right-0 -mt-12 h-32 w-8 translate-x-12 rotate-12 transform bg-white opacity-10 transition-all duration-1000 ease-out group-hover:-translate-x-24 dark:bg-black" />
+ {/* <Icons.logo className="h-4 w-4" /> */}
+ Buy Now
+ {/* <div className="hidden items-center gap-1 text-sm text-gray-500 md:flex">
<StarIcon className="h-4 w-4 transition-all duration-300 group-hover:text-yellow-300" />
</div> */}
- </Link>
+ </Link>
+ </>
+ )}
</nav>
</div>
</div>