fix: update navigation links to use clean URLs and close mobile menu on click

- Removed hash-based routing (/#/) in favor of clean URL paths across all navigation links
- Added onClick handlers to close mobile menu when navigation items are clicked
This commit is contained in:
2025-11-07 17:49:20 +01:00
parent 2b5f20f1e9
commit 1f267b057d
2 changed files with 19 additions and 15 deletions

View File

@@ -15,16 +15,16 @@ export function Footer() {
</div>
</div>
<nav className="mt-10 flex gap-8">
<Link to="/#/" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
<Link to="/" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
Home
</Link>
<Link to="/#/cloud" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
<Link to="/cloud" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
Cloud
</Link>
<Link to="/#/network" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
<Link to="/network" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
Network
</Link>
<Link to="/#/agents" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
<Link to="/agents" className="text-sm text-gray-700 hover:text-cyan-500 transition-colors">
Agents
</Link>
</nav>
@@ -35,7 +35,7 @@ export function Footer() {
</div>
<div className="ml-4 lg:w-72">
<p className="text-base font-semibold text-gray-900">
<Link to="/#/download">
<Link to="/download">
<span className="absolute inset-0 sm:rounded-2xl" />
Download Mycelium Connector
</Link>