Update src/app/page.tsx
This commit is contained in:
@@ -23,6 +23,13 @@ const navItems = [
|
||||
];
|
||||
|
||||
export default function Home() {
|
||||
const handleShopNowClick = () => {
|
||||
const featuredSection = document.getElementById("featured-products");
|
||||
if (featuredSection) {
|
||||
featuredSection.scrollIntoView({ behavior: "smooth" });
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-bubble"
|
||||
@@ -55,7 +62,7 @@ export default function Home() {
|
||||
]}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
buttons={[
|
||||
{ text: "Shop Women's", href: "/womens" },
|
||||
{ text: "Shop Now", onClick: handleShopNowClick },
|
||||
{ text: "Shop Men's", href: "/mens" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
@@ -258,4 +265,4 @@ export default function Home() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user