Skip to content

Commit f129cbb

Browse files
committed
fix: home page
1 parent bf6a729 commit f129cbb

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<script setup lang="ts">
2+
import { features } from '@/modules/features'
3+
import { VPFeatures } from 'vitepress/theme'
4+
</script>
5+
6+
<template>
7+
<VPFeatures :features />
8+
</template>
9+
10+
<style>
11+
.VPFeatures .title {
12+
margin: 0;
13+
border-top: none;
14+
padding: 0;
15+
font-size: 1.2rem;
16+
}
17+
18+
.VPFeatures .details {
19+
margin: 0;
20+
padding-top: 8px;
21+
}
22+
</style>

docs/.vitepress/theme/components/Pages/Home.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<script lang="ts" setup>
22
import { ref, onMounted } from 'vue'
3-
import { features } from '@/modules/features'
4-
import { VPFeatures } from 'vitepress/theme'
53
import StarPopup from '@/components/StarPopup.vue'
64
import PopupSlideTransition from '@/components/Transitions/PopupSlideTransition.vue'
5+
import Features from '@/components/Features.vue'
76
87
const isVisible = ref<boolean>(false)
98
@@ -23,7 +22,7 @@ const closePopup = (): void => {
2322

2423
<template>
2524
<div class="home-page">
26-
<VPFeatures :features />
25+
<Features />
2726

2827
<PopupSlideTransition>
2928
<StarPopup v-if="isVisible" @close="closePopup" />

docs/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,4 @@ hero:
2727

2828
:::
2929

30-
<Teleport defer to=".VPHome">
31-
<Home />
32-
</Teleport>
30+
<Home />

0 commit comments

Comments
 (0)