-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
160 lines (158 loc) · 4.86 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
http-equiv="Content-Security-Policy"
content="upgrade-insecure-requests"
/>
<title>Rainery | Your weather guide for every season</title>
<!--- favicon --->
<link
rel="shortcut icon"
href="./src/Images/icon_rainery.png"
type="image/svg+xml"
/>
<!--- Google font link --->
<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=Nunito+Sans:wght@400;600&display=swap"
rel="stylesheet"
/>
<!--- Font-Awesome cdn link --->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
/>
<!--- Custom css link --->
<link rel="stylesheet" href="./src/Scss/main.scss" />
<!--- Custom app js link --->
<script defer src="./src/JavaScript/app.js" type="module"></script>
</head>
<body>
<!----- Header ---->
<header class="header">
<div class="container">
<a href="./index.html" class="logo">
<img
src="./src/Images/logo_rainery.png"
alt="logo"
class="header__img"
/>
</a>
<div class="search" data-search-view>
<div class="search-wrapper">
<input
type="search"
name="search"
autocomplete="off"
class="search-field"
placeholder="Search city..."
data-search-field
/>
<span class="m-icon leading-icon">search</span>
<button
class="icon-btn search-toggler leading-icon"
aria-label="close search"
data-search-toggler
>
<span class="m-icon laea">arrow_back</span>
</button>
</div>
<div class="search-result" data-search-result></div>
</div>
<div class="header-actions">
<button
class="icon-btn has-state"
aria-label="open search"
data-search-toggler
>
<span class="m-icon icon">search</span>
</button>
<a
href="#/current-location"
class="btn-primary has-state current-location"
data-current-location-btn
>
<span class="m-icon">my_location</span>
<span class="span">Current Location</span>
</a>
</div>
</div>
</header>
<!----- Main ---->
<main>
<!-- Main-Container -->
<article class="container" data-container>
<div class="content-left">
<!----- Current Weather ---->
<section
class="section current-weather"
aria-label="current weather"
data-current-weather
></section>
<!----- Forecast weather ---->
<section
class="section forecast"
aria-label="data-5-day-forecast"
data-5-day-forecast
></section>
</div>
<div class="content-right">
<!----- Highlights ---->
<section
class="section highlights"
aria-labelledby="highlights-label"
data-highlights
></section>
<!----- Hourly Forecast ---->
<section
class="section hourly-forecast"
aria-label="hourly forecast"
data-hourly-forecast
></section>
<!----- Footer ---->
<footer class="footer">
<p class="body-3">
Powered by
<a
href="https://openweathermap.org/api"
target="_blank"
class="api-logo"
>
<img
src="./src/Images/openweather.png"
width="150"
height="30"
loading="lazy"
alt=""
/>
</a>
</p>
</footer>
</div>
<div class="loading" data-loading></div>
</article>
</main>
<!----- NotFound ---->
<section class="not-found" data-error-content>
<h2 class="heading">404</h2>
<p class="body-1">Page Not Found!</p>
<a href="#/weather?lat=40.3876&lon=49.80725" class="btn-primary">
<span class="span">Go Home</span>
</a>
</section>
<!----- Error box ---->
<section class="error">
<i class="fa-solid fa-circle-exclamation error-icon"></i>
<div class="error-right">
<p class="error-title">Something went wrong!</p>
<p class="error-text">
Lorem, ipsum dolor sit amet consectetur adipisicing elit.
</p>
</div>
</section>
</body>
</html>