-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnews.html
248 lines (217 loc) · 5.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Latest News </title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f9f9f9;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h1 {
font-size: 2rem;
color: #333;
}
.header span {
color: #f95b3c;
font-weight: bold;
}
.news-grid {
display: grid;
grid-template-areas:
"card1 card1 card2"
"card3 card4 card4"
"card5 card6 card6";
gap: 20px;
}
.news-card {
background: #fff;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.news-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.news-card-content {
padding: 15px;
}
.news-tag {
color: #f95b3c;
font-weight: bold;
font-size: 0.9rem;
margin-bottom: 10px;
display: inline-block;
}
.news-title {
font-size: 1.2rem;
color: #333;
font-weight: bold;
margin: 10px 0;
}
.news-meta {
font-size: 0.85rem;
color: #777;
margin-top: 10px;
}
.news-meta span {
margin-right: 10px;
}
.newsletter {
margin-top: 40px;
text-align: center;
background: #f95b3c;
color: #fff;
padding: 20px;
border-radius: 10px;
}
.newsletter p {
font-size: 1.1rem;
margin-bottom: 15px;
}
.newsletter input {
padding: 10px;
font-size: 1rem;
border: none;
border-radius: 5px;
margin-right: 10px;
}
.newsletter button {
padding: 10px 20px;
font-size: 1rem;
background: #fff;
color: #f95b3c;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
}
.newsletter button:hover {
background: #ffe3dc;
}
.card1 {
grid-area: card1;
}
.card2 {
grid-area: card2;
}
.card3 {
grid-area: card3;
}
.card4 {
grid-area: card4;
}
.card5 {
grid-area: card5;
}
.card6 {
grid-area: card6;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>Read and <span>explore</span> your knowledge through our news</h1>
</div>
<div class="news-grid">
<!-- News Card 1 -->
<div class="news-card card1">
<img src="img1.png" alt="News 1">
<div class="news-card-content">
<span class="news-tag">#FoodCamp</span>
<div class="news-title">Healthy food and nutrition awareness campaign December</div>
<div class="news-meta">
<span>Date: 23 Dec, 2021</span>
<span>By: Admin</span>
</div>
</div>
</div>
<!-- News Card 2 -->
<div class="news-card card2">
<img src="img2.png" alt="News 2">
<div class="news-card-content">
<span class="news-tag">#WomenRights</span>
<div class="news-title">Stop early marriage and educate your girl child</div>
<div class="news-meta">
<span>Date: 23 Dec, 2021</span>
<span>By: Admin</span>
</div>
</div>
</div>
<!-- News Card 3 -->
<div class="news-card card3">
<img src="img3.png" alt="News 3">
<div class="news-card-content">
<span class="news-tag">#Water</span>
<div class="news-title">Ensure pure and mineral drinking water for rural people</div>
<div class="news-meta">
<span>Date: 23 Dec, 2021</span>
<span>By: Admin</span>
</div>
</div>
</div>
<!-- News Card 4 -->
<div class="news-card card4">
<img src="img3.jpg" alt="News 4">
<div class="news-card-content">
<span class="news-tag">#Work</span>
<div class="news-title">"Work for food" programme for the elder people</div>
<div class="news-meta">
<span>Date: 23 Dec, 2021</span>
<span>By: Admin</span>
</div>
</div>
</div>
<!-- News Card 5 -->
<div class="news-card card5">
<img src="img5.png" alt="News 5">
<div class="news-card-content">
<span class="news-tag">#Education</span>
<div class="news-title">Give children a good education & better life</div>
<div class="news-meta">
<span>Date: 23 Dec, 2021</span>
<span>By: Admin</span>
</div>
</div>
</div>
<!-- News Card 6 -->
<div class="news-card card6">
<img src="img6.png" alt="News 6">
<div class="news-card-content">
<span class="news-tag">#Health</span>
<div class="news-title">Give 10,000+ clothes to the street children</div>
<div class="news-meta">
<span>Date: 23 Dec, 2021</span>
<span>By: Admin</span>
</div>
</div>
</div>
</div>
<div class="newsletter">
<p>To get weekly & monthly news, <strong>Subscribe</strong> to our newsletter.</p>
<input type="email" placeholder="Your email address">
<button>Subscribe</button>
</div>
</div>
</body>
</html>