12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <script setup lang="ts">
- import VPHomeHero from 'vitepress/dist/client/theme-default/components/VPHomeHero.vue'
- import VPHomeFeatures from 'vitepress/dist/client/theme-default/components/VPHomeFeatures.vue'
- import VPHomeContent from 'vitepress/dist/client/theme-default/components/VPHomeContent.vue'
- import { useData } from "vitepress";
- const { frontmatter } = useData()
- </script>
- <template>
- <div class="VPHome">
- <slot name="home-hero-before" />
- <VPHomeHero>
- <template #home-hero-info-before><slot name="home-hero-info-before" /></template>
- <template #home-hero-info><slot name="home-hero-info" /></template>
- <template #home-hero-info-after><slot name="home-hero-info-after" /></template>
- <template #home-hero-actions-after><slot name="home-hero-actions-after" /></template>
- <template #home-hero-image><slot name="home-hero-image" /></template>
- </VPHomeHero>
- <slot name="home-hero-after" />
- <slot name="home-features-before" />
- <VPHomeFeatures />
- <slot name="home-features-after" />
- <VPHomeContent v-if="frontmatter.markdownStyles !== false">
- <Content />
- </VPHomeContent>
- <Content v-else />
- </div>
- </template>
- <style scoped>
- .VPHome {
- margin-bottom: 96px;
- }
- @media (max-width: 640px) {
- .VPHome {
- background: linear-gradient(to bottom, #E7EEFE 0%, #FAFCFF 800px, #FFFFFF 100%);
- }
- .VPHome :deep(.vp-doc) {
- padding: 0 14px;
- }
- }
- @media (min-width: 768px) {
- .VPHome {
- margin-bottom: 128px;
- }
- }
- </style>
|