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

20 lines
528 B
Vue
Raw Normal View History

2022-03-01 03:30:17 +00:00
<template>
<Layout>
2022-07-14 05:25:11 +00:00
<template #home-hero-before>
2022-07-15 02:59:46 +00:00
<Profectus v-if="showLogo" style="height: 30vmin; margin: auto; display: block; margin-top: 10px;" />
2022-07-14 05:25:11 +00:00
<div v-else style="height: 30vmin; margin: auto; display: block" />
2022-03-01 03:30:17 +00:00
</template>
</Layout>
</template>
<script setup>
2022-03-01 06:05:00 +00:00
import { nextTick, ref } from 'vue';
2022-03-01 03:30:17 +00:00
import DefaultTheme from 'vitepress/theme';
import Profectus from './Profectus.vue';
2022-07-14 05:25:11 +00:00
2022-03-01 03:30:17 +00:00
const { Layout } = DefaultTheme;
2022-07-14 05:25:11 +00:00
2022-03-01 06:05:00 +00:00
const showLogo = ref(false);
nextTick(() => showLogo.value = true);
2022-03-01 03:30:17 +00:00
</script>