feat(ui): complete homepage overhaul with magicui animations, shiftable tools grid, bento grid, 3D visualizer, and marquee reviews

This commit is contained in:
2026-11-04 17:55:18 +05:30
parent 3296e1a6c0
commit 70e13c86b6
22 changed files with 1998 additions and 746 deletions
+29 -1
View File
@@ -3,7 +3,7 @@
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';
import { Menu, X, Smartphone, Layers, ArrowUpRight, Home } from 'lucide-react';
import { SiteConfig, resolveLocalised } from '@/types';
import { BrandLogo } from './BrandLogo';
@@ -66,6 +66,20 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
{/* Center Navigation Links - Protected Optical Floating Pill */}
<nav className="hidden md:flex items-center gap-1 px-2 py-1 rounded-full bg-white/60 backdrop-blur-md border border-white/80 shadow-sm relative z-20">
{/* Dedicated Top Home Button */}
<Link
href="/"
aria-current={pathname === '/' ? 'page' : undefined}
className={`relative flex items-center gap-1.5 px-4 py-2 rounded-full text-xs font-bold tracking-wide transition-all duration-200 ${
pathname === '/'
? 'text-blue-700 bg-white shadow-sm border border-slate-900/[0.06]'
: 'text-slate-800 hover:text-slate-950 hover:bg-white/60'
}`}
>
<Home className="w-3.5 h-3.5" />
<span>Home</span>
</Link>
{config.nav.header.map((item) => {
const active = pathname === item.href || (item.href !== '/' && pathname.startsWith(`${item.href}/`));
return (
@@ -129,6 +143,20 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
className="md:hidden mt-1 pointer-events-auto border-t border-slate-900/[0.08] bg-[#FAF8F5]/98 backdrop-blur-2xl p-5 space-y-3 shadow-2xl animate-in slide-in-from-top-2 duration-200"
>
<div className="max-w-7xl mx-auto space-y-1">
<Link
href="/"
onClick={() => setMobileMenuOpen(false)}
aria-current={pathname === '/' ? 'page' : undefined}
className={`flex items-center gap-2.5 px-4 py-3 rounded-xl text-sm font-semibold transition-colors ${
pathname === '/'
? 'text-blue-700 bg-white shadow-sm border border-slate-900/[0.06]'
: 'text-slate-800 hover:bg-white/60'
}`}
>
<Home className="w-4 h-4 text-blue-600" />
<span>Home</span>
</Link>
{config.nav.header.map((item) => {
const active = pathname === item.href || (item.href !== '/' && pathname.startsWith(`${item.href}/`));
return (