diff --git a/components/navbar.tsx b/components/navbar.tsx index ed3a340..ed75564 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -1,11 +1,11 @@ -'use client' +"use client"; -import { useState } from "react" -import Link from "next/link" -import { usePathname } from "next/navigation" -import { Button } from "@/components/ui/button" -import { ThemeToggle } from "@/components/theme-toggle" -import { Menu, X } from 'lucide-react' +import { useState } from "react"; +import Link from "next/link"; +import { usePathname } from "next/navigation"; +import { Button } from "@/components/ui/button"; +import { ThemeToggle } from "@/components/theme-toggle"; +import { Menu, X } from "lucide-react"; const navItems = [ { href: "/", label: "Home" }, @@ -13,13 +13,13 @@ const navItems = [ { href: "/learn-more", label: "How it Works" }, { href: "/FAQ", label: "FAQs" }, // { href: "/blog", label: "Blog" }, -] +]; const Navbar1 = () => { - const [isMenuOpen, setIsMenuOpen] = useState(false) - const pathname = usePathname() + const [isMenuOpen, setIsMenuOpen] = useState(false); + const pathname = usePathname(); - const toggleMenu = () => setIsMenuOpen(!isMenuOpen) + const toggleMenu = () => setIsMenuOpen(!isMenuOpen); return (
@@ -34,7 +34,9 @@ const Navbar1 = () => { key={item.href} href={item.href} className={`text-sm font-medium transition-colors hover:text-primary ${ - pathname === item.href ? "text-primary" : "text-muted-foreground" + pathname === item.href + ? "text-primary" + : "text-muted-foreground" }`} > {item.label} @@ -42,7 +44,10 @@ const Navbar1 = () => { ))}
- + Log in {isMenuOpen && (
-
)}
- ) -} -export default Navbar1 + ); +}; +export default Navbar1; diff --git a/components/ui/shiny-button.tsx b/components/ui/shiny-button.tsx deleted file mode 100644 index bd8455f..0000000 --- a/components/ui/shiny-button.tsx +++ /dev/null @@ -1,73 +0,0 @@ -"use client"; - -import React from "react"; -import { - motion, - type AnimationProps, - type HTMLMotionProps, -} from "motion/react"; -import { cn } from "@/lib/utils"; - -const animationProps = { - initial: { "--x": "100%", scale: 0.8 }, - animate: { "--x": "-100%", scale: 1 }, - whileTap: { scale: 0.95 }, - transition: { - repeat: Infinity, - repeatType: "loop", - repeatDelay: 1, - type: "spring", - stiffness: 20, - damping: 15, - mass: 2, - scale: { - type: "spring", - stiffness: 200, - damping: 5, - mass: 0.5, - }, - }, -} as AnimationProps; - -interface ShinyButtonProps extends HTMLMotionProps<"button"> { - children: React.ReactNode; - className?: string; - ref?: React.Ref; -} - -const ShinyButton = React.forwardRef( - ({ children, className, ...props }, ref) => { - return ( - - - {children} - - - - ); - }, -); - -ShinyButton.displayName = "ShinyButton"; - -export default ShinyButton; diff --git a/package-lock.json b/package-lock.json index 8b0d727..76f7eb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "embla-carousel-react": "^8.5.1", - "framer-motion": "^11.15.0", + "framer-motion": "^11.17.0", "lucide-react": "^0.469.0", "motion": "^11.17.0", "next": "15.1.2", diff --git a/package.json b/package.json index 5a773fc..e81e514 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "embla-carousel-react": "^8.5.1", - "framer-motion": "^11.15.0", + "framer-motion": "^11.17.0", "lucide-react": "^0.469.0", "motion": "^11.17.0", "next": "15.1.2",