-
Notifications
You must be signed in to change notification settings - Fork 32
/
index.html
238 lines (213 loc) · 7.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>News.com | Get every news on your fingertips</title>
<link rel="icon" href="Assets\global.ico" />
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
/>
<script src="https://kit.fontawesome.com/f390425e8d.js" crossorigin="anonymous"></script>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<!-- tailwind CSS -->
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/flowbite.min.css"
/>
<script src="https://unpkg.com/[email protected]/dist/flowbite.js"></script>
</head>
<style>
p {
text-align: center;
}
</style>
<body>
<button id = "btnScrollToTop">
<i class = "material-icons">↑</i>
</button>
<div class="preloader"></div>
<!-- nav bar -->
<div class="sticky-top">
<nav class="bg-blue border-gray-200 px-2 sm:px-4 navbar">
<div
class=" navHai container flex flex-wrap justify-between items-center mx-auto"
>
<a href="#" class="flex items-center">
<img src="./Assets/logo.png" class="h-10 sm:h-8" alt="Logo" />
</a>
<button
data-collapse-toggle="navbar-default"
type="button"
class="inline-flex items-center p-2 ml-3 text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
aria-controls="navbar-default"
aria-expanded="false"
>
<span class="sr-only">Open main menu</span>
<svg
class="w-6 h-6"
aria-hidden="true"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
clip-rule="evenodd"
></path>
</svg>
</button>
<div class=" right hidden w-full md:block md:w-auto" id="navbar-default">
<ul
class="flex flex-col align-items-center p-4 bg-gray-50 rounded-lg border border-gray-100 md:flex-row md:space-x-8 md:mt-0 md:border-0 md:bg-white dark:bg-gray-800 md:dark:bg-gray-900 dark:border-gray-700"
>
<li>
<a href="#" class="navBtns" aria-current="page">Home</a>
</li>
<li>
<a class=" dark hoverLink" href="#" class="dark">Trending News</a>
</li>
<li>
<a href="#" class="dark">Dashboard</a>
</li>
<li>
<a href="./world_news.html" class="dark">Explore World</a>
</li>
<li class="sm:mt-9 my-4 -ml-1 md:ml-0">
<a href="./contactform.html" class="contact">Contact Us</a>
</li>
<div class="toggle">
<i class="fa-solid fa-moon toggle-icon"></i>
<i class="fa-solid fa-sun toggle-icon"></i>
<div class="toggle-ball"></div>
</div>
</ul>
</div>
</div>
</nav>
</div>
<!-- <div class="navbar">
<div class="logo">NEWS.com</div>
<ul class="navlinks">
<input type="checkbox" id="checkbox_toggle" />
<label for="checkbox_toggle" class="hamburger">☰</label>
<div class="menu">
<li><a href="#">HOME</a></li>
<li><a href="#">LATEST NEWS</a></li>
<li><a href="#">TOP NEWS</a></li>
<li><a href="world_news.html">WORLD</a></li>
<li><a href="#">CONTACT US</a></li>
</div>
</ul>
</div> -->
<main>
<h1 class="pt-24 Top-Heading text-4xl sm:text-xl">
Top Headlines of <div id="country"></div>
</h1>
<div id="news"></div>
</main>
<!-- <div class="news-section">
<div class="news-heading">
<br>
<h1 class="top">Top Headlines of India
</span> </h1><br>
<br>
</div>
</div> -->
<div class="footer">
<ul class="list1">
<span id="b" class="hovereffect"> <strong>ABOUT</strong> </span
><br />
<li><a href="#" class="hovereffect">About us</a></li>
<li><a href="#" class="hovereffect">Contact us</a></li>
<li><a href="#" class="hovereffect">Privacy Policy</a></li>
<li><a href="#" class="hovereffect">Quick links</a></li>
</ul>
<ul class="list2">
<span id="c" class="hovereffect"><strong>NEWS LINKS</strong></span>
<br />
<li><a href="#" class="hovereffect">Latest News</a></li>
<li><a href="#" class="hovereffect">Live TV</a></li>
<li><a href="#" class="hovereffect">Bollywood News</a></li>
<li><a href="#" class="hovereffect">Politics</a></li>
</ul>
<ul class="list3">
<span id="a" class="hovereffect"><strong>SUPPORT</strong></span
><br />
<li><a href="#" class="hovereffect">FAQ's</a></li>
<li><a href="#" class="hovereffect">Feedback</a></li>
<li><a href="#" class="hovereffect">Help</a></li>
</ul>
</div>
<!-- footer icon -->
<div class="icon-container">
<div class="button">
<div class="icon">
<i class=" social fab fa-facebook-f"></i>
</div>
<span>
Facebook
</span>
</div>
<div class="button">
<div class="icon">
<i class="social fab fa-instagram"></i>
</div>
<span>
Instagram
</span>
</div>
<div class="button">
<div class="icon">
<i class=" social fab fa-github"></i>
</div>
<span>
Github
</span>
</div>
<div class="button">
<div class="icon">
<i class="social fab fa-youtube"></i>
</div>
<span>
YouTube
</span>
</div>
<div class="button">
<div class="icon">
<i class=" social fab fa-linkedin"></i>
</div>
<span>
Linkedin
</span>
</div>
</div>
<div class="footer-content">
<p>© 2022 Copyright News. All Rights Reserved.</p>
</div>
<script src="script.js"></script>
<script>
const btnScrollToTop = document.getElementById("btnScrollToTop");
btnScrollToTop.addEventListener("click", function(){
window.scrollTo({
top: 0,
left: 0,
behavior: "smooth"
});
});
var loader = document.getElementsByClassName("preloader");
window.addEventListener("load", function(){
loader[0].style.display = "none";
})
</script>
</body>
</html>