-
Notifications
You must be signed in to change notification settings - Fork 0
/
welcome.vue
339 lines (303 loc) · 10.8 KB
/
welcome.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
<template>
<v-container v-if="isFetched" class="ma-0 pa-0" fluid>
<!-- Header image -->
<v-row class="ma-0" style="height: 40vh; overflow: hidden; z-index: 1">
<!-- <img src="../src/assets/header.jpg" class="ma-0 rounded-lg" style="max-width: 100%; padding: inherit; object-fit: cover;"/> -->
<v-card class="d-flex flex-column justify-center align-center" :img="pages[0].header" style="height: 40vh; border-radius: 0!important; box-shadow: none!important; width: 100%;">
<v-card-title class="px-4 py-2 white--text rounded-lg" :style="getBgColor()">{{ pages[0].author.name }} Club</v-card-title>
</v-card>
</v-row>
<!-- Profile image -->
<v-row class="d-flex justify-center mx-0" style="width: 100%; margin-top: -6%;">
<img :src="pages[0].profile" class="rounded-circle profile" />
</v-row>
<!-- Headeing text and subtext -->
<v-row class="d-flex flex-column flex-wrap justify-center align-center mt-10 mx-0 mb-0" style="text-align: center">
<h1>{{ pages[0].headingText }}</h1>
<br>
<p style="width: 30%;">{{ pages[0].subheadingText }}</p>
<v-btn :color="pages[0].joinBtnColor" depressed class="rounded-xl px-5 py-6 white--text">Join the club!</v-btn>
</v-row>
<!-- Why Join -->
<v-row class="d-flex flex-column flex-wrap justify-center align-center mt-10 mx-0 mb-0">
<v-card class="d-flex flex-column justify-center align-center" :img="pages[0].whyJoinBg" style="height: 70vh; border-radius: 0!important; box-shadow: none!important; width: 100%;">
<!-- <h1 class="mb-5">Why Join?</h1> -->
<v-card class="rounded-xl shadow px-8 py-4 ma-0" style="width: 50%;">
<v-simple-table>
<template v-slot:default>
<thead>
<tr>
<th class="text-left">
Benefits
</th>
<th class="text-left">
Club Member
</th>
<th class="text-left">
Non-Club Member
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="py-5">Exclusive Content</td>
<td>
<v-chip
class="ma-2"
color="success"
text-color="white"
>
<v-avatar>
<v-icon size="20px">mdi-check</v-icon>
</v-avatar>
</v-chip>
</td>
<td>
<v-chip
class="ma-2"
text-color="grey"
outlined
>
<v-avatar>
<v-icon size="30px" color="grey">mdi-alpha-x</v-icon>
</v-avatar>
</v-chip>
</td>
</tr>
<tr>
<td class="py-5">Behind The Scenes</td>
<td>
<v-chip
class="ma-2"
color="success"
text-color="white"
>
<v-avatar>
<v-icon size="20px">mdi-check</v-icon>
</v-avatar>
</v-chip>
</td>
<td>
<v-chip
class="ma-2"
text-color="grey"
outlined
>
<v-avatar>
<v-icon size="30px" color="grey">mdi-alpha-x</v-icon>
</v-avatar>
</v-chip>
</td>
</tr>
<tr>
<td class="py-5">Monthly Giveawys</td>
<td>
<v-chip
class="ma-2"
color="success"
text-color="white"
>
<v-avatar>
<v-icon size="20px">mdi-check</v-icon>
</v-avatar>
</v-chip>
</td>
<td>
<v-chip
class="ma-2"
text-color="grey"
outlined
>
<v-avatar>
<v-icon size="30px" color="grey">mdi-alpha-x</v-icon>
</v-avatar>
</v-chip>
</td>
</tr>
<tr>
<td class="py-5">Music Release Drops</td>
<td>
<v-chip
class="ma-2"
color="success"
text-color="white"
>
<v-avatar>
<v-icon size="20px">mdi-check</v-icon>
</v-avatar>
</v-chip>
</td>
<td>
<v-chip
class="ma-2"
text-color="grey"
outlined
>
<v-avatar>
<v-icon size="30px" color="grey">mdi-alpha-x</v-icon>
</v-avatar>
</v-chip>
</td>
</tr>
<tr>
<td class="py-5">Absolutley Nothing</td>
<td>
<v-chip
class="ma-2"
text-color="grey"
outlined
>
<v-avatar>
<v-icon size="30px" color="grey">mdi-alpha-x</v-icon>
</v-avatar>
</v-chip>
</td>
<td>
<v-chip
class="ma-2"
color="success"
text-color="white"
>
<v-avatar>
<v-icon size="20px">mdi-check</v-icon>
</v-avatar>
</v-chip>
</td>
</tr>
</tbody>
</template>
</v-simple-table>
</v-card>
<v-btn :color="pages[0].joinBtnColor" depressed class="rounded-xl px-5 py-6 white--text mt-8">Join the club!</v-btn>
</v-card>
</v-row>
<!-- Testimonial -->
<v-row class="d-flex flex-wrap justify-center align-center ma-0">
<v-card class="d-flex justify-center flex-column align-center ma-0 pa-5" style="border-radius: 0; box-shadow: none!important;" color="black">
<v-row class="d-flex white--text justify-center align-center flex-column my-8" style="width: 100%">
<h3>WE LOVE OUR FANS</h3>
<h1 color="lightgray">And they love the club...</h1>
</v-row>
<v-row class="d-flex flex-row ma-0" style="width: 100%;">
<v-col
class="flex-row"
width="100%"
v-for="(review, i) in reviews"
:key="i"
cols=4
>
<v-card class="d-flex rounded-xl shadow pa-10">
<v-row class="ma-0">
<v-column class="d-flex flex-column">
<h3>{{ review.review }}</h3>
<h4><i>{{ review.name }}</i></h4>
</v-column>
</v-row>
</v-card>
</v-col>
</v-row>
</v-card>
</v-row>
<!-- Content Preview -->
<v-row class="d-flex flex-column justify-center align-center ma-0 py-10">
<v-row class="d-flex align-center justify-center ma-0 pb-5">
<h1>UNLOCK EXCLUSIVE CONTENT</h1>
</v-row>
<v-row class="d-flex flex-wrap ma-0 px-10">
<v-col
class="flex-row"
width="100%"
v-for="(review, i) in reviews"
:key="i"
cols=4
>
<v-card min-height="200px" class="d-flex rounded-xl shadow pa-10 align-center justify-center" img="https://images.pexels.com/photos/415829/pexels-photo-415829.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260">
<v-icon x-large>mdi-play-circle</v-icon>
</v-card>
</v-col>
</v-row>
<v-btn :color="pages[0].joinBtnColor" depressed class="rounded-xl px-5 py-6 white--text mt-8">Join the club!</v-btn>
</v-row>
<!-- See you inside -->
<v-row class="d-flex flex-column justify-center align-center ma-0 pt-10">
<v-row class="d-flex align-center justify-center ma-0 pb-10">
<h1>SEE YOU INSIDE!</h1>
</v-row>
<v-row class="d-flex align-center justify-center ma-0">
<img src="../src/assets/header.jpg" style="width: 100%"/>
</v-row>
</v-row>
</v-container>
</template>
<script>
export default {
async fetch() {
console.log(this.$route.query.creator)
this.pages = await this.$store.dispatch('api/listCustomPages', this.$route.query.creator)
this.pages[0].header = await this.$store.dispatch('api/getImage', this.pages[0].header)
this.pages[0].profile = await this.$store.dispatch('api/getImage', this.pages[0].profile)
this.pages[0].whyJoinBg = await this.$store.dispatch('api/getImage', this.pages[0].whyJoinBg)
this.isFetched = true
},
data: () => ({
isFetched: false,
pages: [],
reviews: [
{
img: '../src/assets/profilephoto.jpg',
review: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Arcu, elit, a volutpat enim, massa id. Vestibulum faucibus.',
name: 'Jeffery Witty'
},
{
img: '../src/assets/profilephoto.jpg',
review: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Arcu, elit, a volutpat enim, massa id. Vestibulum faucibus.',
name: 'Jeffery Witty'
},
{
img: '../src/assets/profilephoto.jpg',
review: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Arcu, elit, a volutpat enim, massa id. Vestibulum faucibus.',
name: 'Jeffery Witty'
},
{
img: '../src/assets/profilephoto.jpg',
review: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Arcu, elit, a volutpat enim, massa id. Vestibulum faucibus.',
name: 'Jeffery Witty'
},
{
img: '../src/assets/profilephoto.jpg',
review: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Arcu, elit, a volutpat enim, massa id. Vestibulum faucibus.',
name: 'Jeffery Witty'
},
{
img: '../src/assets/profilephoto.jpg',
review: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Arcu, elit, a volutpat enim, massa id. Vestibulum faucibus.',
name: 'Jeffery Witty'
},
]
}),
methods: {
getBgColor() {
return "background-color: "+this.pages[0].joinBtnColor
},
getPlaceholder(placeholder) {
if(placeholder == "profile") {
console.log("Yo")
return this.$store.dispatch('api/getPlaceholders').profilePlaceholder
} else {
return this.$store.dispatch('api/getPlaceholders').bannerPlaceholder
}
}
}
}
</script>
<style>
.shadow {
box-shadow: 0px 0px 26px 4px rgba(0,0,0,0.15)!important;
}
.profile {
width:12vw;
height:12vw;
object-fit:cover;
z-index: 5;
}
</style>