-
Notifications
You must be signed in to change notification settings - Fork 1
/
57-loadMore.html
309 lines (236 loc) Β· 5.67 KB
/
57-loadMore.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Search images</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"
integrity="sha384-xeJqLiuOvjUBq3iGOjvSQSIlwrpqjSHXpduPd6rQpuiM3f5/ijby8pCsnbu5S81n" crossorigin="anonymous" />
<style>
/* @mixin mobile {
@media screen and (min-width: 320px) {
@content;
}
}
@mixin tablet {
@media screen and (min-width: 768px) {
@content;
}
}
@mixin desktop {
@media screen and (min-width: 1200px) {
@content;
}
} */
.header {
position: fixed;
top: 0;
left: 0;
z-index: 20;
width: 100vw;
height: 4.0625rem;
background: radial-gradient(circle 610px at 5.2% 51.6%, rgb(235, 215, 251) 0%, rgb(225, 225, 255) 97.5%) no-repeat fixed;
}
.header-container {
padding-top: .625rem;
padding-bottom: .625rem;
}
.search-form {
display: flex;
align-items: center;
margin: 0 auto;
max-width: 37.5rem;
}
.search-form-input {
flex-grow: 1;
padding: .3125rem .9375rem;
max-width: 37.5rem;
width: 20rem;
height: 2.75rem;
border: none;
outline: none;
border-radius: 2.5rem;
background-color: #ebecf0;
color: #AE1100;
text-shadow: 1px 1px 1px #fff;
font-weight: 600;
font-size: .875rem;
letter-spacing: .075rem;
box-shadow: inset 2px 2px 3px #babecc, inset -3px -3px 7px #fff;
transition: all 0.2s ease-in-out;
}
.search-form-btn {
display: flex;
align-items: center;
margin-left: .625rem;
padding: .625rem 1.25rem;
max-width: 9.375rem;
height: 2.5rem;
border: 0;
outline: 0;
border-radius: 320px;
cursor: pointer;
color: #AE1100;
text-shadow: 1px 1px 1px #fff;
text-transform: capitalize;
font-weight: 600;
box-shadow: -5px -5px 20px #fff, 5px 5px 20px #babecc;
transition: all 0.2s ease-in-out;
}
.search {
margin-right: .625rem;
fill: #AE1100;
}
.gallery {
padding-top: 2.5rem;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: .625rem;
}
.photo-gallery.container {
padding-left: .9375rem;
padding-right: .9375rem;
padding-bottom: 1.5625rem;
}
.card-link {
width: 100%;
flex-basis: calc((100% - 60px) / 4);
box-shadow: 10px 10px 18px -12px rgb(115, 120, 175);
background: radial-gradient(circle 610px at 5.2% 51.6%, rgba(247, 237, 255, 0.625) 0%, rgba(237, 237, 255, 0.668) 97.5%) no-repeat fixed;
transition: transform 250ms linear;
}
.photo-card {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
justify-content: space-evenly;
}
.photo {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.info {
display: flex;
justify-content: center;
align-items: center;
gap: .625rem;
padding: .9375rem;
width: 100%;
font-size: .8125rem;
background: radial-gradient(circle 610px at 5.2% 51.6%, rgba(245, 237, 251, 0.767) 0%, rgba(238, 238, 253, 0.699) 97.5%) no-repeat fixed;
}
.info-item {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
height: 100%;
text-align: center;
background-color: transparent;
color: #8e8cc0;
text-shadow: 1px 1px 1px #FFF;
@media screen and (min-width: 480px) {
font-size: .75rem;
}
}
p {
margin: 0;
padding: 0;
}
img {
display: block;
max-width: 100%;
height: auto;
}
a {
text-decoration: none;
}
.container {
width: 100%;
margin: 0 auto;
padding-left: 20px;
padding-right: 20px;
@media screen and (min-width: 480px) {
max-width: 550px;
}
/* @include tablet {
max-width: 1024px;
padding-left: 32px;
padding-right: 32px;
}
@include desktop {
width: 100%;
max-width: 1280px;
} */
}
.info-item-likes {
display: flex;
flex-direction: row;
align-items: center;
}
.box-likes {
display: flex;
flex-direction: column;
align-items: center;
}
.is-hidden {
visibility: hidden;
opacity: 0;
pointer-events: none;
}
.load-more {
display: block;
margin: 0 auto;
margin-top: 1.25rem;
margin-bottom: 3.125rem;
width: 9.375rem;
padding: .625rem;
}
ul {
list-style-type: none;
}
</style>
</head>
<body>
<div class="preloader">
<!-- <svg class="preloader__image" role="img" width="40" height="40" aria-label="search">
<use class="icon-heart" href="./images/symbol-defs.svg#icon-heart-fill"></use>
</svg> -->
<span class="loader"></span>
</div>
<!-- HEADER -->
<header class="header">
<div class="container header-container">
<form class="search-form" id="search-form">
<input class="search-form-input" type="text" name="searchQuery" autocomplete="off"
placeholder = "Search images..." />
<button class="search-form-btn" type="submit">
<svg class="search" width="20" height="20" aria-label="search">
<use class="icon-search" href="./images/symbol-defs.svg#icon-search"></use>
</svg>
Search
</button>
</form>
</div>
</div>
</header>
<!-- GALLERY -->
<section class="photo-gallery container">
<!-- gallery -->
<div class="gallery">
<!-- ΠΠ°ΡΡΠΊΠΈ Π·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½Ρ -->
</div>
</section>
<!-- <button type="button" class="load-more is-hidden">Load more</button> -->
<button type="button" class="load-more is-hidden">Load more</button>
<div class="backdrop is-hidden" data-load>
<div class="spinner js-spinner"><span></span></div>
</div>
<script src="./app/57-loadMore.js" type="module"></script>
</body>
</html>