|
3 | 3 | <div class="hero"> |
4 | 4 | <ModuleTransition> |
5 | 5 | <img |
6 | | - v-if="recoShowModule && $frontmatter.isShowHeroImage !== false" |
7 | | - :style="heroImageStyle" |
8 | | - :src="$frontmatter.heroImage ? $withBase($frontmatter.heroImage) : require('../images/icon_vuepress_reco.png')" |
| 6 | + v-if="recoShowModule && $frontmatter.heroImage" |
| 7 | + :style="heroImageStyle || {}" |
| 8 | + :src="$withBase($frontmatter.heroImage)" |
9 | 9 | alt="hero"> |
10 | 10 | </ModuleTransition> |
11 | | - <ModuleTransition delay="0.08"> |
| 11 | + <ModuleTransition delay="0.04"> |
12 | 12 | <h1 v-if="recoShowModule && $frontmatter.isShowTitleInHome !== false">{{ $frontmatter.heroText || $title || '午后南杂' }}</h1> |
13 | 13 | </ModuleTransition> |
14 | | - <ModuleTransition delay="0.16"> |
| 14 | + <ModuleTransition delay="0.08"> |
15 | 15 | <p v-if="recoShowModule" class="description">{{ $description || 'Welcome to your vuePress-theme-reco site' }}</p> |
16 | 16 | </ModuleTransition> |
17 | | - <ModuleTransition delay="0.24"> |
| 17 | + <ModuleTransition delay="0.16"> |
18 | 18 | <p class="huawei" v-if="recoShowModule && $themeConfig.huawei === true"> |
19 | 19 | <i class="iconfont reco-huawei" style="color: #fc2d38"></i> |
20 | 20 | 华为,为中华而为之! |
21 | 21 | </p> |
22 | 22 | </ModuleTransition> |
23 | | - <ModuleTransition delay="0.32"> |
| 23 | + <ModuleTransition delay="0.24"> |
24 | 24 | <p class="action" v-if="recoShowModule && $frontmatter.actionText && $frontmatter.actionLink"> |
25 | 25 | <NavLink class="action-button" :item="actionLink"/> |
26 | 26 | </p> |
27 | 27 | </ModuleTransition> |
28 | 28 | </div> |
29 | 29 |
|
30 | | - <ModuleTransition delay="0.4"> |
| 30 | + <ModuleTransition delay="0.32"> |
31 | 31 | <div class="features" v-if="recoShowModule && $frontmatter.features && $frontmatter.features.length"> |
32 | 32 | <div v-for="(feature, index) in $frontmatter.features" :key="index" class="feature"> |
33 | 33 | <h2>{{ feature.title }}</h2> |
34 | 34 | <p>{{ feature.details }}</p> |
35 | 35 | </div> |
36 | 36 | </div> |
37 | 37 | </ModuleTransition> |
38 | | - <ModuleTransition delay="0.48"> |
| 38 | + <ModuleTransition delay="0.4"> |
39 | 39 | <Content class="home-center" v-if="recoShowModule" custom/> |
40 | 40 | </ModuleTransition> |
41 | 41 | </div> |
|
0 commit comments