-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
128 lines (120 loc) · 4.57 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
<!DOCTYPE html>
<html>
<head>
<title>Weather Web App</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/png" href="images/favicon-32x32.png" />
<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:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
<script src="https://unpkg.com/axios@1.1.2/dist/axios.min.js"></script>
<link href="src/style.css" rel="stylesheet" />
<script
src="https://kit.fontawesome.com/ebc63d774c.js"
crossorigin="anonymous"
></script>
</head>
<body>
<div class="header">
<h1 class="title">Weather Web App</h1>
</div>
<div class="container">
<div class="background"></div>
<div class="search-bar">
<div class="city-input">
<input type="text" id="search-input" placeholder="Search City" />
<i class="fa-solid fa-magnifying-glass"></i>
</div>
</div>
<div class="city-weather">
<div class="left">
<p class="date"></p>
<h3 class="location"></h3>
<h6 class="time"></h6>
<h1 class="temperature" id="temp-display"></h1>
<p class="temp-unit">
Celsius <a href="#" class="temp-toggle">| Convert to Fahrenheit</a>
</p>
</div>
<div class="right">
<div class="weather-icon"></div>
<p class="weather-type"></p>
</div>
</div>
<div class="today-forecasts">
<h4 class="today-forecasts-heading">Today's Forecasts</h4>
<div class="forecasts-container" id="hourly-forecast"></div>
</div>
<div class="week-forecasts">
<h6>Outdoor Activity Suggestions :</h6>
<div class="activity-carousel">
<div class="activity">
<img src="images/bike-ride.png"/>
<p>Go for a <span class="pink">bike</span> ride.</p>
</div>
<div class="activity">
<img src="images/meditating.png"/>
<p>Do <span class="yellow">meditation</span> Outside.</p>
</div>
<div class="activity">
<img src="images/walking-out.png"/>
<p>Take a <span class="blue">walk</span>.</p>
</div>
<div class="activity">
<img src="images/girl-running.png"/>
<p>Go for a <span class="pink">run</span>.</p>
</div>
<div class="activity">
<img src="images/grocery.png"/>
<p>Shop for <span class="green">groceries</span>.</p>
</div>
<div class="activity">
<img src="images/sports.png"/>
<p>Play outdoor <span class="yellow">sports</span>.</p>
</div>
<div class="activity">
<img src="images/playing-pet.png"/>
<p>Get active with your <span class="yellow">pet</span>.</p>
</div>
<div class="activity">
<img src="images/planting.png"/>
<p>Enjoy outdoor <span class="green">gardening</span>.</p>
</div>
<div class="activity">
<img src="images/trip.png"/>
<p>Take a break and go <span class="green">hiking</span>.</p>
</div>
<div class="activity">
<img src="images/shopping.png"/>
<p>Combine <span class="pink">shopping</span> and fun.</p>
</div>
<div class="activity">
<img src="images/reading.png" />
<p>Enjoy some outdoor <span class="blue">reading</span>.</p>
</div>
<div class="activity">
<img src="images/picnic.png"/>
<p>Have a picnic <span class="pink">outside</span>.</p>
</div>
</div>
<div class="prev"><i class="fa-solid fa-chevron-left"></i></div>
<div class="next"><i class="fa-solid fa-chevron-right"></i></div>
<h6>5-Days Forecats</h6>
<div class="days" id="forecast"></div>
</div>
</div>
<div class="credit">
<p>
Coded by
<a href="https://www.shecodes.io/graduates/73033-chaimae-lamirine"
>Chaimae Lamirine</a
>, <a href="https://github.com/shemmee/Weather-App">Open sourced on Github.</a> Hosted on Netlify
</p>
</div>
<script src="src/app.js"></script>
</body>
</html>