-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtemp.txt
232 lines (207 loc) · 5.06 KB
/
temp.txt
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
PROFILE ERRORS
<!-- <div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div> -->
<?php
if(count($errors) == 1) {
?>
<div class="alert alert-danger alert-dismissable fade show text-center col-8 m-2 position-absolute d-flex justify-content-between align-items-center overflow-hidden">
<div class="d-flex justify-content-center align-items-center">
<?php
foreach($errors as $showerror) echo $showerror;
?>
</div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<?php
}elseif(count($errors) > 1){ ?>
<div class="d-flex justify-content-center overflow-hidden">
<div class="alert alert-danger alert-dismissable fade show text-center col-8 m-2 d-flex justify-content-between align-items-center">
<div class="d-flex justify-content-center align-items-center">
<?php
foreach($errors as $showerror){
?>
<li class="pl-2"><?php echo $showerror; ?></li>
<?php
}
?>
</div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
</div>
<?php
}
?>
PROFILE JS
//not working properly so kept for later, to check if correct file type else show error
// function validateImgFileType() {
// var fileName = profilePicInput.value;
// var idxDot = fileName.lastIndexOf('.') + 1;
// var extFile = fileName.substr(idxDot, fileName.length).toLowerCase();
// console.log(extFile);
// if (extFile != 'jpg' || extFile != 'jpeg' || extFile != 'png') {
// showError('Invalid file type. Only jpg, jpeg and png supported.');
// }
// }
// function showError(err) {
// positiveMessage.style.display = 'none';
// setTimeout(() => {
// errorMessage.innerHTML = err;
// errorMessage.style.display = 'block';
// }, 3000);
// errorMessage.style.display = 'none';
// positiveMessage.style.display = 'block';
// }
// no use adding this condition, will try later if required
// function showError(error) {
// if (error.code == error.PERMISSION_DENIED) {
// Array.from(alerts).forEach((alert) => {
// alert.classList.toggle('d-none');
// });
// }
// }
CSS
*,
*:before,
*:after {
box-sizing: border-box;
padding: 0;
margin: 0;
}
/* body {
background: #ccfbfe;
font-family: sans-serif;
} */
.tinder {
width: 100vw;
height: calc(100vh - 86px);
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
opacity: 0;
transition: opacity 0.1s ease-in-out;
}
.loaded.tinder {
opacity: 1;
}
.tinder--status {
position: absolute;
top: 50%;
margin-top: -30px;
z-index: 2;
width: 100%;
text-align: center;
pointer-events: none;
}
.tinder--status i {
font-size: 100px;
opacity: 0;
transform: scale(0.3);
transition: all 0.2s ease-in-out;
position: absolute;
width: 100px;
margin-left: -50px;
}
.tinder_love .fa-heart {
opacity: 0.7;
transform: scale(1);
}
.tinder_nope .fa-times {
opacity: 0.7;
transform: scale(1);
}
.tinder--cards {
flex-grow: 1;
padding-top: 40px;
text-align: center;
display: flex;
justify-content: center;
align-items: flex-end;
z-index: 1;
}
.tinder--card {
display: inline-block;
width: 90vw;
max-width: 400px;
height: 70vh;
background: #ccfbfe;
padding-bottom: 40px;
border-radius: 8px;
overflow: hidden;
position: absolute;
will-change: transform;
transition: all 0.3s ease-in-out;
cursor: -webkit-grab;
cursor: -moz-grab;
cursor: grab;
}
.tinder--card:hover {
filter: brightness(95%);
}
.moving.tinder--card {
transition: none;
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
cursor: grabbing;
}
.tinder--card img {
max-width: 100%;
pointer-events: none;
}
.tinder--card h3 {
margin-top: 32px;
font-size: 32px;
padding: 0 16px;
pointer-events: none;
position: absolute;
top: 60%;
color: #fff;
}
.tinder--card p {
margin-top: 24px;
font-size: 20px;
padding: 0 16px;
pointer-events: none;
position: absolute;
top: 70%;
color: #fff;
}
.tinder--buttons {
flex: 0 0 100px;
text-align: center;
padding-top: 20px;
}
.tinder--buttons button {
border-radius: 50%;
line-height: 60px;
width: 60px;
border: 0;
/* background: #ffffff; */
background: #ccfbfe;
display: inline-block;
margin: 0 8px;
}
.tinder--buttons button:focus {
outline: 0;
}
.tinder--buttons button:hover {
filter: brightness(95%);
}
.tinder--buttons i {
font-size: 32px;
vertical-align: middle;
}
.fa-heart {
color: #fface4;
}
.fa-times {
color: #cdd6dd;
}
.cards-over {
width: 100vw;
height: calc(100vh - 86px);
}