profectus-docs/docs/.vitepress/theme/Layout.vue

19 lines
509 B
Vue

<template>
<Layout>
<template #home-hero-before>
<Profectus v-if="showLogo" style="height: 30vmin; margin: auto; display: block" />
<div v-else style="height: 30vmin; margin: auto; display: block" />
</template>
</Layout>
</template>
<script setup>
import { nextTick, ref } from 'vue';
import DefaultTheme from 'vitepress/theme';
import Profectus from './Profectus.vue';
const { Layout } = DefaultTheme;
const showLogo = ref(false);
nextTick(() => showLogo.value = true);
</script>