-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdesign.html
79 lines (78 loc) · 3.21 KB
/
design.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- CSS only -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.card {
width: 80%;
margin: auto;
margin-top: 2rem;
}
img {
height: 20%;
margin-right: 17vh;
}
</style>
<meta charset="UTF-8">
<title>Погода</title>
</head>
<body>
<div class="card">
<form class="card-body form-inline d-flex flex-row" method="POST">
<input type="text" name="query" class="form-control mr-2 flex-grow-1" placeholder="Введите местоположение"/>
<button class="btn btn-primary" type="submit">Поиск</button>
</form>
<div class="card-body d-flex flex-row">
<div class="weather-icon">
<img src="{{ icon }}">
</div>
<div class="weather-info d-flex flex-column flex-grow-1 display-2">
<div class="weather-temperature">
<h2>Температура: {{ temperature }}°C</h2>
</div>
<div class="weather-feelslike">
<h2>Ощущается как: {{ feelslike }}°C</h2>
</div>
</div>
<div class="weather-info d-flex flex-column flex-grow-1 display-2">
<div class="weather-query">
<h2>{{ query_type }} {{ query_name }}</h2>
</div>
<div class="weather-wind-speed">
<h2>Скорость ветра: {{ wind_speed }}км/ч</h2>
</div>
<div class="weather-wind-degree">
<h2>Градус ветра: {{ wind_degree }}°</h2>
</div>
<div class="weather-wind-dir">
<h2>Направление ветра: {{ wind_dir }}</h2>
</div>
<div class="weather-cloudcover">
<h2>Облачность: {{ cloudcover }}%</h2>
</div>
<div class="weather-pressure">
<h2>Атмосферное давление: {{ pressure }} мм.рт.ст.</h2>
</div>
<div class="weather-precip">
<h2>Осадки: {{ precip }} мм.</h2>
</div>
<div class="weather-humidity">
<h2>Влажность: {{ humidity }} г/м куб.</h2>
</div>
<div class="weather-visibility">
<h2>Видимость: {{ visibility }}</h2>
</div>
</div>
</div>
</div>
</body>
</html>