Skip to content

Commit 4983277

Browse files
committed
fix: hero img
1 parent 86a6831 commit 4983277

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

components/Home.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
<template>
22
<div class="home" :class="recoShow?'reco-show': 'reco-hide'">
33
<div class="hero">
4-
<img v-if="data.heroImage" :style="heroImageStyle" :src="$withBase(data.heroImage)" alt="hero">
4+
<img
5+
v-if="data.isShowHeroImage !== false"
6+
:style="heroImageStyle"
7+
:src="data.heroImage ? $withBase(data.heroImage) : require('../images/icon_vuepress_reco.png')"
8+
alt="hero">
59

610
<h1 v-if="data.isShowTitleInHome !== false">{{ data.heroText || $title || '午后南杂' }}</h1>
711

812
<p class="description">{{ data.tagline || $description || 'Welcome to your vuePress-theme-reco site' }}</p>
9-
<p class="huawei" v-if="$themeConfig.huawei === true"><i class="iconfont reco-huawei" style="color: #fc2d38"></i>&nbsp;&nbsp;&nbsp;华为,为中华而为之!</p>
13+
<p class="huawei" v-if="$themeConfig.huawei === true">
14+
<i class="iconfont reco-huawei" style="color: #fc2d38"></i>
15+
&nbsp;&nbsp;&nbsp;华为,为中华而为之!
16+
</p>
1017

1118
<p class="action" v-if="data.actionText && data.actionLink">
1219
<NavLink class="action-button" :item="actionLink"/>
@@ -100,9 +107,6 @@ export default {
100107
101108
.hero {
102109
text-align: center;
103-
img {
104-
background-color: $accentColor;
105-
}
106110
h1 {
107111
font-size: 2.5rem;
108112
}

0 commit comments

Comments
 (0)