-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHome.css
395 lines (332 loc) · 6.73 KB
/
Home.css
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
body {
background-color: #232830;
font-family: Arial, sans-serif;
margin: 0;
}
/* NAV */
nav {
width: 100%;
padding: 20px 35px 0px 35px;
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
}
.nav-left {
display: flex;
}
#writing-link {
font-size: 30px;
}
.nav-right {
display: flex;
gap: 15px;
}
nav a {
color: white;
text-decoration: none;
font-size: 18px;
font-family: 'Poppins', sans-serif;
}
.sub-nav {
display: flex;
align-items: center;
gap: 15px;
width: 100%;
}
.nav-link {
font-family: 'Recursive', sans-serif;
color: #909090;
text-decoration: none;
font-size: 19px;
font-style: italic;
white-space: nowrap;
}
.nav-scroll-wrapper {
position: relative;
flex-grow: 1;
overflow: hidden;
margin-left: 30px;
}
.nav-right-scrollable {
display: flex;
gap: 36px;
overflow-x: auto;
max-width: 100%;
scrollbar-width: none;
}
.nav-right-scrollable::-webkit-scrollbar {
display: none;
/* to disable scroller in safari and chrome */
}
.nav-shadow {
position: absolute;
top: 0;
right: 0;
width: 30px;
height: 100%;
background: linear-gradient(to left, rgba(35, 40, 48, 1), rgba(35, 40, 48, 0));
pointer-events: none;
}
.nav-link-icon {
height: 24px;
}
/* NAV END*/
.logo-container {
text-align: center;
margin: 20px 0px 50px 0px;
}
.logo {
height: auto;
width: 159px;
padding-left: 30px;
}
.main-heading {
margin-top: 5px;
margin-bottom: 0px;
font-family: 'Recursive', sans-serif;
font-size: 61px;
font-style: italic;
line-height: 85.2px;
color: #FF7575;
}
.sub-heading {
margin-top: -0.5px;
font-family: 'Poppins', sans-serif;
font-style: italic;
color: #fff9f9;
font-size: 23px;
}
.line1 {
width: 100%;
}
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
padding: 65px 20px 20px 20px;
font-family: 'Poppins';
}
.card {
background-color: white;
border-radius: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
/* Soft shadow for depth */
overflow: hidden;
/* Prevents content from spilling */
width: 325px;
height: 362px;
display: flex;
flex-direction: column;
transition: transform 0.2s ease-in-out;
/*makes the ani more smooth*/
margin: 13px;
}
.card-link {
text-decoration: none;
/* Removes underline */
}
.card:hover {
transform: scale(1.03);
/* Slight zoom on hover for effect */
}
.card-image {
margin: 16px;
}
.card-content {
display: flex;
height: 43%;
/* Ensures full height to allow spacing */
flex-direction: column;
padding: 16px;
}
.card-content h3 {
font-size: 17px;
font-weight: 600;
color: #232830;
margin: 0px;
}
.card-content p {
font-size: 14px;
color: #0F1217;
line-height: 1.5;
}
.card-meta {
font-size: 12px;
font-weight: 500;
color: #0F1217;
display: flex;
gap: 20px;
/* Space between date and category */
margin-top: auto;
/* Pushes the meta content to the bottom */
}
/* Pagination */
.pagination {
font-style: italic;
font-family: 'Recursive', sans-serif;
display: flex;
justify-content: center;
align-items: center;
padding: 34px 20px 20px 20px;
}
.pagination a {
color: #909090;
text-decoration: none;
padding: 8px 12px;
margin: 0 4px;
font-size: 1rem;
transition: color 0.3s;
}
.pagination a:hover {
color: #ff7272;
}
.pagination a.active {
color: #ff7272;
font-weight: bold;
position: relative;
}
.pagination a.active::after {
content: "";
display: block;
height: 2px;
width: 104%;
background-color: #ff7272;
position: absolute;
top: -2px;
left: 2px;
}
/* Pagination */
/* scrollbar */
/* WebKit Scrollbar Styling */
::-webkit-scrollbar {
width: 12px;
height: 12px;
}
::-webkit-scrollbar-track {
background: transparent;
border-radius: 12px;
}
::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #FF7575, #ffb4b4, #707dc1);
border-radius: 12px;
border: 3px solid #000000;
min-height: 199px;
}
::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #FF7575, #ffb4b4, #707dc1);
border: 3px solid #000000;
}
/* scrollbar */
/* Add these to your existing CSS */
.burger-menu {
display: none;
cursor: pointer;
}
.burger-icon {
width: 30px;
height: 20px;
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* Modify your existing media query for mobile */
@media (max-width: 768px) {
.burger-menu {
display: block;
}
.nav-right {
display: none;
position: absolute;
top: 60px;
right: 0;
background-color: #232830;
width: 96px;
padding: 20px;
box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-right.show {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 20px;
}
.burger-icon span {
display: block;
height: 3px;
width: 100%;
background-color: white;
border-radius: 3px;
transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
/* Bouncy effect */
}
.burger-menu.active .burger-icon span:nth-child(1) {
transform: rotate(45deg) translate(6px, 6px);
}
.burger-menu.active .burger-icon span:nth-child(2) {
transform: scaleX(0);
/* Shrink to nothing */
}
.burger-menu.active .burger-icon span:nth-child(3) {
transform: rotate(-45deg) translate(6px, -6px);
}
nav {
padding: 10px 10px 10px 20px;
}
.main-heading {
font-size: 36px;
line-height: 48px;
}
.sub-heading {
font-size: 18px;
}
.card-container {
justify-content: center;
padding: 20px;
}
.card {
width: 100%;
max-width: 280px;
height: auto;
margin: 10px;
}
.card-content h3 {
font-size: 16px;
}
.card-content p {
font-size: 13px;
}
.nav-right-scrollable {
gap: 15px;
max-width: 100%;
}
.logo {
padding-left: 70px;
}
.nav-scroll-wrapper {
margin-left: 0px;
}
}
@media (max-width: 480px) {
.main-heading {
font-size: 28px;
line-height: 38px;
}
.sub-heading {
font-size: 16px;
}
.card {
max-width: 260px;
margin: 8px;
}
.card-content h3 {
font-size: 15px;
}
.card-content p {
font-size: 12px;
}
.card-meta {
font-size: 10px;
}
}