diff --git a/public/home.js b/public/home.js index 1429f63..8add353 100644 --- a/public/home.js +++ b/public/home.js @@ -72,7 +72,7 @@ - ${hasNodes ? '
Loading your nodes…
' : ''} + ${hasNodes ? '
Loading your nodes…
' : '
'} ${!hasNodes ? `
@@ -209,6 +209,18 @@ const grid = document.getElementById('myNodesGrid'); if (!grid) return; const myNodes = getMyNodes(); + + // Update hero text dynamically + const h1 = document.querySelector('.home-hero h1'); + const heroP = document.querySelector('.home-hero p'); + if (myNodes.length) { + if (h1) h1.textContent = 'My Mesh'; + if (heroP) heroP.textContent = 'Your nodes at a glance. Add more by searching below.'; + // Hide onboarding prompt + const onboard = document.querySelector('.onboarding-prompt'); + if (onboard) onboard.style.display = 'none'; + } + if (!myNodes.length) { grid.innerHTML = ''; return;