Add scroll-to-top feature for footer menu items
cgen-3605cd19ecd344cea08fbc4186d92d7a
This commit is contained in:
parent
fa9b53633d
commit
8da3ff45c5
1 changed files with 4 additions and 0 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue