-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
248 lines (226 loc) · 8.19 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
239
240
241
242
243
244
245
246
247
248
<!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>Global News Finder</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/components.min.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Exo+2&family=Zen+Antique+Soft&display=swap" rel="stylesheet">
<link rel="stylsheet" href="assets/css/app.css" />
<!-- open layers maps script -->
<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.9.0/build/ol.js"></script>
<!-- map styles for open layers maps -->
<style>
.map {
height: 400px;
width: 100%;
}
</style>
<!-- COMMENTED OUT ORIGINALLY -->
<!-- <link rel="stylesheet" href="./assets/css/stylesheet.css"> -->
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css"> -->
<!-- COMMENTED OUT ORIGINALLY -->
<!-- Shayne's Section -->
<!-- <script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&callback=initAutocomplete&libraries=places&v=weekly&channel=2"
async
></script> -->
<!-- Shayne's Section -->
<!-- <script src="./assets/js/script.js"></script> -->
<style>
.container {
max-width: 100vw;
}
article {
display: none;
}
</style>
</head>
<body>
<!-- Creating header -->
<div class="
container
w-full
max-w-full
container
flex flex-col
bg-blue-500
">
<!-- min-h-screen sm:max-w-full md:max-w-full lg:max-w-full -->
<!-- bg-gradient-to-r from-gray-400 to-green-500 sm:flex md:flex lg:flex -->
<header class="justify-center flex-row">
<h1 class="text-center text-2xl xl:text-9xl lg:text-7xl md:text-5xl sm:text-base">
Global News Finder
<!-- sm:h-full sm:w-36 md:h-full md:w-48 lg:w-50 lg:text-2xl md:text-2xl -->
</h1>
</header>
<!-- creating description -->
<section class="
shadow
flex-1
bg-white
p-2
bg-gradient-to-r
from-green-400
to-blue-500
border-black border-2
shadow-2xl
rounded-2xl
">
<p class="twelve columns sm:text-sm md:text-xl lg:text-3xl text-center">
This is an app that will allow tourists to find info and news on countries. Select a country!
</p>
</section>
<section class="flex flex-row pt-10 text-center justify-center">
<select onchange="selectCountry()" class="
h-16
w-52
md:w-52
p-2
rounded-2xl
bg-gradient-to-r
from-gray-400
to-white-500
border-black border-2
lg:h-24 lg:w-60 lg:text-2xl
">
<option>🇮🇳India</option>
<option>🇺🇸USA</option>
<option>🇦🇺Australia</option>
<option>🇷🇺Russia</option>
<option>🇫🇷France</option>
<option>🇬🇧United Kingdom</option>
</select>
<!-- <button
class="
bg-gradient-to-r
from-gray-200
to-white-800
p-2
ml-10
rounded-xl
hover:bg-blue-900 hover:text-white
border-black border-2
"
>
Get Info
</button> -->
</section>
<!-- article or content -->
<article id="main" class="
country-info
sm:max-w-full
p-2
sm:w-36
md:w-screen
mt-10
rounded-2xl
bg-gradient-to-r
from-green-400
to-blue-500
border-black border-2
shadow-2xl
">
<h2 class="md:text-4xl sm:text-7xl font-semibold text-center">
</h2>
<!-- Current Country data -->
<div class="flex flex-row justify-around lg:text-3xl">
<ul>
<li><b>Currency:</b></li>
<li><b>Language:</b></li>
<li><b>Capital:</b></li>
<li><b>Population:</b></li>
</ul>
<ul id="change">
</ul>
</div>
<!-- Country flag and coat of arms -->
<div class="flex flex-row sm:justify-center md:justify-around" id="flagCoat">
<img alt="" id="flag" class="flag flex-1" src="#" width=" 50px " />
<img alt="" id="coatOfArms" class="coat-of-arms flex-1" src="#" width="50px " />
</div>
</article>
<!-- google map -->
<div class="flex justify-center">
<!-- Shayne's Section -->
<div id="map" style="height:400px; width: 800px;"></div>
<!-- <iframe
class="m-auto"
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d184552.57290182926!2d-79.51814296517412!3d43.718155660701214!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89d4cb90d7c63ba5%3A0x323555502ab4c477!2sToronto%2C%20ON!5e0!3m2!1sen!2sca!4v1638043550092!5m2!1sen!2sca "
width="200px"
height="200px"
allowfullscreen=" "
loading="lazy "
></iframe> -->
<div id="popup" class="ol-popup">
<a href="#" id="popup-closer" class="ol-popup-closer"></a>
<div id="popup-content"></div>
</div>
</div>
<!-- News list -->
<div class="flex flex-col bg-blue news-section">
<div class="flex flex-row">
<img src="" style="width: 100px; padding-left: 12px; padding-right: 12px" class='pl-1' />
<div class="flex flex-col">
<h2></h2>
<p></p>
<p></p>
</div>
</div>
<div class="flex flex-row">
<img src="" style="width: 100px; padding-left: 12px; padding-right: 12px" class='pl-1' />
<div class="flex flex-col">
<h2></h2>
<p></p>
<p></p>
</div>
</div>
<div class="flex flex-row border-t-21">
<img src="" style="width: 100px; padding-left: 12px; padding-right: 12px" class='pl-1' />
<div class="flex flex-col">
<h2></h2>
<p></p>
<p></p>
</div>
</div>
</div>
<!-- footer -->
<footer class="flex flex-col p-2 flex-wrap text-sm md:text-2xl
shadow
flex-1
bg-white
p-2
bg-gradient-to-r
from-green-400
to-blue-500
border-black border-2
shadow-2xl
rounded-2xl">
<h3 class="font-semibold">Reference:</h3>
<ul>
<li>BBC News</li>
</ul>
<h3>Api Source</h3>
<ul>
<li>https://github.com/SauravKanchan/NewsAPI</li>
<li>REST Countries API</li>
</ul>
</footer>
<!-- Shayne's Section -->
<!-- <input
id="pac-input"
class="controls"
type="text"
placeholder="Search Box"
/>
<div id="map"></div> -->
</body>
<!-- Shaynes script -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&callback=initAutocomplete&libraries=places&v=weekly&channel=2" async></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="./assets/js/script.js"></script>
</html>