forked from ivanna-pt/gradient-weather-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (88 loc) · 3.82 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Gradient Weather App</title>
<link rel="stylesheet" href="src/style.css">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="src/mobile.css">
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div class="wrapper">
<div class="container">
<!-- Left weather container starts-->
<div class="weather-side">
<div class="date-container">
<div class="date-row">
<h2 class="date-dayname" id="weekday"></h2>
<div class="date-day" id="date"></div>
</div>
<div class="location"><img src="img/location.png" width="24" alt="location icon"><span id="city"></span></div>
</div>
<div class="weather-container">
<img src="img/01n.png" alt="sun" width="50" id="weather-img">
<div class="weather-temp-row">
<h1 class="weather-temp"></h1>
<div class="units">
<span id="celsius-btn" class="selected">C</span>
<span id="fahrenheit-btn">F</span>
</div>
</div>
<div class="weather-desc"></div>
</div>
</div>
<!-- Left weather container ends-->
<!-- Right Info side starts-->
<div class="info-side">
<div class="today-info-container">
<div class="info-row">
<div class="title">Cloudiness</div>
<div class="value"><span id="cloudiness">0</span>%</div>
</div>
<div class="info-row">
<div class="title">Humidity</div>
<div class="value"><span id="humidity">0</span>%</div>
</div>
<div class="info-row">
<div class="title">Wind</div>
<div class="value"><span id="wind">0</span>km/h</div>
</div>
</div>
<!-- Week forecast container starts-->
<div class="week-container">
<ul class="week-list" id="forecast">
</ul>
</div>
<!-- Week forecast container ends-->
<!-- Search container starts-->
<div class="search-container">
<button class="location-btn">
<img src="img/location.png" alt="Location icon" width="16">
<span>Current location</span>
</button>
<div class="text-field">
<input type="search" name="search" id="search-input" placeholder="Enter a city" class="text-field-input">
<span class="text-field-icon" id="search-btn">
<img src="img/search.png" alt="Search icon">
</span>
</div>
</div>
<!-- Search container ends-->
</div>
<!-- Right Info side ends-->
</div>
<!--Container ends-->
<footer>
<p>This project was coded by Ivanna Pokhyl and is open-sourced on <a href="https://github.com/ivanna-pt/gradient-weather-app" target="_blank" class="footer-link">GitHub</a> and hosted on <a
href="https://www.netlify.com/" target="_blank" class="footer-link">Netlify</a></p>
</footer>
</div>
<!--Javascript files-->
<script src="src/main.js"></script>
<script src="src/set-date.js"></script>
</body>
</html>