Skip to content

Commit 391209d

Browse files
committed
website homepage css changes
1 parent d34718a commit 391209d

File tree

1 file changed

+34
-24
lines changed
  • website/docs/.vuepress/theme/components

1 file changed

+34
-24
lines changed

website/docs/.vuepress/theme/components/Home.vue

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,31 @@
1010
:alt="data.heroAlt || 'hero'"
1111
>
1212

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
1921

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
2628

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>
3638
</header>
3739

3840
<ClientOnly>
@@ -88,7 +90,12 @@ export default {
8890
margin 0px auto
8991
display block
9092
.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
9299
img
93100
max-width: 100%
94101
max-height 280px
@@ -155,11 +162,14 @@ export default {
155162
padding-left 1.5rem
156163
padding-right 1.5rem
157164
.hero
165+
flex-direction column
166+
text-align center
158167
img
159-
max-height 210px
160-
margin 2rem auto 1.2rem
168+
max-height 210px !important
169+
margin 2rem auto 1.2rem !important
161170
h1
162171
font-size 2rem
172+
margin-top 0 !important
163173
h1, .description, .action
164174
margin 1.2rem auto
165175
.description

0 commit comments

Comments
 (0)