| 1 |
<header class="site-header" role="banner"> |
| 2 |
<a href="/" class="site-logo" aria-label="Makenot.work - Go to homepage">Makenot<span class="dot" aria-hidden="true">.</span>work</a> |
| 3 |
<input type="checkbox" id="nav-toggle" class="nav-toggle-checkbox" aria-hidden="true"> |
| 4 |
<label for="nav-toggle" class="nav-toggle-label" aria-label="Toggle navigation menu"> |
| 5 |
<span></span> |
| 6 |
<span></span> |
| 7 |
<span></span> |
| 8 |
</label> |
| 9 |
<form action="/discover" method="get" class="header-search" role="search"> |
| 10 |
<input type="search" name="q" id="header-search-input" |
| 11 |
placeholder="Search... (Cmd+K)" autocomplete="off" |
| 12 |
aria-label="Search items and projects"> |
| 13 |
</form> |
| 14 |
<nav aria-label="Main navigation"> |
| 15 |
<div class="nav-links"> |
| 16 |
<a href="/discover">Discover</a> |
| 17 |
{% if let Some(user) = session_user %} |
| 18 |
<a href="/library">Library</a> |
| 19 |
<a href="/dashboard">Dashboard</a> |
| 20 |
<a href="/cart" id="nav-cart-link" class="hidden">Cart<span id="cart-badge" class="cart-badge-count"></span></a> |
| 21 |
{% if user.is_admin %}<a href="/admin/waitlist">Admin</a>{% endif %} |
| 22 |
<form action="/logout" method="post" class="nav-form"> |
| 23 |
{% if let Some(token) = csrf_token %}<input type="hidden" name="_csrf" value="{{ token }}">{% endif %} |
| 24 |
<button type="submit" class="btn--link" aria-label="Log out">Log Out</button> |
| 25 |
</form> |
| 26 |
{% else %} |
| 27 |
<a href="/use-cases">Use Cases</a> |
| 28 |
<a href="/docs">Docs</a> |
| 29 |
<a href="/fan-plus">Fan+</a> |
| 30 |
<a href="/login">Login</a> |
| 31 |
<a href="/join">Join</a> |
| 32 |
{% endif %} |
| 33 |
</div> |
| 34 |
</nav> |
| 35 |
</header> |
| 36 |
|