mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
35 lines
705 B
Vue
35 lines
705 B
Vue
<template>
|
|
<div v-if="!noWrapper" class="flex flex-col w-full min-h-screen bg-zinc-900">
|
|
<UserHeader class="z-50" hydrate-on-idle />
|
|
<div class="grow flex">
|
|
<NuxtPage />
|
|
</div>
|
|
<UserFooter class="z-50" hydrate-on-interaction />
|
|
</div>
|
|
<div v-else class="flex w-full min-h-screen bg-zinc-900">
|
|
<NuxtPage />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const route = useRoute();
|
|
const noWrapper = !!route.query.noWrapper;
|
|
|
|
useHead({
|
|
htmlAttrs: {
|
|
lang: "en",
|
|
},
|
|
link: [
|
|
{
|
|
rel: "icon",
|
|
type: "image/png",
|
|
href: "/favicon.png",
|
|
},
|
|
],
|
|
titleTemplate(title) {
|
|
if (title) return `${title} | Drop`;
|
|
return `Drop`;
|
|
},
|
|
});
|
|
</script>
|