From 57423b1baf3f779407ae5927b48d7f8c286238eb Mon Sep 17 00:00:00 2001 From: moh Date: Sun, 20 Sep 2026 20:48:23 +0200 Subject: [PATCH] IMPROVED - Remove dock shadows, fix bounce artifact, mac-radius icons, gallery icon - Drop all shadows (dock, icons, tooltip, corner pills); this also removes the square that showed behind an icon mid-bounce. - Bounce now moves the whole tile (logo bg lives on the animated element), so nothing is left behind. - Icons use a ~22% macOS-like corner radius (art carries its own shape). - Portfolio gets an original photo/gallery icon (not Apple's system icon). --- components/layout/floating-controls.tsx | 2 +- components/layout/site-dock.tsx | 30 ++++++++++++------------- public/dock/about.svg | 6 ++--- public/dock/contact.svg | 6 ++--- public/dock/portfolio.svg | 21 ++++++++++------- public/dock/products.svg | 6 ++--- 6 files changed, 38 insertions(+), 33 deletions(-) diff --git a/components/layout/floating-controls.tsx b/components/layout/floating-controls.tsx index dbf8832..e94777a 100644 --- a/components/layout/floating-controls.tsx +++ b/components/layout/floating-controls.tsx @@ -19,7 +19,7 @@ type FloatingControlsProps = { }; const pill = - "flex h-11 w-11 items-center justify-center rounded-full border border-border/60 bg-background/85 text-foreground/80 shadow-panel backdrop-blur-chrome transition-colors hover:bg-accent hover:text-foreground"; + "flex h-11 w-11 items-center justify-center rounded-full border border-border/60 bg-background/85 text-foreground/80 backdrop-blur-chrome transition-colors hover:bg-accent hover:text-foreground"; /** Radius (px) of the arc the items fan out along. */ const RADIUS = 92; diff --git a/components/layout/site-dock.tsx b/components/layout/site-dock.tsx index a695806..a1679f3 100644 --- a/components/layout/site-dock.tsx +++ b/components/layout/site-dock.tsx @@ -81,16 +81,19 @@ export function SiteDock({ defaultLocale, isSuperAdmin = false }: SiteDockProps) iconSize={50} iconMagnification={92} iconDistance={150} - className="pointer-events-auto h-[66px] gap-3 border-border/60 bg-background/70 shadow-panel" + className="pointer-events-auto h-[66px] gap-3 border-border/60 bg-background/70" > {/* ── Logo (fixed src → no refresh flash) ── */} - + - + mohfarawati @@ -107,7 +110,7 @@ export function SiteDock({ defaultLocale, isSuperAdmin = false }: SiteDockProps)
- {/* ── Pages ── */} + {/* ── Pages (icon art carries its own squircle shape) ── */} {navItems.map(({ key, path, icon: iconSrc, disabled }) => { const itemPath = path || "/"; const isActive = isNavItemActive(currentPath, itemPath); @@ -115,7 +118,7 @@ export function SiteDock({ defaultLocale, isSuperAdmin = false }: SiteDockProps) const icon = ( ); return ( - + {disabled ? ( {icon} @@ -146,7 +146,7 @@ export function SiteDock({ defaultLocale, isSuperAdmin = false }: SiteDockProps) href={getLocalizedPath(locale, itemPath, defaultLocale)} aria-label={label} aria-current={isActive ? "page" : undefined} - className="flex h-full w-full items-center justify-center rounded-[inherit]" + className="flex h-full w-full items-center justify-center" > {icon} @@ -177,7 +177,7 @@ function DockTip({ label, soon }: { label: string; soon?: string }) { return ( {label} {soon ? {soon} : null} diff --git a/public/dock/about.svg b/public/dock/about.svg index 92ac5e4..257e793 100644 --- a/public/dock/about.svg +++ b/public/dock/about.svg @@ -4,9 +4,9 @@ - - - + + + \ No newline at end of file diff --git a/public/dock/contact.svg b/public/dock/contact.svg index 1db08b1..1bf2d8c 100644 --- a/public/dock/contact.svg +++ b/public/dock/contact.svg @@ -4,9 +4,9 @@ - - - + + + \ No newline at end of file diff --git a/public/dock/portfolio.svg b/public/dock/portfolio.svg index bcb809d..350335c 100644 --- a/public/dock/portfolio.svg +++ b/public/dock/portfolio.svg @@ -1,13 +1,18 @@ - + + - + + - - - - - - + + + + + + + + + \ No newline at end of file diff --git a/public/dock/products.svg b/public/dock/products.svg index 8c7074f..76e32a8 100644 --- a/public/dock/products.svg +++ b/public/dock/products.svg @@ -4,9 +4,9 @@ - - - + + + \ No newline at end of file