style: update link colors and hover states for documentation and support links

This commit is contained in:
2025-10-15 16:21:19 +02:00
parent 39e19a95d0
commit 794605117a
4 changed files with 18 additions and 9 deletions

View File

@@ -14,6 +14,7 @@ export function NavLinks() {
['How it Works', '/#howitworks'],
['Coming Soon', '/#comingsoon'],
['FAQs', '/#faqs'],
['Docs', 'https://threefold.info/mycelium_network/docs/'],
].map(([label, href], index) => (
<Link
key={label}
@@ -31,13 +32,17 @@ export function NavLinks() {
}, 50)
}}
onClick={(e) => {
e.preventDefault()
const targetId = href.substring(2)
const targetElement = document.getElementById(targetId)
if (targetElement) {
targetElement.scrollIntoView({ behavior: 'smooth' })
if (href.startsWith('/#')) {
e.preventDefault();
const targetId = href.substring(2);
const targetElement = document.getElementById(targetId);
if (targetElement) {
targetElement.scrollIntoView({ behavior: 'smooth' });
}
}
}}
target={href.startsWith('http') ? '_blank' : undefined}
rel={href.startsWith('http') ? 'noopener noreferrer' : undefined}
>
<AnimatePresence>
{hoveredIndex === index && (