Add scroll-to-top feature for footer menu items

cgen-3605cd19ecd344cea08fbc4186d92d7a
This commit is contained in:
Builder.io 2025-08-05 23:33:00 +00:00
parent fa9b53633d
commit 8da3ff45c5

View file

@ -16,6 +16,10 @@ export default function Layout({ children }: LayoutProps) {
{ name: "Contact", href: "/contact" },
];
const scrollToTop = () => {
window.scrollTo({ top: 0, behavior: 'smooth' });
};
return (
<div className="min-h-screen bg-aethex-gradient">
<header className="sticky top-0 z-50 border-b border-border/40 bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 animate-slide-down">