-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathLanding.vue
417 lines (373 loc) · 12.8 KB
/
Landing.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
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<template>
<div class="landing-page">
<div class="on-mobile">
<div> </div>
<div> </div>
<div> </div>
<div class="mobile-table">
<h3>Check back soon for the mobile version!</h3>
<img class="no-mobile" src="./../../public/icons/sad_puppr.png">
</div>
</div>
<div class="header-landing">
<img class="puppr-logo" src="./../../public/icons/logo.png">
<p :class="choice1" v-on:click="showIntro">
<img class="paws" src="./../../public/icons/matches.png">
Introduction</p>
<p :class="choice2" v-on:click="showFeatures">
<img class="paws" src="./../../public/icons/matches.png">
Features</p>
<p :class="choice3" v-on:click="showAbout">
<img class="paws" src="./../../public/icons/matches.png">
About</p>
</div>
<div class="upper-container">
<div class="info-pages">
<div
class="intro"
v-if="intro && !features && !about"
>
<div class="intro-top">
<h1>Welcome to PuppR!</h1>
<img class="my-logo" src="./../../public/icons/logo.png">
<h3><i>Anything is pawssible</i></h3>
<br>
<p>PuppR is the best place on the internet to meet amazing pups and their owners!</p>
<p>Browse through local dogs and connect with their owners to set up a playdate or a walk.</p>
<p>If you like a dog and their owner likes your dog back, then you will match!</p>
</div>
</div>
<div
v-if="!intro && features && !about"
class="features">
<div class="row1">
<img class="signin-ss" src="./../../public/icons/signin_screen.png">
<div class="column1">
<h3>Sign up</h3>
<p>Make a profile that shows off your pup and their personality!<p>
<p>Upload a picture to show the world.</p>
</div>
</div>
<div class="row2">
<div class="column2">
<h3>Browse</h3>
<p>Use a familiar and intuitive interface to see dogs in your area</p>
<p>and express interest in connecting.</p>
</div>
<img class="browse-ss" src="./../../public/icons/browse_no_text.png">
</div>
<div class="row3">
<img class="match-ss" src="./../../public/icons/match_screen.png">
<div class="column3">
<h3>Matches</h3>
<p>Keep track of your matches in one convenient location.</p>
<p>Display the contact email for matched dogs and make plans to connect.</p>
</div>
</div>
</div>
<div
v-if="!intro && !features && about"
class="about">
<h3>Why PuppR?</h3>
<p>This is our Portfolio Project, concluding our Foundations Year at <a href="https://www.holbertonschool.com/">Holberton School</a>.
We were able to choose who we wanted to work with and what we wanted to work on,
as long as we presented a working program at the end of the three weeks of development.</p>
<p>The idea of PuppR came from the team's passion for dogs.
We know that dogs need to socialize as much as humans and we wanted to create a fun and intuitive interface
to connect dog owners.</p>
<br>
<h4>The Team</h4>
<p>Drew Maring - <a href="https://www.linkedin.com/in/drew-maring-0a7b8b9/">LinkedIn</a>
<a href="/~https://github.com/dmaring">GitHub</a>
<a href="https://twitter.com/drewmaring">Twitter</a></p>
<p>Marc Cavigli - <a href="https://www.linkedin.com/in/marccavigli/">LinkedIn</a>
<a href="/~https://github.com/MCavigli">GitHub</a>
<a href="https://twitter.com/MarcCavigli">Twitter</a></p>
<p>Laura Roudge - <a href="https://www.linkedin.com/in/lauraroudge/">LinkedIn</a>
<a href="/~https://github.com/lroudge">GitHub</a>
<a href="https://twitter.com/LRoudge">Twitter</a></p>
<br>
<h4>Check out the source code for PuppR!</h4>
<a href="/~https://github.com/lroudge/puppr">puppr on GitHub</a>
</div>
</div>
</div>
<router-link class="button-container" :to="{ name: 'login' }">
<img class="login-button" src="./../../public/icons/login_button.png">
</router-link>
</div>
</template>
<script>
export default {
data() {
return {
intro: true,
features: false,
about: false
};
},
methods: {
showIntro() {
this.intro = true;
this.features = false;
this.about = false;
},
showFeatures() {
this.intro = false;
this.features = true;
this.about = false;
},
showAbout() {
this.intro = false;
this.features = false;
this.about = true;
}
},
computed: {
choice1() {
if (this.intro) return "active";
else return "passive";
},
choice2() {
if (this.features) return "active";
else return "passive";
},
choice3() {
if (this.about) return "active";
else return "passive";
}
}
}
</script>
<style scoped>
/* FOR BROWSER */
@media screen and (min-width: 821px) {
.on-mobile {
display: none;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.landing-page {
background-image: url('./../../public/icons/landing_page.png');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
font-family: "Arial Rounded MT Bold";
background-color: #FCF9EA;
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
margin: 0 auto !important;
overflow-x: hidden;
height: 100%;
width: 100%;
}
/* Content for header */
.header-landing {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 70%;
padding: 1em !important;
text-shadow: 1px 1px #6361613b;
}
.header-landing > p:hover {
color: #f8a978;
}
.paws {
height: 37px;
width: 37px;
}
.puppr-logo {
height: 5em;
}
.intro p, .features p, .about p {
font-size: 20px;
color: #ffc5a1;
}
.intro h3, .intro h1, .features h3, .about h3, .about h4 {
color: #f8a978;
}
.intro-top {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
justify-content: center;
align-items: center;
}
.my-logo {
height: 15em;
width: 22em;
margin: 1em 0 !important;
}
.intro-bot p {
font-size: 25px;
color: #ffc5a1;
}
.intro-bot img {
height: 12em !important;
margin-right: 1em !important;
margin-top: 1em !important;
}
.signin-ss {
height: 10em;
}
.match-ss {
height: 12em;
margin-top: -1em !important;
}
.browse-ss {
height: 12em;
margin-top: -4em !important;
/* margin-right: 2em !important; */
}
.row1, .row2 {
width: 100%;
display: flex;
flex-direction: row;
justify-content: flex-start;
}
.row3 {
display: flex;
flex-direction: row;
width: 100%;
justify-content: flex-start;
margin-top: -2em !important;
}
.column1 {
display: flex;
flex-direction: column;
margin-left: 2em !important;
margin-left: 20em;
width: 100%;
}
.column2 {
display: flex;
flex-direction: column;
margin-top: -1em !important;
margin-right: 2em !important;
width: 100%;
text-align: right;
}
.column3 {
display: flex;
flex-direction:column;
margin-top: 2em !important;
margin-left: 2em !important;
}
.upper-container {
width: 100%;
height: 70%;
display: flex;
justify-content: center;
align-items: center;
border-top: 1px solid #ffc5a1;
}
/* Content from different tabs */
.info-pages {
flex-direction: row;
align-items: flex-start;
display: flex;
justify-content: space-evenly;
width: 90%;
height: 90%;
background-color: #fffffff0;
border-radius: 15px;
-webkit-box-shadow: 0px 0px 26px -6px rgba(0,0,0,0.45);
text-shadow: 1px 1px #6361613b;
}
.intro {
display: flex;
flex-direction: column;
height: 100%;
}
.intro, .features, .about {
display: flex;
flex-direction: column;
align-items: baseline;
width: 100%;
padding: 1em !important;
animation: fadeIn 1s;
}
@keyframes fadeIn {
0% {opacity: 0;}
100% {opacity: 1;}
}
.active {
font-size: 28px;
color: #f8a978;
}
.passive {
font-size: 26px;
color: #ffc5a1;
}
/* Button style */
.login-button {
opacity: 0.9;
height: 6em;
padding-right: 5% !important;
}
.login-button:hover {
opacity: 1;
height: 6em;
padding-right: 5% !important;
}
.button-container {
display: flex;
align-content: center;
justify-content: flex-end;
}
}
/* FOR MOBILE */
@media screen and (max-width: 820px) {
.header-landing, .upper-container, .login-button {
display: none;
}
.on-mobile {
background-image: url('./../../public/icons/landing_page_mobile.png');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: "Arial Rounded MT Bold";
background-color: #FCF9EA;
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
margin: 0 auto;
overflow-x: hidden;
height: 100%;
width: 100%;
}
.mobile-table {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 80%;
height: 20%;
background-color: #fffffff0;
border-radius: 15px;
text-shadow: 1px 1px #6361613b;
}
.on-mobile h3 {
text-align: center;
color: #f8a978;
}
.no-mobile {
height: 3em;
}
}
</style>