cooked/templates/top_bar.jinja

16 lines
751 B
Plaintext
Raw Normal View History

2024-10-30 13:15:01 +01:00
{% match session %}
{% when Some with (user) %}
<div class="flex justify-end gap-4 items-center">
<div class="text-base">Signed in as <span class="text-bold">{{user}}</span></div>
<a href="/create">
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="w-12">
<path d="M12 8V16M16 12H8M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
</a>
</div>
{% when None %}
<div class="flex justify-center">
<a href="/sign-in" class="btn sm:border-2 hover:shadow-lg transition ease-out duration-300">Login</a>
</div>
{% endmatch %}