Roy-DOU's picture
Add files using upload-large-folder tool
dd5428d verified
Raw History Blame Contribute Delete
1.44 kB
import logoNav from '../assets/logo-nav.png'
const LINKS = ['Features', 'Security', 'Getting started', 'FAQs']
export default function Navbar() {
return (
<header className="nav-wrap">
<nav className="nav-bar">
<a className="nav-logo" href="#top" aria-label="Owo home">
<img src={logoNav} alt="Owo" />
</a>
<ul className="nav-links">
{LINKS.map((l) => (
<li key={l}>
<a href={`#${l.toLowerCase().replace(/\s+/g, '-')}`}>{l}</a>
</li>
))}
</ul>
<div className="nav-actions">
<a className="btn-try" href="#try">Try it out</a>
<button className="theme-toggle" type="button" aria-label="Toggle theme">
<svg className="sun" viewBox="0 0 24 24" width="17" height="17" fill="none" stroke="#3c3c3c" strokeWidth="2" strokeLinecap="round">
<circle cx="12" cy="12" r="4.2" fill="#3c3c3c" stroke="none" />
<path d="M12 2.5v2.4M12 19.1v2.4M2.5 12h2.4M19.1 12h2.4M5.2 5.2l1.7 1.7M17.1 17.1l1.7 1.7M18.8 5.2l-1.7 1.7M6.9 17.1l-1.7 1.7" />
</svg>
<span className="toggle-pill">
<svg viewBox="0 0 24 24" width="13" height="13" fill="#fff">
<path d="M12 3.2S6 10 6 14.2a6 6 0 0 0 12 0C18 10 12 3.2 12 3.2Z" />
</svg>
</span>
</button>
</div>
</nav>
</header>
)
}