diff --git a/web/src/components/command-menu.tsx b/web/src/components/command-menu.tsx index e4a4d149..6991989c 100644 --- a/web/src/components/command-menu.tsx +++ b/web/src/components/command-menu.tsx @@ -68,11 +68,7 @@ export function CommandMenu({ icons, open: externalOpen, onOpenChange: externalO return ( - + {/* Icon Results */} diff --git a/web/src/components/header.tsx b/web/src/components/header.tsx index b57d5e8d..7b605cba 100644 --- a/web/src/components/header.tsx +++ b/web/src/components/header.tsx @@ -2,8 +2,8 @@ import { Github, LayoutDashboard, LogOut, PlusCircle, Search, Star } from "lucide-react" import Link from "next/link" -import { useEffect, useState } from "react" import { usePostHog } from "posthog-js/react" +import { useEffect, useState } from "react" import { LoginModal } from "@/components/login-modal" import { ThemeSwitcher } from "@/components/theme-switcher" import { REPO_NAME, REPO_PATH } from "@/constants" @@ -110,10 +110,10 @@ export function Header() { username: userData.username, }) } - + // Clear PocketBase auth pb.authStore.clear() - + // Reset PostHog identity to unlink future events from this user // This is important for shared computers and follows PostHog best practices resetPostHogIdentity(posthog) @@ -185,13 +185,21 @@ export function Header() {
{isLoggedIn ? ( - ) : ( - )} diff --git a/web/src/components/hero.tsx b/web/src/components/hero.tsx index 98b7fd0e..3867725a 100644 --- a/web/src/components/hero.tsx +++ b/web/src/components/hero.tsx @@ -114,7 +114,7 @@ function ElegantShape({ y: [0, 15, 0], }} transition={{ - duration: 8 + Math.random() * 4, // Random duration between 8-12s for varied movement + duration: 8, repeat: Number.POSITIVE_INFINITY, ease: "easeInOut", repeatType: "reverse", @@ -128,7 +128,7 @@ function ElegantShape({
- - {isRegister ? "Create Account" : "Welcome Back"} - + {isRegister ? "Create Account" : "Welcome Back"} - {isRegister - ? "Join our community and start submitting icons" - : "Sign in to submit and manage your icons" - } + {isRegister ? "Join our community and start submitting icons" : "Sign in to submit and manage your icons"} @@ -137,12 +132,7 @@ export function LoginModal({ open, onOpenChange }: LoginModalProps) { )} {/* GitHub Button (Coming Soon) */} -
@@ -198,9 +186,7 @@ export function LoginModal({ open, onOpenChange }: LoginModalProps) { className="h-12 text-base" required /> -

- This will be displayed publicly with your submissions -

+

This will be displayed publicly with your submissions

)} @@ -242,11 +228,7 @@ export function LoginModal({ open, onOpenChange }: LoginModalProps) { {/* Submit Button */} - diff --git a/web/src/components/magicui/magic-card.tsx b/web/src/components/magicui/magic-card.tsx index 6a755f02..ea594488 100644 --- a/web/src/components/magicui/magic-card.tsx +++ b/web/src/components/magicui/magic-card.tsx @@ -1,11 +1,10 @@ "use client" import { motion, useMotionTemplate, useMotionValue } from "motion/react" +import { useTheme } from "next-themes" import type React from "react" import { useCallback, useEffect, useRef, useState } from "react" - import { cn } from "@/lib/utils" -import { useTheme } from "next-themes" interface MagicCardProps { children?: React.ReactNode @@ -29,7 +28,6 @@ export function MagicCard({ const cardRef = useRef(null) const mouseX = useMotionValue(-gradientSize) const mouseY = useMotionValue(-gradientSize) - const handleMouseMove = useCallback( (e: MouseEvent) => { @@ -85,10 +83,10 @@ export function MagicCard({ useEffect(() => { if (theme === "dark") { - setFromColor("#ffb3c1") // fallback for dark + setFromColor("#ffb3c1") // fallback for dark setToColor("#ff75a0") } else { - setFromColor("#1e9df1") // fallback for light + setFromColor("#1e9df1") // fallback for light setToColor("#8ed0f9") } }, [theme])