Files
cultureat-bak/wp-content/themes/ccat/app/layouts/default.vue
Pascal Martineau 312a6f1b62
Some checks failed
NuxtHub deployment / deploy (push) Failing after 21s
WordPress deployment / deploy (push) Successful in 8s
feat: Initial Nuxt app
2025-08-27 13:37:40 -04:00

24 lines
638 B
Vue

<script setup lang="ts">
const refSiteFooterBottom = useTemplateRef("refSiteFooterBottom");
const { height } = useElementSize(refSiteFooterBottom);
watch(height, (h) => {
document.documentElement.style.setProperty("--footer-bottom-height", `${h}px`);
});
</script>
<template>
<div>
<SiteHeaderTop />
<SiteHeader />
<div class="relative z-main bg-white border-b border-muted mb-[var(--footer-bottom-height)]">
<UMain>
<slot />
</UMain>
<SiteFooter />
</div>
<div ref="refSiteFooterBottom" class="fixed bottom-0 w-full bg-muted">
<SiteFooterBottom />
</div>
</div>
</template>