DreamMaker7 commited on
Commit
7869816
·
verified ·
1 Parent(s): 33d4446

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +403 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Deep Weather
3
- emoji: 🐨
4
- colorFrom: pink
5
- colorTo: gray
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: deep-weather
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: green
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,403 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Weather Forecast</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
11
+
12
+ body {
13
+ font-family: 'Poppins', sans-serif;
14
+ background: linear-gradient(180deg, #4A90E2 0%, #87CEEB 100%);
15
+ height: 100vh;
16
+ overflow-x: hidden;
17
+ }
18
+
19
+ .weather-card {
20
+ background: rgba(255, 255, 255, 0.2);
21
+ backdrop-filter: blur(10px);
22
+ border-radius: 20px;
23
+ box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
24
+ }
25
+
26
+ .scroll-container {
27
+ scrollbar-width: none;
28
+ }
29
+
30
+ .scroll-container::-webkit-scrollbar {
31
+ display: none;
32
+ }
33
+
34
+ .temperature-gradient {
35
+ background: linear-gradient(90deg, #FF9A9E 0%, #FAD0C4 100%);
36
+ }
37
+
38
+ .uv-gradient {
39
+ background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
40
+ }
41
+
42
+ .wind-gradient {
43
+ background: linear-gradient(90deg, #A1C4FD 0%, #C2E9FB 100%);
44
+ }
45
+
46
+ .humidity-gradient {
47
+ background: linear-gradient(90deg, #84FAB0 0%, #8FD3F4 100%);
48
+ }
49
+
50
+ .tab-active {
51
+ border-bottom: 3px solid white;
52
+ font-weight: 600;
53
+ }
54
+
55
+ .clothing-icon {
56
+ transition: all 0.3s ease;
57
+ }
58
+
59
+ .clothing-icon:hover {
60
+ transform: scale(1.1);
61
+ }
62
+
63
+ .day-card {
64
+ transition: all 0.3s ease;
65
+ }
66
+
67
+ .day-card:hover {
68
+ transform: translateY(-5px);
69
+ background: rgba(255, 255, 255, 0.3);
70
+ }
71
+
72
+ .active-day {
73
+ background: rgba(255, 255, 255, 0.4);
74
+ border: 1px solid white;
75
+ }
76
+ </style>
77
+ </head>
78
+ <body class="text-white relative max-w-md mx-auto" style="width: 390px; height: 844px;">
79
+ <!-- Main Container -->
80
+ <div class="h-full overflow-hidden relative">
81
+ <!-- Header -->
82
+ <header class="pt-12 px-6">
83
+ <div class="flex justify-between items-center">
84
+ <button class="p-2 rounded-full bg-white bg-opacity-20">
85
+ <i class="fas fa-search text-lg"></i>
86
+ </button>
87
+ <div class="text-center">
88
+ <h1 class="text-2xl font-semibold">New York</h1>
89
+ <p class="text-sm opacity-80">Partly Cloudy</p>
90
+ </div>
91
+ <button class="p-2 rounded-full bg-white bg-opacity-20">
92
+ <i class="fas fa-cog text-lg"></i>
93
+ </button>
94
+ </div>
95
+
96
+ <div class="mt-6 flex justify-center items-end">
97
+ <span class="text-7xl font-light">24</span>
98
+ <span class="text-4xl mb-2">°C</span>
99
+ </div>
100
+
101
+ <div class="flex justify-between mt-2 text-sm">
102
+ <span>H: 28° L: 18°</span>
103
+ <span>Feels like 26°</span>
104
+ </div>
105
+ </header>
106
+
107
+ <!-- Tabs -->
108
+ <div class="flex justify-around mt-6 border-b border-white border-opacity-20 px-6">
109
+ <button class="pb-2 px-4 tab-active">Today</button>
110
+ <button class="pb-2 px-4">15 Days</button>
111
+ <button class="pb-2 px-4">Hourly</button>
112
+ </div>
113
+
114
+ <!-- Main Content -->
115
+ <div class="mt-4 px-6 h-full overflow-y-auto scroll-container pb-24">
116
+ <!-- Hourly Forecast -->
117
+ <div class="weather-card p-4 mb-4">
118
+ <h3 class="font-medium mb-3">Hourly Forecast</h3>
119
+ <div class="flex overflow-x-auto space-x-4 pb-2 scroll-container">
120
+ <div class="flex flex-col items-center min-w-max">
121
+ <span class="text-sm">Now</span>
122
+ <i class="fas fa-cloud text-2xl my-2"></i>
123
+ <span class="font-medium">24°</span>
124
+ </div>
125
+ <div class="flex flex-col items-center min-w-max">
126
+ <span class="text-sm">1PM</span>
127
+ <i class="fas fa-sun text-2xl my-2"></i>
128
+ <span class="font-medium">26°</span>
129
+ </div>
130
+ <div class="flex flex-col items-center min-w-max">
131
+ <span class="text-sm">2PM</span>
132
+ <i class="fas fa-sun text-2xl my-2"></i>
133
+ <span class="font-medium">27°</span>
134
+ </div>
135
+ <div class="flex flex-col items-center min-w-max">
136
+ <span class="text-sm">3PM</span>
137
+ <i class="fas fa-cloud-sun text-2xl my-2"></i>
138
+ <span class="font-medium">28°</span>
139
+ </div>
140
+ <div class="flex flex-col items-center min-w-max">
141
+ <span class="text-sm">4PM</span>
142
+ <i class="fas fa-cloud-sun text-2xl my-2"></i>
143
+ <span class="font-medium">27°</span>
144
+ </div>
145
+ <div class="flex flex-col items-center min-w-max">
146
+ <span class="text-sm">5PM</span>
147
+ <i class="fas fa-cloud text-2xl my-2"></i>
148
+ <span class="font-medium">25°</span>
149
+ </div>
150
+ <div class="flex flex-col items-center min-w-max">
151
+ <span class="text-sm">6PM</span>
152
+ <i class="fas fa-cloud-rain text-2xl my-2"></i>
153
+ <span class="font-medium">23°</span>
154
+ </div>
155
+ </div>
156
+ </div>
157
+
158
+ <!-- Weather Details -->
159
+ <div class="weather-card p-4 mb-4">
160
+ <h3 class="font-medium mb-3">Weather Details</h3>
161
+ <div class="grid grid-cols-2 gap-4">
162
+ <div class="p-3 rounded-xl temperature-gradient">
163
+ <div class="flex items-center">
164
+ <i class="fas fa-temperature-high mr-2"></i>
165
+ <span>Temperature</span>
166
+ </div>
167
+ <div class="mt-2 text-xl font-medium">24°C</div>
168
+ </div>
169
+ <div class="p-3 rounded-xl uv-gradient">
170
+ <div class="flex items-center">
171
+ <i class="fas fa-sun mr-2"></i>
172
+ <span>UV Index</span>
173
+ </div>
174
+ <div class="mt-2 text-xl font-medium">5 Moderate</div>
175
+ </div>
176
+ <div class="p-3 rounded-xl wind-gradient">
177
+ <div class="flex items-center">
178
+ <i class="fas fa-wind mr-2"></i>
179
+ <span>Wind</span>
180
+ </div>
181
+ <div class="mt-2 text-xl font-medium">12 km/h</div>
182
+ </div>
183
+ <div class="p-3 rounded-xl humidity-gradient">
184
+ <div class="flex items-center">
185
+ <i class="fas fa-tint mr-2"></i>
186
+ <span>Humidity</span>
187
+ </div>
188
+ <div class="mt-2 text-xl font-medium">65%</div>
189
+ </div>
190
+ </div>
191
+ </div>
192
+
193
+ <!-- Clothing Recommendation -->
194
+ <div class="weather-card p-4 mb-4">
195
+ <h3 class="font-medium mb-3">Clothing Recommendation</h3>
196
+ <div class="flex justify-around text-center">
197
+ <div class="flex flex-col items-center clothing-icon">
198
+ <div class="w-12 h-12 bg-white bg-opacity-30 rounded-full flex items-center justify-center mb-1">
199
+ <i class="fas fa-tshirt text-xl"></i>
200
+ </div>
201
+ <span class="text-xs">T-Shirt</span>
202
+ </div>
203
+ <div class="flex flex-col items-center clothing-icon">
204
+ <div class="w-12 h-12 bg-white bg-opacity-30 rounded-full flex items-center justify-center mb-1">
205
+ <i class="fas fa-umbrella text-xl"></i>
206
+ </div>
207
+ <span class="text-xs">Umbrella</span>
208
+ </div>
209
+ <div class="flex flex-col items-center clothing-icon">
210
+ <div class="w-12 h-12 bg-white bg-opacity-30 rounded-full flex items-center justify-center mb-1">
211
+ <i class="fas fa-sunglasses text-xl"></i>
212
+ </div>
213
+ <span class="text-xs">Sunglasses</span>
214
+ </div>
215
+ <div class="flex flex-col items-center clothing-icon">
216
+ <div class="w-12 h-12 bg-white bg-opacity-30 rounded-full flex items-center justify-center mb-1">
217
+ <i class="fas fa-hat-cowboy text-xl"></i>
218
+ </div>
219
+ <span class="text-xs">Hat</span>
220
+ </div>
221
+ </div>
222
+ <p class="mt-3 text-sm">Light clothing recommended. Bring an umbrella for possible evening showers.</p>
223
+ </div>
224
+
225
+ <!-- Travel Suggestions -->
226
+ <div class="weather-card p-4 mb-4">
227
+ <h3 class="font-medium mb-3">Travel Suggestions</h3>
228
+ <div class="flex items-start mb-3">
229
+ <div class="mr-3 p-2 bg-white bg-opacity-20 rounded-lg">
230
+ <i class="fas fa-bus text-lg"></i>
231
+ </div>
232
+ <div>
233
+ <h4 class="font-medium">Public Transport</h4>
234
+ <p class="text-sm opacity-90">No weather-related delays expected today.</p>
235
+ </div>
236
+ </div>
237
+ <div class="flex items-start mb-3">
238
+ <div class="mr-3 p-2 bg-white bg-opacity-20 rounded-lg">
239
+ <i class="fas fa-car text-lg"></i>
240
+ </div>
241
+ <div>
242
+ <h4 class="font-medium">Driving</h4>
243
+ <p class="text-sm opacity-90">Good conditions. Watch for wet roads after 6PM.</p>
244
+ </div>
245
+ </div>
246
+ <div class="flex items-start">
247
+ <div class="mr-3 p-2 bg-white bg-opacity-20 rounded-lg">
248
+ <i class="fas fa-walking text-lg"></i>
249
+ </div>
250
+ <div>
251
+ <h4 class="font-medium">Walking</h4>
252
+ <p class="text-sm opacity-90">Pleasant for walking until evening showers.</p>
253
+ </div>
254
+ </div>
255
+ </div>
256
+
257
+ <!-- 15-Day Forecast -->
258
+ <div class="weather-card p-4">
259
+ <h3 class="font-medium mb-3">15-Day Forecast</h3>
260
+ <div class="space-y-3">
261
+ <!-- Day 1 (Active) -->
262
+ <div class="day-card active-day p-3 rounded-lg flex justify-between items-center">
263
+ <div class="flex items-center">
264
+ <span class="w-20 font-medium">Today</span>
265
+ <i class="fas fa-cloud-sun text-xl mx-4"></i>
266
+ </div>
267
+ <div class="flex">
268
+ <span class="font-medium mr-4">24°</span>
269
+ <span class="opacity-70">18°</span>
270
+ </div>
271
+ </div>
272
+
273
+ <!-- Day 2 -->
274
+ <div class="day-card p-3 rounded-lg flex justify-between items-center">
275
+ <div class="flex items-center">
276
+ <span class="w-20">Tue</span>
277
+ <i class="fas fa-sun text-xl mx-4"></i>
278
+ </div>
279
+ <div class="flex">
280
+ <span class="font-medium mr-4">26°</span>
281
+ <span class="opacity-70">19°</span>
282
+ </div>
283
+ </div>
284
+
285
+ <!-- Day 3 -->
286
+ <div class="day-card p-3 rounded-lg flex justify-between items-center">
287
+ <div class="flex items-center">
288
+ <span class="w-20">Wed</span>
289
+ <i class="fas fa-sun text-xl mx-4"></i>
290
+ </div>
291
+ <div class="flex">
292
+ <span class="font-medium mr-4">27°</span>
293
+ <span class="opacity-70">20°</span>
294
+ </div>
295
+ </div>
296
+
297
+ <!-- Day 4 -->
298
+ <div class="day-card p-3 rounded-lg flex justify-between items-center">
299
+ <div class="flex items-center">
300
+ <span class="w-20">Thu</span>
301
+ <i class="fas fa-cloud-rain text-xl mx-4"></i>
302
+ </div>
303
+ <div class="flex">
304
+ <span class="font-medium mr-4">22°</span>
305
+ <span class="opacity-70">17°</span>
306
+ </div>
307
+ </div>
308
+
309
+ <!-- Day 5 -->
310
+ <div class="day-card p-3 rounded-lg flex justify-between items-center">
311
+ <div class="flex items-center">
312
+ <span class="w-20">Fri</span>
313
+ <i class="fas fa-cloud-sun text-xl mx-4"></i>
314
+ </div>
315
+ <div class="flex">
316
+ <span class="font-medium mr-4">24°</span>
317
+ <span class="opacity-70">18°</span>
318
+ </div>
319
+ </div>
320
+
321
+ <!-- Day 6 -->
322
+ <div class="day-card p-3 rounded-lg flex justify-between items-center">
323
+ <div class="flex items-center">
324
+ <span class="w-20">Sat</span>
325
+ <i class="fas fa-sun text-xl mx-4"></i>
326
+ </div>
327
+ <div class="flex">
328
+ <span class="font-medium mr-4">28°</span>
329
+ <span class="opacity-70">21°</span>
330
+ </div>
331
+ </div>
332
+
333
+ <!-- Day 7 -->
334
+ <div class="day-card p-3 rounded-lg flex justify-between items-center">
335
+ <div class="flex items-center">
336
+ <span class="w-20">Sun</span>
337
+ <i class="fas fa-sun text-xl mx-4"></i>
338
+ </div>
339
+ <div class="flex">
340
+ <span class="font-medium mr-4">29°</span>
341
+ <span class="opacity-70">22°</span>
342
+ </div>
343
+ </div>
344
+
345
+ <!-- Additional days would continue here... -->
346
+ </div>
347
+
348
+ <button class="w-full mt-4 py-2 bg-white bg-opacity-20 rounded-lg font-medium">
349
+ View All 15 Days
350
+ </button>
351
+ </div>
352
+ </div>
353
+
354
+ <!-- Bottom Navigation -->
355
+ <nav class="absolute bottom-0 left-0 right-0 bg-white bg-opacity-20 backdrop-filter backdrop-blur-lg flex justify-around py-3 px-6">
356
+ <button class="p-2 rounded-full">
357
+ <i class="fas fa-home text-xl"></i>
358
+ </button>
359
+ <button class="p-2 rounded-full">
360
+ <i class="fas fa-map-marked-alt text-xl"></i>
361
+ </button>
362
+ <button class="p-2 rounded-full bg-white bg-opacity-30">
363
+ <i class="fas fa-cloud-sun text-xl"></i>
364
+ </button>
365
+ <button class="p-2 rounded-full">
366
+ <i class="fas fa-bell text-xl"></i>
367
+ </button>
368
+ <button class="p-2 rounded-full">
369
+ <i class="fas fa-user text-xl"></i>
370
+ </button>
371
+ </nav>
372
+ </div>
373
+
374
+ <script>
375
+ // Simple tab switching functionality
376
+ const tabs = document.querySelectorAll('header + div button');
377
+ tabs.forEach(tab => {
378
+ tab.addEventListener('click', () => {
379
+ tabs.forEach(t => t.classList.remove('tab-active'));
380
+ tab.classList.add('tab-active');
381
+ });
382
+ });
383
+
384
+ // Day selection functionality
385
+ const dayCards = document.querySelectorAll('.day-card');
386
+ dayCards.forEach(card => {
387
+ card.addEventListener('click', () => {
388
+ dayCards.forEach(c => c.classList.remove('active-day'));
389
+ card.classList.add('active-day');
390
+
391
+ // Here you would typically update the weather data for the selected day
392
+ // For demo purposes, we'll just log to console
393
+ console.log('Selected day:', card.querySelector('span').textContent);
394
+ });
395
+ });
396
+
397
+ // Simulate loading data
398
+ setTimeout(() => {
399
+ console.log('Weather data loaded');
400
+ }, 1000);
401
+ </script>
402
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=DreamMaker7/deep-weather" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
403
+ </html>