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

20 lines
509 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>
<Profectus v-if="showLogo" style="height: 30vmin; margin: auto; display: block" />
<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>