-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (55 loc) · 2.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
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>WeatherCity</title>
</head>
<body>
<section class="main-wrapper">
<div class="card">
<h2>WeatherCity <figure><img id="weather-icon" src="sun.png" alt=""></figure>
</h2>
<div class="search-bar">
<input type="text" id="search-input" placeholder="Search city">
<button id="search-btn">
<svg id="svg" stroke="currentColor" fill="currentColor" stroke-width="0" version="1"
viewBox="0 0 48 48" enable-background="new 0 0 48 48" height="20px" width="50px"
xmlns="http://www.w3.org/2000/svg">
<g fill="#616161">
<rect x="34.6" y="28.1" transform="matrix(.707 -.707 .707 .707 -15.154 36.586)" width="4"
height="17"></rect>
<circle cx="20" cy="20" r="16"></circle>
</g>
<rect x="36.2" y="32.1" transform="matrix(.707 -.707 .707 .707 -15.839 38.239)" fill="#37474F"
width="4" height="12.3"></rect>
<circle fill="#64B5F6" cx="20" cy="20" r="13"></circle>
<path fill="#BBDEFB"
d="M26.9,14.2c-1.7-2-4.2-3.2-6.9-3.2s-5.2,1.2-6.9,3.2c-0.4,0.4-0.3,1.1,0.1,1.4c0.4,0.4,1.1,0.3,1.4-0.1 C16,13.9,17.9,13,20,13s4,0.9,5.4,2.5c0.2,0.2,0.5,0.4,0.8,0.4c0.2,0,0.5-0.1,0.6-0.2C27.2,15.3,27.2,14.6,26.9,14.2z">
</path>
</svg>
</button>
<a id="forecast-page-link" href="forecast.html">7 days weather ☔</a>
</div>
<div class="weather weather-visibility">
<h1 class="city">Weather in New York </h1>
<div class="temp"> 45.4°C 🌡 </div>
<figure class="weather-icon"><img id="Weather-icon" src="" alt=""></figure>
<div class="desc">cloudy</div>
<div class="humidity">humidity:50% </div>
<div class="wind">10km/h </div>
<div class="temp_fahrenheit"></div>
<div class="sunset-time"></div>
<div class="sunrise-time"></div>
</div>
</div>
</section>
<!-- <section id="Battery">
<p id="battery-text">charging⚡</p>
</section> -->
<!-- <script src="util.js"></script> -->
<script src="weather.js"></script>
</body>
</html>