-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurrent affairs.html
174 lines (166 loc) · 5.27 KB
/
current affairs.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Current Affairs</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f5f5f5;
color: #333;
}
header {
background-color: #007BFF;
padding: 20px 0;
text-align: center;
color: #fff;
}
h1 {
font-size: 48px;
margin: 30px 0;
text-transform: uppercase;
letter-spacing: 2px;
color: #333;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
display: grid;
grid-gap: 20px;
}
.news-item {
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
background-color: #fff;
transition: transform 0.3s ease;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr auto;
min-height: 200px;
cursor: pointer;
}
.news-item:hover {
transform: translateY(-5px);
}
.news-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
color: #007BFF;
grid-column: 1;
}
.news-date {
font-size: 14px;
font-style: italic;
color: #888;
grid-column: 1;
}
.news-content {
line-height: 1.8;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
grid-column: 1;
opacity: 0.8;
}
.news-content:hover {
opacity: 1;
}
.read-more {
padding: 8px 12px;
background-color: #007BFF;
color: #fff;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s ease;
justify-self: end;
}
.read-more:hover {
background-color: #0056b3;
}
.mobile-menu {
display: none;
justify-content: center;
align-items: center;
background-color: #007BFF;
color: #fff;
position: fixed;
top: 0;
right: 0;
height: 60px;
width: 60px;
border-radius: 0 0 0 10px;
cursor: pointer;
z-index: 1000;
}
.mobile-menu span {
font-size: 20px;
}
@media (max-width: 600px) {
h1 {
font-size: 36px;
margin: 20px 0;
}
.news-title {
font-size: 24px;
}
.news-date {
font-size: 12px;
}
.news-item {
min-height: 180px;
}
.mobile-menu {
display: flex;
}
.container {
padding-top: 80px;
}
}
</style>
</head>
<body>
<header>
<h1>Current Affairs</h1>
</header>
<div class="container">
<div class="news-item">
<div class="news-title">Forest Conservation (Amendment) Bill</div>
<div class="news-date">22 July 2023</div>
<div class="news-content">
The Forest Conservation (Amendment) Bill of 2023 is scheduled for introduction in the upcoming Monsoon session of Parliament. This proposed legislation, introduced by the Minister of Environment, Forest and Climate Change and Labour and Employment, seeks to bring about changes ..
</div>
<a href="#" class="read-more">Read More →</a>
</div>
<div class="news-item">
<div class="news-title">Price Stabilisation Fund</div>
<div class="news-date">22 July 2023</div>
<div class="news-content">
To address the current surge in tomato prices and ensure affordability for consumers, the government has initiated the procurement of tomatoes through the Price Stabilisation Fund (PSF). These tomatoes are being provided to consumers at significantly subsidized rates. ContentsEstablishment and ..
</div>
<a href="#" class="read-more">Read More →</a>
</div>
<!-- Add more news items as needed -->
</div>
<!-- Mobile Menu -->
<div class="mobile-menu">
<span>☰</span>
</div>
<script>
// Toggle Mobile Menu
const mobileMenu = document.querySelector('.mobile-menu');
const container = document.querySelector('.container');
mobileMenu.addEventListener('click', () => {
container.classList.toggle('menu-open');
});
</script>
</body>
</html>