From 8e621c28b3b912940dc248debb8adf9937004d6d Mon Sep 17 00:00:00 2001
From: sasha-astiadi
Date: Mon, 24 Nov 2025 13:09:22 +0100
Subject: [PATCH] refactor: update NodeHero "How it works" button to use smooth
scroll with onClick handler instead of anchor link
- Changed Button from anchor link with to="#node-getting-started" to onClick handler with smooth scroll behavior
- Added id="node-how-it-works" to NodeSteps section for scroll target
- Removed as="a" prop from Button component
- Implemented scrollIntoView with smooth behavior and start block positioning
---
src/pages/nodes/NodeHero.tsx | 11 ++++++++++-
src/pages/nodes/NodeSteps.tsx | 2 +-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/pages/nodes/NodeHero.tsx b/src/pages/nodes/NodeHero.tsx
index 4c9c697..dc3cd02 100644
--- a/src/pages/nodes/NodeHero.tsx
+++ b/src/pages/nodes/NodeHero.tsx
@@ -28,7 +28,16 @@ export function NodeHero() {
The Mycelium Network runs on nodes hosted by people and organizations around the world. Each node adds capacity, resilience, and sovereignty, expanding a global network for private, distributed compute and AI.