File tree Expand file tree Collapse file tree 1 file changed +34
-24
lines changed
website/docs/.vuepress/theme/components Expand file tree Collapse file tree 1 file changed +34
-24
lines changed Original file line number Diff line number Diff line change 10
10
:alt =" data.heroAlt || 'hero'"
11
11
>
12
12
13
- <h1
14
- v-if =" data.heroText !== null"
15
- id =" main-title"
16
- >
17
- {{ data.heroText || $title || 'Hello' }}
18
- </h1 >
13
+ <div >
14
+ <h1
15
+ v-if =" data.heroText !== null"
16
+ id =" main-title"
17
+ >
18
+ {{ data.heroText || $title || 'Hello' }}
19
+ </h1 >
20
+ <p
19
21
20
- < p
21
- v-if = " data.tagline !== null "
22
- class = " description"
23
- v-html = " data.tagline || $description || 'Welcome to your VuePress site' "
24
- >
25
- </ p >
22
+ v-if = " data.tagline !== null "
23
+ class = " description "
24
+ v-html = " data.tagline || $ description || 'Welcome to your VuePress site' "
25
+ >
26
+ </ p >
27
+ < p
26
28
27
- < p
28
- v-if = " data.actionText && data.actionLink "
29
- class = " action "
30
- >
31
- < NavLink
32
- class = " action-button "
33
- :item = " actionLink "
34
- / >
35
- </ p >
29
+ v-if = " data.actionText && data.actionLink "
30
+ class = " action "
31
+ >
32
+ < NavLink
33
+ class = " action-button "
34
+ :item = " actionLink "
35
+ />
36
+ </ p >
37
+ </ div >
36
38
</header >
37
39
38
40
<ClientOnly >
@@ -88,7 +90,12 @@ export default {
88
90
margin 0px auto
89
91
display block
90
92
.hero
91
- text-align center
93
+ // text-align center
94
+ display flex
95
+ // align-items center
96
+ align-items flex-start
97
+ justify-content center
98
+ text-align left
92
99
img
93
100
max-width : 100%
94
101
max-height 280px
@@ -155,11 +162,14 @@ export default {
155
162
padding-left 1.5rem
156
163
padding-right 1.5rem
157
164
.hero
165
+ flex-direction column
166
+ text-align center
158
167
img
159
- max-height 210px
160
- margin 2rem auto 1.2rem
168
+ max-height 210px !important
169
+ margin 2rem auto 1.2rem !important
161
170
h1
162
171
font-size 2rem
172
+ margin-top 0 !important
163
173
h1 , .description , .action
164
174
margin 1.2rem auto
165
175
.description
You can’t perform that action at this time.
0 commit comments