diff --git a/src/app/page.tsx b/src/app/page.tsx index 4ca8a63..292f398 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -37,7 +37,10 @@ export default function WebAgency2Page() { { name: "Pricing", id: "pricing" }, { name: "Upload", id: "contact" }, ]} - button={{ text: "Upload Chart", href: "#contact" }} + button={{ text: "Upload Chart", onClick: () => { + const el = document.getElementById("contact"); + if (el) el.scrollIntoView({ behavior: "smooth" }); + } }} />
{ const el = document.getElementById("contact"); if (el) el.scrollIntoView({ behavior: "smooth" }); } }, + { text: "Learn How", onClick: () => { const el = document.getElementById("features"); if (el) el.scrollIntoView({ behavior: "smooth" }); } }, ]} buttonAnimation="slide-up" carouselPosition="right" @@ -151,7 +154,7 @@ export default function WebAgency2Page() { tag="Ready to Predict?" title="Start Your Free Analysis Today" description="Upload your first chart now and let our AI show you the potential movement of the market." - buttons={[{ text: "Upload Screenshot", href: "#contact" }]} + buttons={[{ text: "Upload Screenshot", onClick: () => { const el = document.getElementById("contact"); if (el) el.scrollIntoView({ behavior: "smooth" }); } }]} background={{ variant: "sparkles-gradient" }} useInvertedBackground={false} /> @@ -160,9 +163,9 @@ export default function WebAgency2Page() { logoText="ForexAI" copyrightText="© 2026 | ForexAI Analytics" columns={[ - { title: "Platform", items: [{ label: "Home", href: "#" }, { label: "Dashboard", href: "#" }] }, - { title: "Resources", items: [{ label: "Blog", href: "#" }, { label: "FAQs", href: "#" }] }, - { title: "Legal", items: [{ label: "Privacy", href: "#" }, { label: "Terms", href: "#" }] }, + { title: "Platform", items: [{ label: "Home", onClick: () => window.scrollTo({ top: 0, behavior: "smooth" }) }, { label: "Dashboard", onClick: () => { const el = document.getElementById("hero"); if (el) el.scrollIntoView({ behavior: "smooth" }); } }] }, + { title: "Resources", items: [{ label: "Blog", onClick: () => window.location.href = "/blog" }, { label: "FAQs", onClick: () => { const el = document.getElementById("faq"); if (el) el.scrollIntoView({ behavior: "smooth" }); } }] }, + { title: "Legal", items: [{ label: "Privacy", onClick: () => window.location.href = "/legal" }, { label: "Terms", onClick: () => window.location.href = "/terms" }] }, ]} />