-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (47 loc) · 2.34 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
<!DOCTYPE html>
<html>
<head>
<title>Weather App</title>
<meta charset="UTF-8" />
<script src="https://unpkg.com/axios@1.1.2/dist/axios.min.js"></script>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx"
crossorigin="anonymous"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<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=Space+Mono&display=swap"
rel="stylesheet"
/>
<script src="https://kit.fontawesome.com/4d71709f2a.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="weather">
<div class="container">
<form class="enter" id="search-form" >
<input type="search" id="search-text-input" class="search" autofocus="on" placeholder="Search for city 👀" autocomplete="off">
</form>
<span class="liveTime" id="date"> August 24, 10:00 </span>
<p> <h1>
<i id="exactLocation" class="fa-solid fa-location-arrow"></i> <span id="cityName" class="cityNow"> Athens</span> <img alt="" id="main-icon" src="http://openweathermap.org/img/wn/10d@2x.png"/>
</h1>
<div class="exact-temperature">
<h2>
<span id="temp"> 29</span> </h2> <span class="units"><span href="#" class= "celsius" id="celsius-link">°C</span> |<span href="#" class="Farenheit" id="farenheit-link">°F</span></span></div>
<span class="live"><span id="description" >Sunny</span> - Humidity:<span id="humidity"> 99</span>% - Wind:<span id="wind"> 12</span> km/h</span>
</p>
<div class="weather-forecast" id="forecast"></div>
</div>
</div><br>
<small><span class="footer">Coded by Annamaria. Open-sourced on <a href="https://github.com/annamariakou/weather-app-">Github</a>. Hosted by <a href="https://shiny-fenglisu-a30b72.netlify.app/">Netlify</a>.</span></small>
<script src="index.js"></script>
</body>
</html>