diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index abbc88d..c651c1e 100644
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -1,5 +1,6 @@
import { useState } from 'react'
-import { Link } from 'react-router-dom'
+import { Link, useLocation, useNavigate } from 'react-router-dom'
+import { smoothScrollToElement } from '@/utils/scroll'
import { Container } from './Container'
import { Button } from './Button'
import pmyceliumLogo from '../images/logos/mainlogo.svg'
@@ -9,6 +10,17 @@ import { Bars3Icon, XMarkIcon } from '@heroicons/react/24/outline'
export function Header() {
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
+ const navigate = useNavigate()
+ const location = useLocation()
+
+ const handleGetConnectorClick = () => {
+ if (location.pathname === '/network') {
+ smoothScrollToElement('download', 1200)
+ } else {
+ navigate('/network')
+ }
+ }
+
return (
-
+
Join the Network
diff --git a/src/pages/network/Hero.tsx b/src/pages/network/Hero.tsx
index 525c36d..9d228a4 100644
--- a/src/pages/network/Hero.tsx
+++ b/src/pages/network/Hero.tsx
@@ -1,6 +1,7 @@
import { useId } from 'react'
import { Container } from '@/components/Container'
import { Button } from '@/components/Button'
+import { smoothScrollToElement } from '@/utils/scroll'
import phoneFrame from '../../images/phoneframe.png'
import { H3, P
, Eyebrow } from "@/components/Texts";
@@ -93,7 +94,11 @@ export function Hero() {
Your Pod is your personal gateway to the network.
-
+ smoothScrollToElement('download', 1200)}
+ >
Get Started
{
- const el = document.getElementById('node-how-it-works')
- if (el) {
- el.scrollIntoView({ behavior: 'smooth', block: 'start' })
- }
- }}
+ onClick={() => smoothScrollToElement('node-how-it-works', 1200)}
>
How it works
-
+
Explore Docs