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

20 lines
528 B
Vue
Raw Normal View History

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