-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (73 loc) · 3.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous" />
<link rel="stylesheet" href="/css/main.min.css">
<script src="/js/main.js" type="module"></script>
<title>Weather</title>
</head>
<body>
<div class="container flex-column">
<main class="flex-column main">
<header class="header flex-column">
<h1>Weather</h1>
<img id="weather-img" src="/img/icons/6.png" alt="weather image">
</header>
<section class="loc-date-temp-container flex-row">
<div class="loc-date-container">
<h2 id="loc" class="loc"><i class="fa fa-map-marker loc-icon"></i></h2>
<p id="date" class="date"></p>
</div>
<div class="temp-container">
<h2 class="temp" id="temp"></h2>
</div>
</section>
<section class="flex flex-column">
<button class="btn primaryBtn uiBtn" id="cityBtn">Select City</button>
</section>
<section class="card">
<div class="component">
<h3 class="component-item">Conditions: <span class="component-value" id="weather-str"></span></h3>
</div>
<div class="component">
<h3 class="component-item">Feels Like: <span class="component-value" id="real-feel"></span></h3>
</div>
<div class="component">
<h3 class="component-item">Precipitation: <span class="component-value" id="precipitation"></span></h3>
</div>
<div class="component">
<h3 class="component-item">Wind Direction: <span class="component-value" id="wind-direction"></span></h3>
</div>
<div class="component">
<h3 class="component-item">Wind Speed: <span class="component-value" id="wind-speed"></span></h3>
</div>
<div class="component">
<h3 class="component-item">Pressure: <span class="component-value" id="pressure"></span></h3>
</div>
</section>
<section class="city flex-column hidden" id="citySection">
<h3>Select City</h3>
<div class="x-btn-city flex-row" id="x-btn-city">
<div class="x" id="x">
</div>
</div>
<form id="cityForm" class="cityForm flex-row">
<label class="offScreen" for="cityInput">enter a city</label>
<input id ="searchInput" autocomplete="off" class="cityInput" type="text">
<div id="searchDel" role="button" tabindex="0" aria-label="clear search input" class="formDel hidden">X</div>
<button action="submit" id="searchBtn"><i class="fas fa-search"></i></button>
</form>
</section>
<section class="error flex-column hidden" id="error">
<h3>City Not Found<br>Please Try Again</h3>
</section>
</main>
<footer class="footer flex-row">
<button class="btn uiBtn footerBtn" id="curr-loc"><i class="fas fa-location-arrow"></i></button>
<button class="btn uiBtn footerBtn" id="refresh"><i class="fas fa-redo-alt" id="reload"></i></button>
</footer>
</div>
</body>
</html>