- Add conditional "Dashboard" link in navbar that shows when a user is logged in - Tests verify the link is hidden for unauthenticated users and visible when authenticated - Investigation reports for Q1 (drafts/scheduled), Q2 (RSS), Q3 (email subs)
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
<header class="navbar px-4 sm:px-6 lg:px-8 border-b border-base-200">
|
|
<div class="flex-1">
|
|
<a
|
|
href="/"
|
|
class="font-display text-xl font-semibold tracking-tight text-primary hover:opacity-80 transition"
|
|
>
|
|
Willem's firehose
|
|
</a>
|
|
</div>
|
|
<div class="flex-none">
|
|
<ul class="flex flex-row px-1 space-x-2 sm:space-x-4 items-center">
|
|
<li>
|
|
<a href="/blog/engineering" class="btn btn-ghost btn-sm">Blog</a>
|
|
</li>
|
|
<li>
|
|
<a href="/blog/releases" class="btn btn-ghost btn-sm">Releases</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://qwan.eu" class="btn btn-ghost btn-sm" target="_blank" rel="noopener">
|
|
QWAN
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="/contact" class="btn btn-ghost btn-sm">Contact</a>
|
|
</li>
|
|
<li :if={@current_scope && @current_scope.user}>
|
|
<a href="/editor/dashboard" class="btn btn-ghost btn-sm">Dashboard</a>
|
|
</li>
|
|
<li>
|
|
<.theme_toggle />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="px-4 py-12 sm:px-6 lg:px-8">
|
|
<div class="mx-auto max-w-2xl space-y-4">
|
|
{@inner_content}
|
|
</div>
|
|
</main>
|
|
|
|
<.flash_group flash={@flash} />
|