|
1 | 1 | <template>
|
2 | 2 | <md-content md-tag="section" md-theme="default" class="home-ecosystem">
|
3 |
| - <h2 class="home-title md-headline"> |
4 |
| - <md-icon>settings</md-icon> |
5 |
| - {{ $t('pages.home.ecosystem') }} |
6 |
| - </h2> |
7 | 3 | <div class="page-wrapper">
|
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')"> |
| 4 | + <h2 class="home-title md-headline"> |
| 5 | + <md-icon>settings</md-icon> |
| 6 | + <span>{{ $t('pages.home.ecosystem') }}</span> |
| 7 | + </h2> |
| 8 | + |
| 9 | + <p>You can use some of our tools to make the development environment easier, more productive and with a better integration with Vue Material. You can choose between a batteries-included webpack boilerplate, a SSR template for Nuxt.js and a Single HTML file to start with the framework:</p> |
| 10 | + |
| 11 | + <div class="md-layout md-gutter md-alignment-top-left"> |
| 12 | + <div class="md-layout-item md-xsmall-size-100"> |
| 13 | + <md-card class="md-primary" md-with-hover @click.native="openLink('https://github.com/vuematerial/webpack')"> |
11 | 14 | <md-ripple>
|
12 |
| - <md-card-content> |
13 |
| - <div class="content"> |
| 15 | + <md-card-header> |
| 16 | + <md-card-header-text> |
14 | 17 | <div class="md-title">Advanced Webpack SPA</div>
|
15 |
| - <p>A full-featured Webpack + Vue Material setup with hot-reload, lint-on-save, unit testing, scss preprocessing & css extraction.</p> |
16 |
| - </div> |
17 |
| - <div class="image"> |
18 |
| - <img src="/assets/boilerplates/webpack-advanced.png" alt="webpack"> |
19 |
| - </div> |
| 18 | + <div class="md-subhead">Full-featured</div> |
| 19 | + </md-card-header-text> |
| 20 | + |
| 21 | + <md-card-media> |
| 22 | + <img src="/assets/boilerplates/webpack.png" alt="Webpack"> |
| 23 | + </md-card-media> |
| 24 | + </md-card-header> |
| 25 | + |
| 26 | + <md-card-content> |
| 27 | + A full-featured boilerplate with Webpack, Dev Server, Hot Reload, ESLint, Unit Testing, Assets Optimization, SCSS preprocessing and more. |
20 | 28 | </md-card-content>
|
21 | 29 | </md-ripple>
|
22 | 30 | </md-card>
|
23 | 31 | </div>
|
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')"> |
| 32 | + |
| 33 | + <div class="md-layout-item md-xsmall-size-100"> |
| 34 | + <md-card class="md-primary" md-theme="nuxt" md-with-hover @click.native="openLink('https://github.com/vuematerial/nuxtjs')"> |
26 | 35 | <md-ripple>
|
| 36 | + <md-card-header> |
| 37 | + <md-card-header-text> |
| 38 | + <div class="md-title">Universal App with Nuxt.js</div> |
| 39 | + <div class="md-subhead">For Server Side Rendering</div> |
| 40 | + </md-card-header-text> |
| 41 | + |
| 42 | + <md-card-media> |
| 43 | + <img src="/assets/boilerplates/nuxt.png" alt="Nuxt"> |
| 44 | + </md-card-media> |
| 45 | + </md-card-header> |
| 46 | + |
27 | 47 | <md-card-content>
|
28 |
| - <div class="content"> |
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"> |
34 |
| - </div> |
| 48 | + All the configuration needed to make more enjoyable the development of your application with full support for Server Side Rendering. |
35 | 49 | </md-card-content>
|
36 | 50 | </md-ripple>
|
37 | 51 | </md-card>
|
38 | 52 | </div>
|
39 |
| - <div class="md-layout-item md-small-size-100 md-size-30"> |
40 |
| - <md-card md-with-hover class="md-elevation-2 flying" @click.native="$router.push('/getting-started')"> |
| 53 | + |
| 54 | + <div class="md-layout-item md-xsmall-size-100"> |
| 55 | + <md-card md-with-hover class="flying" @click.native="$router.push('/getting-started')"> |
41 | 56 | <md-ripple>
|
| 57 | + <md-card-header> |
| 58 | + <div class="md-title">Single HTML file</div> |
| 59 | + </md-card-header> |
| 60 | + |
42 | 61 | <md-card-content>
|
43 |
| - <div class="content"> |
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> |
46 |
| - </div> |
47 |
| - <img src="/assets/boilerplates/html.png" alt="html"> |
| 62 | + The simplest Vue Material setup. |
48 | 63 | </md-card-content>
|
| 64 | + |
| 65 | + <div class="ecosystem-logo"> |
| 66 | + <img src="/assets/boilerplates/html5.png" alt="HTML File"> |
| 67 | + </div> |
49 | 68 | </md-ripple>
|
50 | 69 | </md-card>
|
51 |
| - <md-card md-with-hover class="md-elevation-2 flying" @click.native="openLink('https://codepen.io/vue-material/pen/RxGmyb')"> |
| 70 | + |
| 71 | + <md-card md-with-hover class="flying" @click.native="openLink('https://codepen.io/vue-material/pen/RxGmyb')"> |
52 | 72 | <md-ripple>
|
| 73 | + <md-card-header> |
| 74 | + <div class="md-title">Codepen</div> |
| 75 | + </md-card-header> |
| 76 | + |
53 | 77 | <md-card-content>
|
54 |
| - <div class="content"> |
55 |
| - <div class="md-title">Codepen for prototyping</div> |
56 |
| - <p>For fast prototyping, examples or issues reports is best to use codepen.</p> |
57 |
| - </div> |
58 |
| - <img src="/assets/boilerplates/codepen.svg" alt="codepen"> |
| 78 | + For examples or issues reporting. |
59 | 79 | </md-card-content>
|
| 80 | + |
| 81 | + <div class="ecosystem-logo"> |
| 82 | + <img src="/assets/boilerplates/codepen.png" alt="Codepen"> |
| 83 | + </div> |
60 | 84 | </md-ripple>
|
61 | 85 | </md-card>
|
62 | 86 | </div>
|
|
82 | 106 |
|
83 | 107 | @import "~vue-material/theme/engine";
|
84 | 108 |
|
85 |
| - @include md-register-theme("blue-card", ( |
86 |
| - primary: md-get-palette-color(blue, A200) |
87 |
| - )); |
88 |
| - @include md-register-theme("green-card", ( |
89 |
| - primary: md-get-palette-color(teal, 500) |
| 109 | + @include md-register-theme("nuxt", ( |
| 110 | + primary: #46A37A |
90 | 111 | ));
|
91 | 112 |
|
92 |
| - @import "~vue-material/base/theme"; |
93 | 113 | @import "~vue-material/components/MdCard/theme";
|
94 | 114 |
|
95 | 115 | .home-ecosystem {
|
96 | 116 | width: calc(100% + 32px);
|
97 |
| - padding-bottom: 28px; |
98 |
| - margin: 0 -16px; |
99 | 117 | background: #f5f5f5;
|
| 118 | +
|
100 | 119 | .md-layout-item {
|
101 | 120 | @include md-layout-small {
|
102 | 121 | margin-top: 16px;
|
103 | 122 | }
|
104 | 123 | }
|
| 124 | +
|
105 | 125 | .md-card {
|
106 |
| - position: relative; |
107 |
| - overflow: hidden; |
108 |
| - background: #fff; |
109 |
| - margin-bottom: 16px; |
110 |
| - .md-card-content { |
111 |
| - display: flex; |
112 |
| - padding: 16px; |
113 |
| - height: 100%; |
114 |
| - } |
115 |
| - &.full-height { |
116 |
| - height: 100%; |
117 |
| - } |
118 |
| - .content { |
119 |
| - z-index: 1; |
120 |
| - flex-grow: 1; |
121 |
| - } |
122 |
| - .image { |
123 |
| - width: 100%; |
124 |
| - overflow: hidden; |
125 |
| - text-align: center; |
126 |
| - display: flex; |
127 |
| - align-items: center; |
128 |
| - justify-content: center; |
129 |
| - img { |
130 |
| - max-height: 160px; |
131 |
| - } |
| 126 | + + .md-card { |
| 127 | + margin-top: 24px; |
132 | 128 | }
|
| 129 | +
|
133 | 130 | &.flying {
|
134 | 131 | p {
|
135 |
| - margin-right: 80px; |
| 132 | + margin-right: 15%; |
136 | 133 | }
|
137 |
| - img { |
| 134 | +
|
| 135 | + .ecosystem-logo { |
| 136 | + width: 100px; |
| 137 | + padding: 16px; |
138 | 138 | position: absolute;
|
139 |
| - bottom: -40px; |
140 |
| - right: -40px; |
141 |
| - max-height: 160px; |
| 139 | + right: -20px; |
| 140 | + bottom: -20px; |
142 | 141 | z-index: 0;
|
143 |
| - opacity: .7; |
| 142 | + overflow: hidden; |
| 143 | + opacity: .38; |
| 144 | + background-color: rgba(#000, .26); |
| 145 | + border-radius: 50%; |
144 | 146 | }
|
145 | 147 | }
|
146 | 148 | }
|
|
0 commit comments