From c9335d2c5afb481b3f4527ee47f63a0d0dd4268a Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Mon, 24 Nov 2025 14:40:44 +0100 Subject: [PATCH 1/2] refactor: update CallToAction "Join the Network" button to use smooth scroll instead of navigation link - Changed Button from navigation link with to="/network" to onClick handler with smooth scroll behavior - Added smoothScrollToElement import from @/utils/scroll - Implemented smooth scroll to #node-how-it-works section with 1200ms duration - Removed to prop from Button component --- src/pages/network/CallToAction.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/network/CallToAction.tsx b/src/pages/network/CallToAction.tsx index 3a52351..8ae2648 100644 --- a/src/pages/network/CallToAction.tsx +++ b/src/pages/network/CallToAction.tsx @@ -2,6 +2,7 @@ import { Container } from '@/components/Container' import { Button } from "@/components/Button"; +import { smoothScrollToElement } from "@/utils/scroll"; export function CallToAction() { return ( @@ -50,7 +51,8 @@ Use the network to link environments, deploy workloads, or host nodes to strengt {/* ✅ Two cards, stacked center with spacing */}
- From a0fb98409fea092ed4d4e399eb7c8016662f8f99 Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Mon, 24 Nov 2025 14:50:19 +0100 Subject: [PATCH 2/2] refactor: update CallToAction "Join the Network" button to scroll to download section instead of node-how-it-works - Changed smoothScrollToElement target from 'node-how-it-works' to 'download' section - Maintained 1200ms scroll duration --- src/pages/network/CallToAction.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/network/CallToAction.tsx b/src/pages/network/CallToAction.tsx index 8ae2648..d4535f0 100644 --- a/src/pages/network/CallToAction.tsx +++ b/src/pages/network/CallToAction.tsx @@ -51,7 +51,7 @@ Use the network to link environments, deploy workloads, or host nodes to strengt {/* ✅ Two cards, stacked center with spacing */}
-