Skip to content

Commit 452fccb

Browse files
committed
refactor: change layout
1 parent 440bf67 commit 452fccb

File tree

1 file changed

+22
-33
lines changed

1 file changed

+22
-33
lines changed

docs/app/pages/Home/HomeEcosystem.vue

Lines changed: 22 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
{{ $t('pages.home.ecosystem') }}
66
</h2>
77
<div class="page-wrapper">
8-
<div class="md-layout md-alignment-top-center">
9-
<div class="md-layout-item md-small-size-100 md-size-50">
10-
<md-card md-with-hover class="md-elevation-2 md-primary" md-theme="blue-card" @click.native="openLink('https://github.com/vuematerial/webpack')">
8+
<div class="md-layout md-gutter">
9+
<div class="md-layout-item md-small-size-100">
10+
<md-card md-with-hover class="md-elevation-2 md-primary full-height" md-theme="blue-card" @click.native="openLink('https://github.com/vuematerial/webpack')">
1111
<md-ripple>
1212
<md-card-content>
1313
<div class="content">
@@ -21,43 +21,41 @@
2121
</md-ripple>
2222
</md-card>
2323
</div>
24-
<div class="md-layout-item md-small-size-100 md-size-30">
25-
<md-card md-with-hover class="md-elevation-2 flying" @click.native="$router.push('/getting-started')">
24+
<div class="md-layout-item md-small-size-100">
25+
<md-card md-with-hover class="md-elevation-2 md-primary full-height" md-theme="green-card" @click.native="openLink('https://github.com/vuematerial/nuxtjs%3C/span%3E')">
2626
<md-ripple>
2727
<md-card-content>
2828
<div class="content">
29-
<div class="md-title">Single HTML file</div>
30-
<p>The simplest possible Vue Material setup in a single HTML file. But without SCSS or ES7.</p>
29+
<div class="md-title">Nuxt.js Universal</div>
30+
<p>Nuxt.js is a framework for creating Universal Vue.js Applications. All the configuration needed to make your development of a Vue.js Application Server Rendered more enjoyable.</p>
31+
</div>
32+
<div class="image">
33+
<img src="/assets/boilerplates/nuxt.png" alt="nuxtjs">
3134
</div>
32-
<img src="/assets/boilerplates/html.png" alt="html">
3335
</md-card-content>
3436
</md-ripple>
3537
</md-card>
3638
</div>
3739
<div class="md-layout-item md-small-size-100 md-size-30">
38-
<md-card md-with-hover class="md-elevation-2 flying" @click.native="openLink('CODEPEN')">
40+
<md-card md-with-hover class="md-elevation-2 flying" @click.native="$router.push('/getting-started')">
3941
<md-ripple>
4042
<md-card-content>
4143
<div class="content">
42-
<div class="md-title">Codepen for prototyping</div>
43-
<p>For fast prototyping, examples or issues reports is best to use codepen.</p>
44+
<div class="md-title">Single HTML file</div>
45+
<p>The simplest possible Vue Material setup in a single HTML file. But without SCSS or ES7.</p>
4446
</div>
45-
<img src="/assets/boilerplates/codepen.svg" alt="codepen">
47+
<img src="/assets/boilerplates/html.png" alt="html">
4648
</md-card-content>
4749
</md-ripple>
4850
</md-card>
49-
</div>
50-
<div class="md-layout-item md-small-size-100 md-size-50">
51-
<md-card md-with-hover class="md-elevation-2 md-primary" md-theme="green-card" @click.native="openLink('https://github.com/vuematerial/nuxtjs')">
51+
<md-card md-with-hover class="md-elevation-2 flying" @click.native="openLink('CODEPEN')">
5252
<md-ripple>
5353
<md-card-content>
5454
<div class="content">
55-
<div class="md-title">Nuxt.js Universal</div>
56-
<p>Nuxt.js is a framework for creating Universal Vue.js Applications. All the configuration needed to make your development of a Vue.js Application Server Rendered more enjoyable.</p>
57-
</div>
58-
<div class="image">
59-
<img src="/assets/boilerplates/nuxt.png" alt="nuxtjs">
55+
<div class="md-title">Codepen for prototyping</div>
56+
<p>For fast prototyping, examples or issues reports is best to use codepen.</p>
6057
</div>
58+
<img src="/assets/boilerplates/codepen.svg" alt="codepen">
6159
</md-card-content>
6260
</md-ripple>
6361
</md-card>
@@ -99,28 +97,19 @@
9997
padding-bottom: 28px;
10098
margin: 0 -16px;
10199
background: #f5f5f5;
102-
.md-layout {
103-
align-items: stretch;
104-
padding: 32px 0;
105-
margin-right: -8px;
106-
margin-left: -8px;
107-
.md-layout-item {
108-
padding-right: 8px;
109-
padding-left: 8px;
110-
margin-bottom: 16px;
111-
}
112-
}
113100
.md-card {
114101
position: relative;
115102
overflow: hidden;
116103
background: #fff;
117-
min-height: 270px;
118-
height: 100%;
104+
margin-bottom: 16px;
119105
.md-card-content {
120106
display: flex;
121107
padding: 16px;
122108
height: 100%;
123109
}
110+
&.full-height {
111+
height: 100%;
112+
}
124113
.content {
125114
z-index: 1;
126115
flex-grow: 1;

0 commit comments

Comments
 (0)