This commit is contained in:
47
node_modules/vitepress/dist/client/theme-default/components/VPHome.vue
generated
vendored
Normal file
47
node_modules/vitepress/dist/client/theme-default/components/VPHome.vue
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
<script setup lang="ts">
|
||||
import VPHomeHero from './VPHomeHero.vue'
|
||||
import VPHomeFeatures from './VPHomeFeatures.vue'
|
||||
import VPHomeContent from './VPHomeContent.vue'
|
||||
import { useData } from '../composables/data'
|
||||
|
||||
const { frontmatter, theme } = useData()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="VPHome"
|
||||
:class="{
|
||||
'external-link-icon-enabled': theme.externalLinkIcon
|
||||
}">
|
||||
<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 (min-width: 768px) {
|
||||
.VPHome {
|
||||
margin-bottom: 128px;
|
||||
}
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user