feat: implement management folder architecture, hover-only tool sliders, grain transform animation, and prominent upload studio

This commit is contained in:
2026-11-04 12:28:32 +05:30
parent ad9a3ab000
commit 3cb202399f
56 changed files with 2339 additions and 466 deletions
+1 -31
View File
@@ -1,6 +1,6 @@
'use client';
import React, { useState, useEffect, useRef } from 'react';
import React, { useState, useEffect } from 'react';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { Menu, X, Smartphone, Layers, ArrowUpRight } from 'lucide-react';
@@ -16,8 +16,6 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
const [isScrolled, setIsScrolled] = useState(false);
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
const pathname = usePathname();
const navRef = useRef<HTMLDivElement>(null);
const glintRef = useRef<HTMLDivElement>(null);
useEffect(() => {
const handleScroll = () => {
@@ -36,41 +34,13 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
return () => document.removeEventListener('keydown', closeOnEscape);
}, [mobileMenuOpen]);
const handleMouseMove = (e: React.MouseEvent<HTMLDivElement>) => {
if (!glintRef.current) return;
const rect = e.currentTarget.getBoundingClientRect();
const x = ((e.clientX - rect.left) / rect.width) * 100;
const y = ((e.clientY - rect.top) / rect.height) * 100;
glintRef.current.style.opacity = '0.6';
glintRef.current.style.background = `radial-gradient(ellipse 260px 80px at ${x.toFixed(1)}% ${y.toFixed(1)}%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%)`;
};
const handleMouseLeave = () => {
if (glintRef.current) {
glintRef.current.style.opacity = '0';
}
};
return (
<header className="fixed top-3 sm:top-5 left-0 right-0 z-50 px-3 sm:px-6 lg:px-8 pointer-events-none transition-all duration-300">
<div
ref={navRef}
onMouseMove={handleMouseMove}
onMouseLeave={handleMouseLeave}
className={`relative max-w-6xl mx-auto liquid-glass-nav rounded-2xl sm:rounded-[22px] px-3.5 sm:px-6 py-2.5 sm:py-3 flex items-center justify-between transition-all duration-300 pointer-events-auto ${
isScrolled ? 'nav-scrolled' : ''
}`}
>
{/* Optical Glass Caustic Reflection Sheen */}
<div className="liquid-caustic-refraction" aria-hidden="true" />
{/* Dynamic Specular Caustic Glint - Direct DOM, 0 React re-renders */}
<div
ref={glintRef}
className="absolute inset-0 pointer-events-none transition-opacity duration-300 z-[2] opacity-0"
/>
{/* Foreground Content: 100% Crisp, High-Contrast, Rock-Solid Static (Zero Wobble) */}
<div className="relative z-20 flex items-center justify-between w-full">
{/* Brand Logo */}
<div className="relative z-20">