layout: hide footer if not connected

This commit is contained in:
axolotle 2023-11-22 16:30:02 +01:00
parent 50dccdeae2
commit 8a0f90fdde

View file

@ -87,7 +87,12 @@ async function logout() {
<slot /> <slot />
</main> </main>
<footer id="main-footer" class="mt-auto focus-target" tabindex="-1"> <footer
v-if="isLoggedIn"
id="main-footer"
class="mt-auto focus-target"
tabindex="-1"
>
<slot name="footer"> <slot name="footer">
<nav <nav
class="flex pt-2 flex-col border-t border-gray-500 flex-wrap text-center sm:space-x-5 sm:flex-row sm:inline-flex" class="flex pt-2 flex-col border-t border-gray-500 flex-wrap text-center sm:space-x-5 sm:flex-row sm:inline-flex"