mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
791 B
25 lines
791 B
<script setup lang="ts">
|
|
import { useData } from '../composables/data'
|
|
import VPHero from './VPHero.vue'
|
|
|
|
const { frontmatter: fm } = useData()
|
|
</script>
|
|
|
|
<template>
|
|
<VPHero
|
|
v-if="fm.hero"
|
|
class="VPHomeHero"
|
|
:name="fm.hero.name"
|
|
:text="fm.hero.text"
|
|
:tagline="fm.hero.tagline"
|
|
:image="fm.hero.image"
|
|
:actions="fm.hero.actions"
|
|
>
|
|
<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>
|
|
</VPHero>
|
|
</template>
|