-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
145 lines (145 loc) · 4.63 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 lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Climate - wheather app</title>
</head>
<body>
<header id="header">
<img src="/day/113.png" alt="" />
<div>Climate <span>app</span></div>
<span>v0.0.1</span>
<!-- <button id="toggle">click</button> -->
</header>
<div id="search">
<form id="form-search">
<label class="form-group" for="form-input">
<span class="form-label">zona</span>
<input
type="search"
id="form-input"
name="country"
placeholder="Pais, Ciudad o Región"
required
minlength="3"
autocomplete="off"
/>
<button type="submit" id="form-submit">
<span class="submit_text">buscar</span>
<div class="loader submit hide">Loading...</div>
</button>
</label>
<section class="hide shadow-smooth">
<!-- <button type="button">opt1</button>
<button type="button">opt2</button>
<button type="button">opt3</button>
<button type="button">opt4</button> -->
</section>
</form>
</div>
<div id="app">
<div class="loader-wrapper hide">
<div class="loader main">Loading...</div>
</div>
<main id="main" class="hide">
<div class="shadow-smooth location">
Santiago, region metrolitana, chile.
</div>
<div class="shadow-smooth" id="info">
<div class="wrapper_img">
<img
src=""
class="info__img"
alt="representacion visual de condicon climatica"
loading="lazy"
/>
<div>
<h2 class="info__temp"></h2>
<div class="info__btns">
<button data-unit="c" class="btns btns__c active">°c</button>
<button data-unit="f" class="btns btns__f">°f</button>
</div>
</div>
</div>
<!-- <div class="wrapper_temp"></div> -->
<div class="container">
<div class="wrapper_data">
<p class="data__p">
Prob. de precipitaciones: <span class="data__prec"></span>%.
</p>
<p class="data__p">
Humedad: <span class="data__humedity"></span>%.
</p>
<p class="data__p">
Viento: a <span class="data__wind"></span> km/h.
</p>
</div>
<div class="wrapper_city">
<h2 class="info__p city__city"></h2>
<p class="info__p city__day"></p>
<p class="info__p city__cond"></p>
</div>
</div>
</div>
<div class="shadow-smooth" id="tabs">
<button data-tab="temp" class="active">Temperatura</button>
<button data-tab="precip">Precipitaciones</button>
<button data-tab="wind">Viento</button>
</div>
<div id="chart" class="shadow-smooth"></div>
<div id="days"></div>
<button id="scrollToTop">
<svg
class="svgicon"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="1"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M7 11l5-5m0 0l5 5m-5-5v12"
/>
</svg>
</button>
<div style="font-weight: bold; margin-bottom: 2em">volver arriba</div>
</main>
</div>
<footer id="footer">
<div>Climate app</div>
<div>
made with love ❤️ -
<a href="https://github.com/dangelomedinag/climate">github</a>
</div>
<div>fuente - <a href="https://www.weatherapi.com/">weatherapi</a></div>
</footer>
<div class="custom-shape-divider-bottom-1658260719">
<svg
data-name="Layer 1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1200 120"
preserveAspectRatio="none"
>
<path
d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z"
opacity=".25"
class="shape-fill"
></path>
<path
d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z"
opacity=".5"
class="shape-fill"
></path>
<path
d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"
class="shape-fill"
></path>
</svg>
</div>
<script type="module" src="src/main.js"></script>
</body>
</html>