Add main wrapper

This commit is contained in:
Leonardo Murça 2025-06-03 17:14:23 -03:00
parent 0bdef1739a
commit b6aa353ea9
2 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,6 @@
// @ts-nocheck // @ts-nocheck
function appVersion() { function appVersion() {
/* eslint-disable no-undef */
return APP_VERSION; return APP_VERSION;
} }

View file

@ -10,8 +10,18 @@
{#if !$loading && $locale !== undefined} {#if !$loading && $locale !== undefined}
<Header /> <Header />
<slot /> <main>
<slot />
</main>
<Footer /> <Footer />
{:else} {:else}
<LoadingTranslations /> <LoadingTranslations />
{/if} {/if}
<style>
main {
flex: 1; /* This pushes footer to bottom */
padding: 20px;
min-height: 90vh;
}
</style>