-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
114 lines (112 loc) · 3.97 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
<!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" />
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
crossorigin="anonymous"
></script>
<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=Raleway:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
<script
src="https://kit.fontawesome.com/a2b0c05f7f.js"
crossorigin="anonymous"
></script>
<script src="https://unpkg.com/[email protected]/dist/axios.min.js"></script>
<link rel="stylesheet" href="css/style.css" />
<title>Weather</title>
</head>
<body>
<div class="container">
<header class="search-bar">
<form class="input-group search-form" id="search-form">
<button
class="btn btn-outline-primary search-button"
id="geolocation-btn"
type="button"
>
<i class="fa-solid fa-location-dot"></i>
</button>
<input
type="search"
placeholder="type city name..."
class="form-control search-input"
id="search-input"
autocapitalize="on"
autocomplete="address-level2"
/>
<button
type="submit"
class="btn btn-outline-primary search-btn search-button"
>
<i class="fa-solid fa-magnifying-glass"></i>
</button>
</form>
</header>
<main>
<div class="title">
<div class="current-location" id="current-location"></div>
<div class="current-date" id="current-date">
Saturday, 17/12/2022 at 19:30
</div>
</div>
<div class="central-data row">
<div class="central-icon col-5 col-md-3">
<img src="" alt="" id="weather-icon" />
<div class="icon-description" id="weather-description"></div>
</div>
<div class="current-temp col-5 col-md-4">
<div class="temp-number" id="current-temp-number"></div>
<div class="temp-description">
feels like <span id="feels-like"></span>°
</div>
</div>
<div class="units col-2 col-md-2">
<span
><a href="#" id="celsius-link" class="active"> °C</a> |
<a href="#" id="fahrenheit-link" class="inactive">°F</a></span
>
</div>
<div class="misc-data align-self-end col-4 col-md-3">
<div class="humidity row">
<div class="rain-icon col-6">
<i class="fa-solid fa-droplet"></i>
</div>
<div class="humidity col-6"><span id="humidity"></span>%</div>
</div>
<div class="wind-speed row">
<div class="wind-icon col-6">
<i class="fa-solid fa-wind"></i>
</div>
<div class="wind-number col-6">
<span id="wind-speed"></span>m/s
</div>
</div>
</div>
</div>
</main>
<hr />
<div class="forecast-row row" id="forecast-row"></div>
<a
href="https://github.com/AijaRe/weather-app-aija"
class="coder"
target="_blank"
><i class="fa-brands fa-github"></i> by Aija Repsa</a
>
</div>
<script src="js/script.js"></script>
</body>
</html>