diff --git a/.env.local.example b/.env.local.example deleted file mode 100644 index 4684f5b..0000000 --- a/.env.local.example +++ /dev/null @@ -1,8 +0,0 @@ -# Supabase Configuration -NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url -NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key - -# AI Assignment Generation APIs -GEMINI_API_KEY=your_gemini_api_key -UNSPLASH_ACCESS_KEY=your_unsplash_access_key -NEXT_PUBLIC_SITE_URL=http://localhost:3000 \ No newline at end of file diff --git a/src/components/ui/resizable-navbar.tsx b/src/components/ui/resizable-navbar.tsx index 7889ce4..d24f07b 100644 --- a/src/components/ui/resizable-navbar.tsx +++ b/src/components/ui/resizable-navbar.tsx @@ -6,11 +6,9 @@ import { AnimatePresence, useScroll, useMotionValueEvent, -} from "motion/react"; - +} from "framer-motion"; // ✅ corrected import path import React, { useRef, useState } from "react"; - interface NavbarProps { children: React.ReactNode; className?: string; @@ -58,17 +56,12 @@ export const Navbar = ({ children, className }: NavbarProps) => { const [visible, setVisible] = useState(false); useMotionValueEvent(scrollY, "change", (latest) => { - if (latest > 100) { - setVisible(true); - } else { - setVisible(false); - } + setVisible(latest > 100); }); return ( {React.Children.map(children, (child) => @@ -88,7 +81,8 @@ export const NavBody = ({ children, className, visible }: NavBodyProps) => { { minWidth: "800px", }} className={cn( - "relative z-[60] mx-auto hidden w-full max-w-7xl flex-row items-center justify-between self-start rounded-full bg-white/10 px-4 py-2 lg:flex border border-white/20", + "relative z-[60] mx-auto hidden w-full max-w-7xl flex-row items-center justify-between rounded-full bg-white/10 px-4 py-2 lg:flex border border-white/20", className, )} > - {children} +
+ {children} +
); }; @@ -114,10 +110,11 @@ export const NavItems = ({ items, className, onItemClick }: NavItemsProps) => { const [hovered, setHovered] = useState(null); return ( - setHovered(null)} className={cn( - "absolute inset-0 hidden flex-1 flex-row items-center justify-center space-x-2 text-sm font-medium text-zinc-600 transition duration-200 hover:text-zinc-800 lg:flex lg:space-x-2", + // ✅ removed absolute/inset-0 — no more overlap + "hidden lg:flex flex-1 items-center justify-center space-x-2 text-sm font-medium text-zinc-600 transition duration-200 hover:text-zinc-800", className, )} > @@ -138,7 +135,7 @@ export const NavItems = ({ items, className, onItemClick }: NavItemsProps) => { {item.name} ))} - + ); }; @@ -232,7 +229,6 @@ export const NavbarLogo = () => { href="#" className="relative z-20 mr-4 flex items-center space-x-2 px-2 py-1 text-sm font-normal text-black" > - {/* eslint-disable-next-line @next/next/no-img-element */} logo )) => { const baseStyles = - "px-4 py-2 rounded-md bg-white button bg-white text-black text-sm font-bold relative cursor-pointer hover:-translate-y-0.5 transition duration-200 inline-block text-center"; + "px-4 py-2 rounded-md bg-white text-black text-sm font-bold relative cursor-pointer hover:-translate-y-0.5 transition duration-200 inline-block text-center flex-shrink-0"; // ✅ added flex-shrink-0 const variantStyles = { primary: