this repo has no description
1{{ define "layouts/topbar" }}
2 {{ $linkstyle := "text-gray-400 hover:text-gray-900 no-underline" }}
3 <nav class="flex justify-between px-6 space-x-4 mb-4 py-2 border-b border-black">
4 <div id="left-items">
5 <a href="/" hx-boost="true" class="{{ $linkstyle }} flex gap-2">
6 <i class="w-6 h-6" data-lucide="tangent"></i>
7 tangled.sh
8 </a>
9 </div>
10 <div id="right-items" class="flex gap-2">
11 {{ with .LoggedInUser }}
12 <a href="/repo/new" hx-boost="true" class="{{ $linkstyle }}">
13 <i class="w-6 h-6" data-lucide="plus"></i>
14 </a>
15 <a href="/{{ didOrHandle .Did .Handle }}" hx-boost="true" class="{{ $linkstyle }}">
16 {{ didOrHandle .Did .Handle }}
17 </a>
18 <a href="/logout"class="{{ $linkstyle }}">
19 (logout)
20 </a>
21 {{ else }}
22 <a href="/login" hx-boost="true" class="{{ $linkstyle }}">
23 login
24 </a>
25 {{ end }}
26 </div>
27 </nav>
28{{ end }}