forked from ada-c17/weather-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (97 loc) · 6.07 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
<!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, maximum-scale=1, user-scalable=no">
<link href="./styles/index.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" rel="stylesheet">
<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=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;1,200;1,300;1,400;1,600;1,700&display=swap" rel="stylesheet">
<title>Weather Report</title>
</head>
<body>
<header class="nav-bar d-flex flex-row justify-content-between align-items-center border mb-3 p-1 border-0">
<div>Weather Report Playground</div>
<div>Coded with 💗</div>
<div class="btn" role="button"><a href="https://github.com/roshni-patel/weather-report" target="_blank"><i class="fab fa-github"></i></a></div>
</header>
<main class="container">
<div class="box m-3 p-3">
<div class="row mb-3 justify-content-md-center">
<div id="city-search-bar" class="col-10">
<form id="form">
<input type="text" id="city-search-box" placeholder="Type a city" autocomplete="off"/>
<button type="submit" class="btn rounded">
<i class="fas fa-search"></i>
</button>
<button type="button" id="get-current-city-button" class="btn rounded">
<i class="fas fa-location-arrow"></i>
</button>
<button type="button" id="reset-button" class="btn rounded">Reset</button>
</form>
</div>
<div id="temperature-conversion" class="col-2">
<button type="button" id="celsius" value="C" class="btn btn-secondary rounded">℃</button>
<button type="button" id="fahrenheit" value="F" class="btn btn-secondary rounded">℉</button>
</div>
</div>
<div class="row g-2">
<div class="col-4">
<div id="city-info" class="p-3">
<p id="city-name" class="display-4">Seattle</p>
<p id="today-date"></p>
<p id="current-time"></p>
<p><span id="live-temp" class="display-6"></span></p>
<p>Currently: <span id="weather-description"></span></p>
</div>
</div>
<div id="weather-garden-playground" class="col-8 border rounded">
<div class="row g-2 m-2 p-2 d-flex justify-content-center align-items-center align-content-center">
<div id="get-temperature" class="col d-flex flex-row justify-content-center align-items-center align-content-center">
<button id="get-realtime-temp" type="button" class="btn btn-secondary rounded">Get Live Temperature</button>
<div id="playground-temp" class="display-6 m1"></div>
<div>
<div class="btn btn-secondary m-1" id="increase-button" role="button"><span class="fas fa-arrow-up"></span></div>
<div class="btn btn-secondary m-1" id="decrease-button" role="button"><span class="fas fa-arrow-down"></span></div>
</div>
</div>
<div id="sky-dropdown" class="col d-flex flex-row">
<div class="sky-text">SKY</div>
<div class="select-sky d-flex justify-content-center">
<label for="sky-select"></label>
<select name="sky" id="sky-select">
<option value="Cloudy">Cloudy</option>
<option value="Rainy">Rainy</option>
<option value="Sunny">Sunny</option>
<option value="Snowy">Snowy</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col"></div>
<div id="weather-garden" class="col-6 border rounded text-center m-3">
<div><p id="weather-garden-text">WEATHER GARDEN</p></div>
<div><p id="sky">🌧🌈⛈🌧🌧💧⛈🌧🌦🌧💧🌧🌧</p></div>
<div><p id="landscape">🌸🌿🌼__🌷🌻🌿_☘️🌱_🌻🌷</p></div>
</div>
<div class="col"></div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="text-muted text-center">
<p class="p-1">©2022 <a href="https://www.linkedin.com/in/roshni-patel/">Roshni Patel</a> & <a href="https://www.linkedin.com/in/thaimynguyen">Amy Nguyen</a> | Ada Developers Academy Cohort 17</p>
</div>
</footer>
<script src="./node_modules/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-kjU+l4N0Yf4ZOJErLsIcvOU2qSb74wXpOhqTvwVx3OElZRweTnQ6d31fXEoRD1Jy" crossorigin="anonymous"></script>
<script src="./src/index.js" type="module"></script>
</body>
</html>