-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnews.html
547 lines (514 loc) · 15.7 KB
/
news.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
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
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> News </title>
<link rel="stylesheet" href="css/products.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
list-style: none;
}
body {
font-family:'Lucida Sans', 'Lucida Sans Regular', sans-serif;
background: transparent;
}
html{
background: #fbf9f9;
font-family: 'poppins', sans-serif;
}
img{
width: 15%;
height: 15%;
}
header{
padding-bottom: 100px;
}
.nav-container{
width: 100%;
height: 110px;
background: linear-gradient(35deg, rgba(0, 0, 0, 0.1), rgba(0,0,0,.1));
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 12px;
z-index: 1;
position: absolute;
}
.nav-container .logo{
width: 800px;
}
.nav-container .logo img{
border-radius: 100%;
}
.hamburger{
display: none;
cursor: pointer;
flex-direction: column;
}
.hamburger .line {
width: 25px;
height: 3px;
background: black;
margin: 4px 0;
}
.navbar ul{
display: flex;
}
.navbar ul li a{
display: block;
color: black;
font-size: 15px;
padding: 10px 25px;
border-radius: 25px;
transition: .5s;
margin: 0 10px;
}
.navbar ul li a:hover{
color: black;
background: white;
}
.news {
background-color: white;
margin-top: 50px;
}
.news h4 {
font-size: 1.6rem;
font-weight: 600;
color: black;
text-align: center;
padding: 60px;
}
.news_card {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.news_card img {
width: 100%;
max-width: 330px; /* Sets the maximum width to 330px */
height: 230px; /* Sets the height to 230px */
object-fit: cover; /* Ensures the image covers the area without distortion */
margin-bottom: 1rem; /* Adds some space between the image and the text */
}
.news_grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
}
.news_details {
width: 100%;
max-width: 330px; /* Ensures text container is the same width as the image */
padding: 1rem;
display: grid;
gap: 1rem;
text-align: center;
}
.news_details p {
font-size: 0.8rem;
color: rgba(0, 0, 0, 0.89);
}
.news_details p i {
font-size: .5rem;
color: black;
padding: 0.5rem;
}
.news_details p span {
font-weight: 600;
}
.news_details h5 {
font-size: 1.2rem;
font-weight: 600;
color: black;
}
.news_details a i {
font-size: 1.2rem;
color: black;
transition: 0.3s;
}
.news_details a:hover i {
color: aquamarine;
}
.testimonial {
margin-top: 100px;
}
.testimonial .testchild {
text-align: center;
padding: 40px 20px;
box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.3);
cursor: pointer;
transition: transform 0.5s;
}
.testchild {
flex-basis: 30%;
min-width: 250px;
margin-bottom: 30px;
}
.testimonial .testchild img {
width: 50px;
margin-top: 20px;
border-radius: 50%;
}
.testimonial .testchild:hover {
transform: translateY(-10px);
}
.fa.fa-quote-left {
font-size: 40px;
}
.testchild p {
font-size: 14px;
margin: 12px 0;
}
.testimonial .testchild h3 {
font-weight: 600;
font-size: 16px;
}
.child {
margin: 30px auto;
display:flex;
align-items: center;
flex-wrap: wrap;
justify-content: space-around;
}
.small-container {
max-width: 1380px;
margin: auto;
padding-left: 25px;
padding-right: 25px;
}
/*footer*/
.footer {
padding: 30px 80px 90px;
background: #241816;
margin-top: 120px;
color: white;
}
.footer-box {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.footer-i {
flex: 1;
margin: 20px;
min-width: 200px; /* Ensures the items don't get too narrow on small screens */
}
.footer-i h4 {
margin-bottom: 15px;
font-size: 19px;
}
.footer-i p {
margin-bottom: 5px;
font-size: 14px;
color: rgb(137, 130, 130);
}
/* Remove the relative positioning for f3 and f4 to align them properly */
.footer-i.f3, .footer-i.f4 {
position: static;
}
.footer-i.f4 p {
width: 100%; /* Make sure the width is appropriate for responsiveness */
line-height: 22px;
}
.subscribe-form {
display: flex;
margin-top: 20px;
}
.subscribe-form input {
flex: 1;
padding: 12px 30px;
border: none;
outline: none;
}
.subscribe-form button {
padding: 12px;
background: white;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.footer-i.f4 .social-media {
margin-top: 30px;
display: flex;
gap: 10px; /* Adds space between icons */
}
.footer-i.f4 .social-media a {
display: flex;
align-items: center;
justify-content: center;
text-decoration: none; /* Remove the underline from links */
}
.footer-i.f4 .social-media a i {
color: white;
font-size: 19px;
border-radius: 50%;
transition: all .3s ease-in-out;
padding: 13px;
}
.footer-i.f4 .social-media a i:hover {
background: white;
color: black;
}
.belowfooter {
text-align: center;
border-top: 3px solid rgb(66, 66, 66);
padding-top: 2em;
}
/* Media Queries */
@media (max-width: 1024px) {
.nav-container .logo {
width: 600px;
}
.childprods {
flex-basis: 30%;
padding: 30px;
}
}
@media (max-width: 835px) {
.footer-box .footer-i.f3 {
position: static;
}
}
@media (max-width: 768px) {
.nav-container .logo {
width: 400px;
}
.childprods {
flex-basis: 45%;
padding: 20px;
}
.navbar ul {
flex-direction: column;
align-items: center;
}
.navbar ul li a {
margin: 5px 0;
}
}
@media (max-width: 480px) {
.hamburger {
display: flex;
}
.navbar {
display: none;
flex-direction: column;
align-items: center;
width: 100%;
background: rgba(255, 255, 255, 0.9);
position: absolute;
top: 100px;
left: 0;
z-index: 1;
}
.navbar.active {
display: flex;
}
.news_grid {
grid-template-columns: 1fr; /* Single column layout for smaller screens */
gap: 2rem;
}
.footer-box {
flex-direction: column;
align-items: center;
}
.footer-box .footer-i {
margin-bottom: 30px;
}
.footer-box .footer-i.f3,
.footer-box .footer-i.f4 {
margin-bottom: 20px;
}
}
@media (max-width: 450px) {
.footer-box .footer-i.f3 {
position: static;
margin: 20px 0;
}
.footer-i.f4 .social-media a i {
font-size: 17px;
padding: 11px;
}
}
</style>
</head>
<body>
<header>
<div class="nav-container">
<div class="logo">
<img src="Images/logo.jpg" alt="logo">
</div>
<div class="hamburger">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<nav class="navbar">
<ul>
<li><a href="index.html">Trends</a></li>
<li><a href="category.html">Category</a></li>
<li><a href="products.html">products</a></li>
<li><a href="news.html">News</a></li>
</ul>
</nav>
</div>
</header>
<section class="news">
<div class="section_container news_container">
<h4 class="section_tittle">Latest News</h4>
<div class="news_grid">
<div class="news_card">
<img src="Images/1694075981937.jpg" alt="news">
<div class="news_details">
<p>FASHION <i class="fa-solid fa-circle"></i>
<span>LOIS VULTON</span>
<i class="fa-solid fa-circle"></i> JUNE,1 2024
</p>
<h5>Seasonal Trends</h5>
<hr>
<p>
Discuss the latest fashion trends for the current season and offer tips and ideas
on how to incorporate these trends into your wardrobe.
</p>
<a href="#"><i class="fa-solid fa-arrow-right"></i></a>
</div>
</div>
<div class="news_card">
<img src="Images/1694721188792.jpg" alt="news">
<div class="news_details">
<p>
Trends <i class="fa-solid fa-circle"></i>
<span>LOIS VULTON</span>
<i class="fa-solid fa-circle"></i> JUNE,12 2024
</p>
<h5>Fashion Tips and Advise</h5>
<hr>
<p>
Provide your reader with practical tips and advice on how to
dress on different occasions, body types, or style preferences.
</p>
<a href="#"><i class="fa-solid fa-arrow-right"></i></a>
</div>
</div>
<div class="news_card">
<img src="Images/shoe 9.jpg" alt="news">
<div class="news_details">
<p>
STYLE <i class="fa-solid fa-circle"></i>
<span>GUCCI</span>
<i class="fa-solid fa-circle"></i>JUNE,20 2024
</p>
<h5>Sustainable Fashion</h5>
<hr>
<p>
Cover the growing trend of eco-conscius fashion and explore the
various ways to be sustainable in your fashion choices.
</p>
<a href="#"><i class="fa-solid fa-arrow-right"></i></a>
</div>
</div>
<div class="testimonial">
<div class="small-container">
<h3><i class="fa fa-quote-left"></i>  See what our clients say about us -</h3>
<div class="child">
<div class="testchild">
<p>Absolutely loved the fine hoodies I brought from this place. 11/10 would buy from here again.</p>
<div class="icons">
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
</div>
<img src="Images/JUMA.jpg">
<h3>Ali Katite</h3>
</div>
<div class="testchild">
<p> My ooh my!. This site is Absolutely amazing. I can't wait shopping with you again.</p>
<div class="icons">
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
</div>
<img src="Images/discount.jpg">
<h3>Yassir Nyongesa</h3>
</div>
<div class="testchild">
<p>No wonder this site is so popular! It has the best prices in the city and really like the styles.</p>
<div class="icons">
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
</div>
<img src="Images/GRA.jpg">
<h3>Samir Ezekiel</h3>
</div>
</div>
</div>
</section>
<div class="footer">
<div class="footer-box">
<div class="footer-i f1">
<h4>About Us</h4>
<p>Trend Clothes is a modern online shopping platform dealing with all kinds of clothes.
We range from women, men, and children. At Trends Clothes,
we value our customers and we are here to serve you.
Come and experience the magic of trends with us!</p>
</div>
<div class="footer-i f2">
<h4>Visit Us</h4>
<p>Getting Here</p>
<p>Our Supporters</p>
<p>Sitting Charts</p>
<p>Staff Directory</p>
<p>Current Season</p>
<p>Donor Events</p>
</div>
<div class="footer-i f3">
<h4>Contact Us</h4>
<p>Address: 155 Uwanja Wa Ndege, Mazeras, Kenya</p>
<p>Email: [email protected]</p>
<p>Phone: +254714263178</p>
</div>
<div class="footer-i f4">
<h4>Subscribe</h4>
<form class="subscribe-form">
<input type="email" placeholder="Email Address">
<button type="submit"><i class="fa fa-envelope"></i></button>
</form>
<div class="social-media">
<a href="#"><i class="fa-brands fa-instagram"></i></a>
<a href="#"><i class="fa-brands fa-youtube"></i></a>
<a href="#"><i class="fa-brands fa-linkedin"></i></a>
<a href="#"><i class="fa-brands fa-twitter"></i></a>
<a href="#"><i class="fa-brands fa-facebook"></i></a>
</div>
</div>
</div>
</div>
<div class="belowfooter">
<p>© 2024 Trends Fashions. All rights reserved.</p>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const hamburger = document.querySelector('.hamburger');
const navbar = document.querySelector('.navbar');
hamburger.addEventListener('click', function() {
hamburger.classList.toggle('active');
navbar.classList.toggle('active');
});
});
</script>
</body>
</html>