-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
152 lines (142 loc) · 5.26 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
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="Description" content="Hello TypeScript" />
<link rel="icon" href="./favicon.png" type="image/png" />
<link rel="stylesheet" href="public/style.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<title>Meteo City</title>
</head>
<body>
<!-- Main content area-->
<div class="container-md p-3">
<div class="row d-flex align-items-center">
<!-- 1ST BLOCK : TEXT + FORM-->
<div class="col-md-4 my-3">
<h1 class="mb-4 opacity-90" style="color: hsl(218, 81%, 95%)">
Meteo City
</h1>
<h5 class="mb-4 opacity-80" style="color: hsl(218, 81%, 90%)">
La méteo en France
</h5>
<p class="mb-4 opacity-70" style="color: hsl(218, 81%, 85%)">
Saisir une ville ou utiliser votre position pour découvrir la méteo
du jour.
</p>
<div class="form-group">
<form>
<input
type="text"
class="form-control rounded-pill"
id="inputCity"
placeholder="Paris"
/>
<div class="d-grid gap-2 d-md-block">
<button
type="submit"
id="search-btn"
class="btn btn-white btn-lg rounded-pill me-3 my-3 opacity-80"
data-ripple-color="hsl(218, 41%, 45%)"
style="background-color: whitesmoke"
>
Rechercher
</button>
<button
type="submit"
id="gps-btn"
class="btn btn-white btn-lg rounded-pill me-3 opacity-80 border-white"
data-ripple-color="hsl(218, 41%, 45%)"
style="color: whitesmoke"
>
Utiliser ma position
</button>
</div>
</form>
</div>
</div>
<!-- 1ST BLOCK-END: TEXT + FORM-->
<!-- 2ND BLOCK : METEO CARD-->
<div class="col-md-8">
<div
id="card-custom"
class="card p-5 text-center shadow-6-strong rounded mb-5 text-black"
>
<!--Header: Content Area-->
<div class="card-header form-group">
<h2 class="mb-2 d-flex justify-content-center" id="city"></h2>
<p
class="mb-1 d-flex justify-content-center"
id="description"
></p>
<p
class="display-1 mb-1 d-flex justify-content-center"
id="temp"
></p>
</div>
<!--Body: API Content Area-->
<div class="card-body p-5">
<div class="row">
<div class="col-md-6 d-flex justify-content-center">
<strong>Temperature minimale:</strong>
</div>
<div class="col-md-6 d-flex justify-content-center">
<span id="temp-min"></span>
</div>
</div>
<div class="row">
<div class="col-md-6 d-flex justify-content-center">
<strong>Temperature maximale:</strong>
</div>
<div class="col-md-6 d-flex justify-content-center">
<span id="temp-max"></span>
</div>
</div>
<div class="row">
<div class="col-md-6 d-flex justify-content-center">
<strong>Taux d'humidité:</strong>
</div>
<div class="col-md-6 d-flex justify-content-center">
<span id="humidity"></span>
</div>
</div>
<div class="row">
<div class="col-md-6 d-flex justify-content-center">
<strong>Vitesse du vent: </strong>
</div>
<div class="col-md-6 d-flex justify-content-center">
<span id="wind"></span>
</div>
</div>
<div class="row">
<div class="col-md-6 d-flex justify-content-center">
<strong>Direction du vent: </strong>
</div>
<div class="col-md-6 d-flex justify-content-center">
<span id="wind-direction"></span>
</div>
</div>
</div>
</div>
</div>
<!-- 2ND BLOCK END : METEO CARD-->
</div>
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
<script type="text/javascript" src="dist/bundle.min.js"></script>
</body>
</html>