-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
145 lines (138 loc) · 5.68 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html>
<head>
<title>SB-Weather-App-Optimized</title>
<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 href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="src/style.css" />
<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=Poppins:wght@300;400&family=Quicksand&family=Raleway&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="app"></div>
<div class="container" id="page-container">
<div class="card">
<div class="card-body">
<form class="row align-items-center" id="inputGroup">
<div class="input-group" >
<input type="text" class="form-control" placeholder="Enter your city" aria-label="city" aria-describedby="button-addon2" id="cityInput">
<button class="btn btn-outline-secondary" type="submit" id="searchButton">Search</button>
<button class="btn btn-outline-secondary" type="button" id="currentLocation">📍 Current Location</button>
</div>
</form>
<div class="container" id="containerCity">
<div class="row align-items-center">
<div class="col-auto" id="cityName">
<h3>Ferrara</h3>
</div>
<div class="col-auto" id="dateTime">
<div class="row">
<div class="col-auto" id="date"></div>
</div>
<div class="row" id="time-row">
<div class="col-auto" id="time"></div>
</div>
</div>
</div>
<div class="row" id="main-row">
<div class="col-lg-2 col-md-2 col-sm-12" id="mainWeatherIcon">
<img src="src/images/Clear.png" id="mainIcon"/>
</div>
<div class="col-lg-4 col-md-4 col-sm-2" id="mainTemperature">
<div class="row temperature-wrapper">
<div class="col-auto" id="temperature-number">
13
</div>
<div class="col-auto" id="symbols">
<span><a href="#" id="convert-to-celsius" class="active-link">°C</a></span>
<span>
| <a href="#" id="convert-to-farenheit" class="inactive-link">°F</a>
</span>
</div>
</div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12" id="minMaxTemperature">
<div class="row">
<div class="col-7" id="minMax">Min:</div>
<div class="col-5" id="min-temp">0°C</div>
</div>
<div class="row">
<div class="col-7" id="minMax">Max:</div>
<div class="col-5" id="max-temp">20°C</div>
</div>
<div class="row" id="wind">
<div class="col-7" id="minMax">Windspeed:</div>
<div class="col-5" id="windspeed">0°C</div>
</div>
<div class="row" id="hum">
<div class="col-7" id="minMax">Humidity:</div>
<div class="col-5" id="humidity">20°C</div>
</div>
</div>
</div>
<hr class="hr"/>
<div class="container" id="forecast">
<div class="row" id="days">
<div class="col days-col">
<p id="day-1">Mon</p>
</div>
<div class="col days-col">
<p id="day-2">Tue</p>
</div>
<div class="col days-col">
<p id="day-3">Wed</p>
</div>
<div class="col days-col">
<p id="day-4">Thu</p>
</div>
<div class="col days-col">
<p id="day-5">Fri</p>
</div>
</div>
<div class="row" id="icons">
<div class="col">
<img src="src/images/thunderstorm.png" class="small-icon" id="small-icon-1" />
</div>
<div class="col">
<img src="src/images/clouds.png" class="small-icon" id="small-icon-2" />
</div>
<div class="col">
<img src="src/images/cloudy.png" class="small-icon" id="small-icon-3" />
</div>
<div class="col">
<img src="src/images/snow.png" class="small-icon" id="small-icon-4" />
</div>
<div class="col">
<img src="src/images/rain.png" class="small-icon" id="small-icon-5" />
</div>
</div>
<div class="row" id="temperatures">
<div class="col temp-col">
<p id="temperature-day-1">13°C</p>
</div>
<div class="col temp-col">
<p id="temperature-day-2">13°C</p>
</div>
<div class="col temp-col">
<p id="temperature-day-3">13°C</p>
</div>
<div class="col temp-col">
<p id="temperature-day-4">13°C</p>
</div>
<div class="col temp-col">
<p id="temperature-day-5">13°C</p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="footer"><a href="https://github.com/sabrybabi/SheCodes-project-optimized" target="_blank">Open-source code</a> by Sabrina Bongiovanni</p>
<script src="src/index.js">
</script>
</body>
</html>