-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (40 loc) · 1.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Roboto font -->
<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=Roboto:wght@300;500;700&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="./public/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<title>Weather App - Vanilla JS</title>
</head>
<body>
<div class="container">
<!-- HEADER -->
<form data-js="form" class="form">
<h1>Weather Information</h1>
<img data-js="logo" src="./public/logo.png" width="300px" alt="logo weather app">
<label for="inputCity">Insert the city's name</label>
<input data-js="inputSearch" class="input-city" type="text"
name="inputCity" placeholder="Type enter to search" autocomplete="off">
</form>
<!-- CARD -->
<div data-js="card" class="weather-card hidden">
<div class="top-card">
<img data-js="day-night" src="https://via.placeholder.com/374x374?text=day/night+image">
<img data-js="icon" class="icon" src="https://via.placeholder.com/100x100?text=icon">
</div>
<div class="bottom-card">
<div data-js="city">City's name</div>
<div data-js="weather" class="weather-text">weather climate</div>
<div data-js="temperature" class="temperature-text">temperature</div>
</div>
</div>
</div>
<!-- SCRIPTS JS -->
<script type="module" src="./app.js"></script>
</body>
</html>