forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMedia.vue
More file actions
99 lines (85 loc) · 2.42 KB
/
Media.vue
File metadata and controls
99 lines (85 loc) · 2.42 KB
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
<template>
<div class="q-pa-md row items-start q-gutter-md">
<q-card class="my-card">
<img src="https://cdn.quasar.dev/img/mountains.jpg">
<q-card-section>
<div class="text-h6">Our Changing Planet</div>
<div class="text-subtitle2">by John Doe</div>
</q-card-section>
<q-card-section class="q-pt-none">
{{ lorem }}
</q-card-section>
</q-card>
<q-card class="my-card">
<q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
<div class="absolute-bottom text-subtitle2 text-center">
Title
</div>
</q-img>
</q-card>
<q-card class="my-card">
<q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
<div class="absolute-bottom text-h6">
Title
</div>
</q-img>
<q-card-section>
{{ lorem }}
</q-card-section>
</q-card>
<q-card class="my-card">
<q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
<div class="text-subtitle2 absolute-top text-center">
Title
</div>
</q-img>
</q-card>
<q-card class="my-card">
<q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
<div class="text-h5 absolute-bottom text-right">
Title
</div>
</q-img>
</q-card>
<q-card class="my-card">
<q-item>
<q-item-section avatar>
<q-avatar>
<img src="https://cdn.quasar.dev/img/avatar2.jpg">
</q-avatar>
</q-item-section>
<q-item-section>
<q-item-label>Title</q-item-label>
<q-item-label caption>Subhead</q-item-label>
</q-item-section>
</q-item>
<img src="https://cdn.quasar.dev/img/parallax2.jpg">
</q-card>
<q-card class="my-card">
<q-img src="https://cdn.quasar.dev/img/parallax2.jpg">
<div class="absolute-bottom">
<div class="text-h6">Our Changing Planet</div>
<div class="text-subtitle2">by John Doe</div>
</div>
</q-img>
<q-card-actions>
<q-btn flat>Action 1</q-btn>
<q-btn flat>Action 2</q-btn>
</q-card-actions>
</q-card>
</div>
</template>
<script>
export default {
setup () {
return {
lorem: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
}
}
}
</script>
<style lang="sass" scoped>
.my-card
width: 100%
max-width: 250px
</style>