-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (64 loc) · 2.05 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
<!DOCTYPE html>
<html>
<head>
<title>Weather App</title>
<meta charset="UTF-8" />
<link href="src/styles.css" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<form class="col-4" id="search-form">
<input
type="text"
id="city-input"
placeholder="Search location... 🔎"
/>
<input type="submit" value="Search" />
</form>
<button class="col-4" id="curr-loc">Current location</button>
</div>
<div class="city" id="search-city">Moscow</div>
<div id="curr-date"></div>
<div class="row">
<div class="current-t-name col-6">Current temperature</div>
<div class="current-temp col-6">
<span id="curr-temp">-7</span
><span id="units">
<span id="unit-celc">°C</span>
<!-- <span id="weather-emoji">❄</span> -->
</span>
</div>
</div>
<div class="forecast">Forecast</div>
<div class="row">
<div class="tmrw col-2">-10°C</div>
<div class="day2 col-2">-8°C</div>
<div class="day3 col-2">-14°C</div>
<div class="day4 col-2">-20°C</div>
<div class="day5 col-2">-18°C</div>
</div>
<div class="row">
<div class="tmrw col-2">🌨</div>
<div class="day2 col-2">🌤</div>
<div class="day3 col-2">🌫</div>
<div class="day4 col-2">💨</div>
<div class="day5 col-2">❄</div>
</div>
<div class="git-link">
<a href="https://github.com/MariaASokolova/weather-app" target="_blank"
>Open-source code</a
>
by Maria Sokolova
</div>
<script src="src/index.js"></script>
</div>
</body>
</html>