-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
383 lines (325 loc) · 9.93 KB
/
index.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
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body,
html {
height: 100%;
margin: 0;
}
.grid-container {
display: grid;
background-color: black;
height: 100vh;
gap: 5px;
padding: 5px;
}
.gallery-code {
font-size: 18px;
color: #ccc;
margin-bottom: 20px;
}
.view-all {
color: #ffca28;
font-size: 18px;
font-weight: bold;
text-decoration: none;
}
a:hover {
color: #d4a017;
}
.grid-item {
position: relative;
overflow: hidden;
background-size: cover;
background-position: center;
opacity: 0;
transform: scale(0.9);
animation: scaleFade 0.5s ease-out forwards;
}
.grid-item:hover {
transform: scale(1.1);
/* Zoom effect on hover */
}
.item1 {
background-image: url('item1.png');
animation-delay: 0.1s;
}
.item2 {
background-image: url('item2.png');
animation-delay: 0.2s;
}
.item3 {
background-image: url('item3.png');
animation-delay: 0.3s;
}
.item4 {
background-image: url('item4.png');
animation-delay: 0.4s;
}
.item5 {
background-image: url('item5.png');
animation-delay: 0.5s;
}
.item6 {
background-image: url('item6.png');
animation-delay: 0.6s;
}
.item7 {
background-image: url('item7.png');
animation-delay: 0.7s;
}
/*
.gallery-img,
.text-img,
.submenu {
max-width: 100%;
height: auto;
display: block;
} */
@keyframes scaleFade {
to {
opacity: 1;
transform: scale(1);
}
}
/* Desktop layout */
@media screen and (min-width: 769px) {
.grid-container {
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(2, 1fr);
}
.gallery-title {
font-family: 'Niagara Solid', sans-serif;
/* Use Niagara Solid font */
font-size: 150px;
/* Specific size */
font-weight: 400;
/* Font weight */
line-height: 160.62px;
/* Line height */
color: #e53935;
/* Red text color */
margin-bottom: 10px;
text-transform: uppercase;
}
.gallery-code {
font-size: 18px;
display: flex;
align-items: center;
color: #ccc;
margin-bottom: 20px;
}
/* Text section on the right side of the top gallery */
.gallery-info {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
width: 100%;
/* Takes 35% of the width */
padding-left: 20px;
text-align: left;
}
.item1 {
grid-column: 1;
grid-row: 1;
}
.item2 {
grid-column: 2;
grid-row: 1;
}
.item3 {
grid-column: 3 / span 2;
grid-row: 1;
}
.item4 {
grid-column: 1;
grid-row: 2;
}
.item5 {
grid-column: 2;
grid-row: 2;
}
.item6 {
grid-column: 3;
grid-row: 2;
}
.item7 {
grid-column: 4;
grid-row: 2;
}
.gallery-img {
margin: 10% auto auto 7%;
}
.text-img {
margin-top: 3%;
margin-left: 7%;
}
.submenu {
margin: 8% auto 8% 7%;
}
}
/* Tablet and mobile layout (768px and below) */
@media screen and (max-width: 768px) {
/* Grid container setup */
.grid-container {
display: grid;
gap: 10px;
background-color: #000000;
padding: 10px;
grid-template-columns: repeat(4, 1fr);
/* 4 columns on large screens */
height: 100vh;
}
/* General styling for grid items */
.grid-item {
text-align: center;
padding: 20px;
font-size: 30px;
background-size: cover;
background-position: center;
object-fit: cover;
height: 100%;
/* Adjust to fit without overflow */
}
.item1 {
grid-column: 1 / span 2;
/* Span across 2 columns */
grid-row: 1/span 2;
}
.item2 {
grid-column: 3 / span 2;
grid-row: 1/ span 2;
}
.item3 {
grid-column: 3 / span 2;
grid-row: 3 / span 2;
}
.item4 {
grid-column: 1;
grid-row: 3 / span 2;
grid-row: 3/ span 2;
}
.item5 {
grid-column: 2;
grid-row: 3 / span 2;
grid-row: 3/ span 2;
}
.item6 {
grid-column: 1 / span 2;
grid-row: 5/ span 2;
}
.item7 {
grid-column: 3 / span 2;
grid-row: 5/ span 2;
}
/* Adjust the gallery-info to take up full available space */
.gallery-info {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
width: 100%;
height: 100%;
padding-left: 20px;
text-align: left;
box-sizing: border-box;
grid-column: 3 / span 2;
/* Span across all 4 columns */
grid-row: 3 / span 2;
/* Span across two rows */
}
.gallery-title {
font-family: 'Niagara Solid', sans-serif;
/* Use Niagara Solid font */
font-size: 70px;
/* Specific size */
/* Font weight */
display: block;
line-height: 160.62px;
/* Line height */
color: #e53935;
/* Red text color */
margin-bottom: 10px;
text-transform: uppercase;
}
.gallery-code {
display: flex;
flex-direction: column;
/* Stack items vertically */
text-align: center;
word-break: break-word;
/* Break long words */
margin: 0 auto;
/* Center the content */
}
/* .gallery-img,
.text-img,
.submenu {
max-width: 90%;
margin: 10px auto;
} */
/* .gallery-img {
height: 40%;
}
.text-img {
height: 10%;
}
.submenu {
width: 50%;
} */
}
@media screen and (max-width:425px) {
.gallery-title {
font-family: 'Niagara Solid', sans-serif;
/* Use Niagara Solid font */
font-size: 50px;
/* Specific size */
/* Font weight */
display: block;
line-height: 160.62px;
/* Line height */
color: #e53935;
/* Red text color */
margin-bottom: 10px;
text-transform: uppercase;
}
}
/* Further adjustments for very small screens */
/* @media screen and (max-width: 480px) {
.grid-item {
height: 20vh;
}
.item3 {
height: 40vh;
}
.gallery-img { height: 30%; }
.text-img { height: 8%; }
.submenu { width: 60%; }
} */
</style>
</head>
<body>
<div class="grid-container">
<div class="grid-item item1"></div>
<div class="grid-item item2"></div>
<!-- Text section on the right -->
<div class="gallery-info">
<h1 class="gallery-title">Gallery</h1>
<p class="gallery-code">qazwsxedcrfvtgbyhnujmikolp1234567890</p>
<a href="#" class="view-all">View All ></a>
</div>
<div class="grid-item item4"></div>
<div class="grid-item item5"></div>
<div class="grid-item item6"></div>
<div class="grid-item item7"></div>
</div>
</body>
</html>