forked from creativetimofficial/vue-material-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndex.vue
378 lines (372 loc) · 12.5 KB
/
Index.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<template>
<div class="wrapper">
<parallax class="page-header header-filter" :style="headerStyle">
<div class="md-layout">
<div class="md-layout-item">
<div class="image-wrapper">
<img :src="leaf4" alt="leaf4" class="leaf4" v-show="leafShow" />
<img :src="leaf3" alt="leaf3" class="leaf3" v-show="leafShow" />
<img :src="leaf2" alt="leaf2" class="leaf2" v-show="leafShow" />
<img :src="leaf1" alt="leaf1" class="leaf1" v-show="leafShow" />
<div class="brand">
<h1>Vue Material Kit</h1>
<h3>A Badass Vue.js UI Kit made with Material Design.</h3>
</div>
</div>
</div>
</div>
</parallax>
<div class="main main-raised">
<div class="section section-basic">
<div class="container">
<div class="title">
<h2>Basic Elements</h2>
</div>
<basic-elements></basic-elements>
</div>
</div>
<div class="section section-navbars">
<div class="container">
<small-navigation></small-navigation>
</div>
<navigation></navigation>
</div>
<div class="section section-tabs">
<div class="container">
<tabs></tabs>
</div>
</div>
<div class="section section-white">
<div class="container">
<nav-pills></nav-pills>
</div>
</div>
<div class="section section-notifications">
<div class="container">
<div class="title">
<h3>Notifications</h3>
</div>
</div>
<notifications></notifications>
</div>
<div class="section">
<div class="container">
<typography-images></typography-images>
</div>
</div>
<div class="section section-javascript">
<div class="container">
<javascript-components></javascript-components>
</div>
</div>
<div class="section">
<div class="container text-center">
<div class="md-layout">
<div
class="md-layout-item md-size-66 md-xsmall-size-100 ml-auto mr-auto text-center"
>
<h2>Completed with examples</h2>
<h4>
The kit comes with three pre-built pages to help you get started
faster. You can change the text and images and you're good to
go. More importantly, looking at them will give you a picture of
what you can built with this powerful kit.
</h4>
</div>
</div>
</div>
</div>
<div class="section section-signup page-header" :style="signupImage">
<div class="container">
<div class="md-layout">
<div
class="md-layout-item md-size-33 md-medium-size-40 md-small-size-50 md-xsmall-size-70 mx-auto text-center"
>
<login-card header-color="green">
<h4 slot="title" class="card-title">Login</h4>
<md-button
slot="buttons"
href="javascript:void(0)"
class="md-just-icon md-simple md-white"
>
<i class="fab fa-facebook-square"></i>
</md-button>
<md-button
slot="buttons"
href="javascript:void(0)"
class="md-just-icon md-simple md-white"
>
<i class="fab fa-twitter"></i>
</md-button>
<md-button
slot="buttons"
href="javascript:void(0)"
class="md-just-icon md-simple md-white"
>
<i class="fab fa-google-plus-g"></i>
</md-button>
<p slot="description" class="description">Or Be Classical</p>
<md-field class="md-form-group" slot="inputs">
<md-icon>face</md-icon>
<label>First Name...</label>
<md-input v-model="firstname"></md-input>
</md-field>
<md-field class="md-form-group" slot="inputs">
<md-icon>email</md-icon>
<label>Email...</label>
<md-input v-model="email" type="email"></md-input>
</md-field>
<md-field class="md-form-group" slot="inputs">
<md-icon>lock_outline</md-icon>
<label>Password...</label>
<md-input v-model="password"></md-input>
</md-field>
<md-button slot="footer" class="md-simple md-success md-lg">
Get Started
</md-button>
</login-card>
</div>
</div>
</div>
</div>
<div class="md-layout">
<div class="md-layout-item text-center">
<md-button href="#/login" class="md-simple md-success md-lg"
>View Login Page</md-button
>
</div>
</div>
<div class="section section-examples">
<div class="container-fluid text-center">
<div class="md-layout">
<div class="md-layout-item">
<a href="#/landing" target="_blank">
<img
:src="landing"
alt="Rounded Image"
class="img-raised rounded img-fluid"
/>
</a>
<md-button href="#/landing" class="md-simple md-success md-lg"
>View Landing Page</md-button
>
</div>
<div class="md-layout-item">
<a href="#/profile" target="_blank">
<img
:src="profile"
alt="Rounded Image"
class="img-raised rounded img-fluid"
/>
</a>
<md-button href="#/profile" class="md-simple md-success md-lg"
>View Profile Page</md-button
>
</div>
</div>
</div>
</div>
<div class="section section-download" id="downloadSection">
<div class="container">
<div class="md-layout text-center">
<div class="md-layout-item md-size-66 md-small-size-100 mx-auto">
<h2>Do you love this UI Kit?</h2>
<h4>
Cause if you do, it can be yours for FREE. Hit the buttons below
to navigate to our website where you can find the kit. Our
friends from
<a
href="https://themeisle.com/?utm_campaign=mkfree-hestia&utm_source=creativetim&utm_medium=website"
target="_blank"
>ThemeIsle</a
>
created a Wordpress Theme which can be also downloaded for free.
Start a new project or give an old Bootstrap project a new look!
</h4>
</div>
<div class="md-layout-item md-size-50 md-small-size-100 mx-auto">
<md-button
href="https://www.creative-tim.com/product/material-kit"
target="_blank"
class="md-success md-lg"
><i class="fab fa-html5"></i> Free HTML Download</md-button
>
<md-button
href="https://themeisle.com/themes/hestia/?utm_campaign=mkfree-hestia&utm_source=creativetim&utm_medium=website"
class="md-success md-lg"
target="_blank"
><i class="fab fa-wordpress"></i> Wordpress Theme</md-button
>
</div>
</div>
<br /><br />
<div class="md-layout text-center">
<div class="md-layout-item md-size-66 md-small-size-100 mx-auto">
<h2>Want more?</h2>
<h4>
We've just launched
<a
href="https://www.creative-tim.com/product/vue-material-dashboard-pro?ref=utp-mk-demos"
target="_blank"
>Vue Material Dashboard PRO</a
>
and
<a
href="https://www.creative-tim.com/product/vue-material-kit-pro?ref=utp-vmk-demos"
target="_blank"
>Vue Material Kit PRO</a
>. Every product has a huge number of components, sections and
example pages. Start Your Development With A Badass Bootstrap UI
Kit inspired by Material Design.
</h4>
</div>
<div class="md-layout-item md-size-50 md-small-size-100 mx-auto">
<div class="btn-container">
<md-button
href="https://www.creative-tim.com/product/vue-material-kit-pro?ref=utp-vmk-demos"
class="md-button md-success md-lg md-upgrade"
target="_blank"
><md-icon>unarchive</md-icon>Vue Material Kit PRO</md-button
>
<md-button
href="https://www.creative-tim.com/product/vue-material-dashboard-pro?ref=utp-vmd-demos"
class="md-button md-success md-lg md-upgrade"
target="_blank"
><md-icon>unarchive</md-icon>Vue Material Dashboard
PRO</md-button
>
</div>
</div>
</div>
<div class="sharing-area text-center">
<div class="md-layout">
<div class="md-layout-item">
<h3>Thank you for supporting us!</h3>
</div>
</div>
<md-button class="md-twitter"
><i class="fab fa-twitter"></i>Tweet</md-button
>
<md-button class="md-facebook"
><i class="fab fa-facebook-square"></i> Share</md-button
>
<md-button class="md-google"
><i class="fab fa-google-plus"></i> Share</md-button
>
<md-button class="md-github"
><i class="fab fa-github"></i> Star</md-button
>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import BasicElements from "./components/BasicElementsSection";
import Navigation from "./components/NavigationSection";
import SmallNavigation from "./components/SmallNavigationSection";
import Tabs from "./components/TabsSection";
import NavPills from "./components/NavPillsSection";
import Notifications from "./components/NotificationsSection";
import TypographyImages from "./components/TypographyImagesSection";
import JavascriptComponents from "./components/JavascriptComponentsSection";
import { LoginCard } from "@/components";
export default {
components: {
BasicElements,
Navigation,
SmallNavigation,
Tabs,
NavPills,
Notifications,
TypographyImages,
JavascriptComponents,
LoginCard
},
name: "index",
bodyClass: "index-page",
props: {
image: {
type: String,
default: require("@/assets/img/vue-mk-header.jpg")
},
leaf4: {
type: String,
default: require("@/assets/img/leaf4.png")
},
leaf3: {
type: String,
default: require("@/assets/img/leaf3.png")
},
leaf2: {
type: String,
default: require("@/assets/img/leaf2.png")
},
leaf1: {
type: String,
default: require("@/assets/img/leaf1.png")
},
signup: {
type: String,
default: require("@/assets/img/city.jpg")
},
landing: {
type: String,
default: require("@/assets/img/landing.jpg")
},
profile: {
type: String,
default: require("@/assets/img/profile.jpg")
}
},
data() {
return {
firstname: null,
email: null,
password: null,
leafShow: false
};
},
methods: {
leafActive() {
if (window.innerWidth < 768) {
this.leafShow = false;
} else {
this.leafShow = true;
}
}
},
computed: {
headerStyle() {
return {
backgroundImage: `url(${this.image})`
};
},
signupImage() {
return {
backgroundImage: `url(${this.signup})`
};
}
},
mounted() {
this.leafActive();
window.addEventListener("resize", this.leafActive);
},
beforeDestroy() {
window.removeEventListener("resize", this.leafActive);
}
};
</script>
<style lang="scss">
.section-download {
.md-button + .md-button {
margin-left: 5px;
}
}
@media all and (min-width: 991px) {
.btn-container {
display: flex;
}
}
</style>