Letcool commited on
Commit
204fe62
·
verified ·
1 Parent(s): b88ecf5

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +513 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Androidnews
3
- emoji: 💻
4
- colorFrom: purple
5
- colorTo: pink
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: androidnews
3
+ emoji: 🐳
4
+ colorFrom: pink
5
+ colorTo: purple
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,513 @@
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>Android & AI News Feed</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
+ .loader {
11
+ border: 4px solid #f3f3f3;
12
+ border-top: 4px solid #3498db;
13
+ border-radius: 50%;
14
+ width: 30px;
15
+ height: 30px;
16
+ animation: spin 1s linear infinite;
17
+ margin: 20px auto;
18
+ }
19
+
20
+ @keyframes spin {
21
+ 0% { transform: rotate(0deg); }
22
+ 100% { transform: rotate(360deg); }
23
+ }
24
+
25
+ .video-container {
26
+ position: relative;
27
+ padding-bottom: 56.25%;
28
+ height: 0;
29
+ overflow: hidden;
30
+ }
31
+
32
+ .video-container iframe {
33
+ position: absolute;
34
+ top: 0;
35
+ left: 0;
36
+ width: 100%;
37
+ height: 100%;
38
+ }
39
+
40
+ .tab-active {
41
+ border-bottom: 3px solid #3b82f6;
42
+ font-weight: 600;
43
+ color: #3b82f6;
44
+ }
45
+
46
+ .post-divider {
47
+ border: none;
48
+ height: 1px;
49
+ background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
50
+ }
51
+
52
+ .reddit-post:hover {
53
+ transform: translateY(-2px);
54
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
55
+ }
56
+
57
+ .video-card:hover {
58
+ transform: translateY(-5px);
59
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
60
+ }
61
+ </style>
62
+ </head>
63
+ <body class="bg-gray-50 min-h-screen">
64
+ <header class="bg-white shadow-sm sticky top-0 z-10">
65
+ <div class="container mx-auto px-4 py-4">
66
+ <div class="flex justify-between items-center">
67
+ <div class="flex items-center space-x-2">
68
+ <i class="fab fa-android text-3xl text-green-500"></i>
69
+ <i class="fas fa-robot text-3xl text-blue-500"></i>
70
+ <h1 class="text-2xl font-bold text-gray-800">Android & AI News</h1>
71
+ </div>
72
+ <div class="flex space-x-4">
73
+ <button class="bg-gray-100 hover:bg-gray-200 text-gray-800 px-4 py-2 rounded-full text-sm font-medium transition">
74
+ <i class="fas fa-cog mr-1"></i> Settings
75
+ </button>
76
+ <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full text-sm font-medium transition">
77
+ <i class="fas fa-user-plus mr-1"></i> Sign In
78
+ </button>
79
+ </div>
80
+ </div>
81
+ </div>
82
+ </header>
83
+
84
+ <main class="container mx-auto px-4 py-8">
85
+ <div class="flex flex-col md:flex-row gap-8">
86
+ <!-- Left sidebar with filters -->
87
+ <aside class="w-full md:w-64 flex-shrink-0">
88
+ <div class="bg-white rounded-lg shadow p-4 sticky top-24">
89
+ <h2 class="text-lg font-semibold mb-4 text-gray-800">Filters</h2>
90
+
91
+ <div class="mb-6">
92
+ <h3 class="text-sm font-medium text-gray-700 mb-2">Content Type</h3>
93
+ <div class="space-y-2">
94
+ <label class="flex items-center">
95
+ <input type="checkbox" class="rounded text-blue-500" checked>
96
+ <span class="ml-2 text-gray-700">Videos</span>
97
+ </label>
98
+ <label class="flex items-center">
99
+ <input type="checkbox" class="rounded text-blue-500" checked>
100
+ <span class="ml-2 text-gray-700">Articles</span>
101
+ </label>
102
+ <label class="flex items-center">
103
+ <input type="checkbox" class="rounded text-blue-500">
104
+ <span class="ml-2 text-gray-700">Discussions</span>
105
+ </label>
106
+ </div>
107
+ </div>
108
+
109
+ <div class="mb-6">
110
+ <h3 class="text-sm font-medium text-gray-700 mb-2">Topics</h3>
111
+ <div class="space-y-2">
112
+ <label class="flex items-center">
113
+ <input type="checkbox" class="rounded text-blue-500" checked>
114
+ <span class="ml-2 text-gray-700">Android OS</span>
115
+ </label>
116
+ <label class="flex items-center">
117
+ <input type="checkbox" class="rounded text-blue-500" checked>
118
+ <span class="ml-2 text-gray-700">AI Research</span>
119
+ </label>
120
+ <label class="flex items-center">
121
+ <input type="checkbox" class="rounded text-blue-500">
122
+ <span class="ml-2 text-gray-700">Hardware</span>
123
+ </label>
124
+ <label class="flex items-center">
125
+ <input type="checkbox" class="rounded text-blue-500">
126
+ <span class="ml-2 text-gray-700">Apps</span>
127
+ </label>
128
+ <label class="flex items-center">
129
+ <input type="checkbox" class="rounded text-blue-500">
130
+ <span class="ml-2 text-gray-700">Ethics</span>
131
+ </label>
132
+ </div>
133
+ </div>
134
+
135
+ <div class="mb-6">
136
+ <h3 class="text-sm font-medium text-gray-700 mb-2">Time Range</h3>
137
+ <select class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500 text-sm">
138
+ <option>Last 24 hours</option>
139
+ <option selected>Last week</option>
140
+ <option>Last month</option>
141
+ <option>Last year</option>
142
+ </select>
143
+ </div>
144
+
145
+ <button class="w-full bg-blue-500 hover:bg-blue-600 text-white py-2 rounded-md text-sm font-medium transition">
146
+ Apply Filters
147
+ </button>
148
+ </div>
149
+ </aside>
150
+
151
+ <!-- Main content area -->
152
+ <div class="flex-1">
153
+ <!-- Tabs -->
154
+ <div class="bg-white rounded-lg shadow mb-6">
155
+ <div class="border-b border-gray-200">
156
+ <nav class="flex -mb-px">
157
+ <button id="all-tab" class="tab-active py-4 px-6 text-center border-transparent text-sm font-medium">
158
+ All Content
159
+ </button>
160
+ <button id="youtube-tab" class="py-4 px-6 text-center border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 text-sm font-medium">
161
+ <i class="fab fa-youtube mr-1 text-red-500"></i> Videos
162
+ </button>
163
+ <button id="reddit-tab" class="py-4 px-6 text-center border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 text-sm font-medium">
164
+ <i class="fab fa-reddit mr-1 text-orange-500"></i> Discussions
165
+ </button>
166
+ </nav>
167
+ </div>
168
+ </div>
169
+
170
+ <!-- Feed content -->
171
+ <div id="feed-content">
172
+ <!-- YouTube videos -->
173
+ <div id="youtube-feed" class="space-y-6">
174
+ <div class="video-card bg-white rounded-lg shadow overflow-hidden transition duration-300">
175
+ <div class="video-container">
176
+ <iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
177
+ </div>
178
+ <div class="p-4">
179
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">Android 14 Preview: All New AI Features</h3>
180
+ <p class="text-gray-600 text-sm mb-3">Google just announced Android 14 with groundbreaking AI integration. Here's everything you need to know about the new features.</p>
181
+ <div class="flex items-center text-sm text-gray-500">
182
+ <span class="flex items-center mr-4">
183
+ <i class="fas fa-eye mr-1"></i> 245K views
184
+ </span>
185
+ <span class="flex items-center">
186
+ <i class="far fa-clock mr-1"></i> 2 days ago
187
+ </span>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <div class="video-card bg-white rounded-lg shadow overflow-hidden transition duration-300">
193
+ <div class="video-container">
194
+ <iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
195
+ </div>
196
+ <div class="p-4">
197
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">How ChatGPT is Changing Android Development</h3>
198
+ <p class="text-gray-600 text-sm mb-3">Developers are using AI tools like ChatGPT to accelerate Android app development. See real-world examples and learn how you can implement these techniques.</p>
199
+ <div class="flex items-center text-sm text-gray-500">
200
+ <span class="flex items-center mr-4">
201
+ <i class="fas fa-eye mr-1"></i> 189K views
202
+ </span>
203
+ <span class="flex items-center">
204
+ <i class="far fa-clock mr-1"></i> 1 week ago
205
+ </span>
206
+ </div>
207
+ </div>
208
+ </div>
209
+
210
+ <div class="video-card bg-white rounded-lg shadow overflow-hidden transition duration-300">
211
+ <div class="video-container">
212
+ <iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
213
+ </div>
214
+ <div class="p-4">
215
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">The Future of AI on Mobile: Tensor Processing Units Explained</h3>
216
+ <p class="text-gray-600 text-sm mb-3">Google's custom Tensor chips are bringing desktop-level AI processing to mobile devices. We break down what this means for the future of smartphones.</p>
217
+ <div class="flex items-center text-sm text-gray-500">
218
+ <span class="flex items-center mr-4">
219
+ <i class="fas fa-eye mr-1"></i> 312K views
220
+ </span>
221
+ <span class="flex items-center">
222
+ <i class="far fa-clock mr-1"></i> 3 weeks ago
223
+ </span>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </div>
228
+
229
+ <!-- Reddit posts -->
230
+ <div id="reddit-feed" class="mt-8 space-y-4">
231
+ <div class="reddit-post bg-white rounded-lg shadow p-4 transition duration-300">
232
+ <div class="flex items-start">
233
+ <div class="flex flex-col items-center mr-3">
234
+ <button class="text-gray-400 hover:text-blue-500">
235
+ <i class="fas fa-arrow-up"></i>
236
+ </button>
237
+ <span class="text-xs font-medium my-1">4.2k</span>
238
+ <button class="text-gray-400 hover:text-blue-500">
239
+ <i class="fas fa-arrow-down"></i>
240
+ </button>
241
+ </div>
242
+ <div class="flex-1">
243
+ <div class="flex items-center text-xs text-gray-500 mb-1">
244
+ <span class="font-medium text-gray-700">r/Android</span>
245
+ <span class="mx-1">•</span>
246
+ <span>Posted by u/tech_enthusiast</span>
247
+ <span class="mx-1">•</span>
248
+ <span>2 days ago</span>
249
+ </div>
250
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">Android 14 Beta 3 Released - Major AI Improvements</h3>
251
+ <p class="text-gray-700 text-sm mb-3">Google has just pushed Android 14 Beta 3 to Pixel devices with significant enhancements to on-device machine learning capabilities. The new update includes...</p>
252
+ <div class="flex space-x-4 text-xs text-gray-500">
253
+ <button class="flex items-center hover:text-gray-700">
254
+ <i class="far fa-comment mr-1"></i> 342 comments
255
+ </button>
256
+ <button class="flex items-center hover:text-gray-700">
257
+ <i class="fas fa-share mr-1"></i> Share
258
+ </button>
259
+ <button class="flex items-center hover:text-gray-700">
260
+ <i class="far fa-bookmark mr-1"></i> Save
261
+ </button>
262
+ </div>
263
+ </div>
264
+ </div>
265
+ </div>
266
+
267
+ <div class="reddit-post bg-white rounded-lg shadow p-4 transition duration-300">
268
+ <div class="flex items-start">
269
+ <div class="flex flex-col items-center mr-3">
270
+ <button class="text-gray-400 hover:text-blue-500">
271
+ <i class="fas fa-arrow-up"></i>
272
+ </button>
273
+ <span class="text-xs font-medium my-1">8.7k</span>
274
+ <button class="text-gray-400 hover:text-blue-500">
275
+ <i class="fas fa-arrow-down"></i>
276
+ </button>
277
+ </div>
278
+ <div class="flex-1">
279
+ <div class="flex items-center text-xs text-gray-500 mb-1">
280
+ <span class="font-medium text-orange-500">r/MachineLearning</span>
281
+ <span class="mx-1">•</span>
282
+ <span>Posted by u/ai_researcher</span>
283
+ <span class="mx-1">•</span>
284
+ <span>5 days ago</span>
285
+ </div>
286
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">[P] Running LLMs on Android: A Comprehensive Guide</h3>
287
+ <p class="text-gray-700 text-sm mb-3">After months of experimentation, I've successfully optimized several large language models to run efficiently on Android devices. Here's everything I learned about quantization, pruning, and hardware acceleration...</p>
288
+ <div class="flex space-x-4 text-xs text-gray-500">
289
+ <button class="flex items-center hover:text-gray-700">
290
+ <i class="far fa-comment mr-1"></i> 587 comments
291
+ </button>
292
+ <button class="flex items-center hover:text-gray-700">
293
+ <i class="fas fa-share mr-1"></i> Share
294
+ </button>
295
+ <button class="flex items-center hover:text-gray-700">
296
+ <i class="far fa-bookmark mr-1"></i> Save
297
+ </button>
298
+ </div>
299
+ </div>
300
+ </div>
301
+ </div>
302
+
303
+ <div class="reddit-post bg-white rounded-lg shadow p-4 transition duration-300">
304
+ <div class="flex items-start">
305
+ <div class="flex flex-col items-center mr-3">
306
+ <button class="text-gray-400 hover:text-blue-500">
307
+ <i class="fas fa-arrow-up"></i>
308
+ </button>
309
+ <span class="text-xs font-medium my-1">12.4k</span>
310
+ <button class="text-gray-400 hover:text-blue-500">
311
+ <i class="fas fa-arrow-down"></i>
312
+ </button>
313
+ </div>
314
+ <div class="flex-1">
315
+ <div class="flex items-center text-xs text-gray-500 mb-1">
316
+ <span class="font-medium text-gray-700">r/AndroidDev</span>
317
+ <span class="mx-1">•</span>
318
+ <span>Posted by u/senior_dev</span>
319
+ <span class="mx-1">•</span>
320
+ <span>1 week ago</span>
321
+ </div>
322
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">Google announces ML Kit updates with new on-device text-to-image generation</h3>
323
+ <p class="text-gray-700 text-sm mb-3">At I/O yesterday, Google unveiled major updates to ML Kit including stable diffusion models that can run entirely on-device. This opens up incredible possibilities for Android apps that need generative AI capabilities without cloud dependencies...</p>
324
+ <div class="flex space-x-4 text-xs text-gray-500">
325
+ <button class="flex items-center hover:text-gray-700">
326
+ <i class="far fa-comment mr-1"></i> 892 comments
327
+ </button>
328
+ <button class="flex items-center hover:text-gray-700">
329
+ <i class="fas fa-share mr-1"></i> Share
330
+ </button>
331
+ <button class="flex items-center hover:text-gray-700">
332
+ <i class="far fa-bookmark mr-1"></i> Save
333
+ </button>
334
+ </div>
335
+ </div>
336
+ </div>
337
+ </div>
338
+ </div>
339
+
340
+ <!-- Loading indicator -->
341
+ <div id="loading-indicator" class="py-8 hidden">
342
+ <div class="loader"></div>
343
+ </div>
344
+ </div>
345
+ </div>
346
+ </div>
347
+ </main>
348
+
349
+ <footer class="bg-gray-100 border-t border-gray-200 py-8 mt-12">
350
+ <div class="container mx-auto px-4">
351
+ <div class="flex flex-col md:flex-row justify-between items-center">
352
+ <div class="mb-4 md:mb-0">
353
+ <div class="flex items-center space-x-2">
354
+ <i class="fab fa-android text-2xl text-green-500"></i>
355
+ <i class="fas fa-robot text-2xl text-blue-500"></i>
356
+ <span class="text-lg font-semibold text-gray-800">Android & AI News</span>
357
+ </div>
358
+ <p class="text-gray-600 text-sm mt-2">Your source for the latest in Android and Artificial Intelligence</p>
359
+ </div>
360
+ <div class="flex space-x-6">
361
+ <a href="#" class="text-gray-600 hover:text-gray-900">
362
+ <i class="fab fa-twitter"></i>
363
+ </a>
364
+ <a href="#" class="text-gray-600 hover:text-gray-900">
365
+ <i class="fab fa-github"></i>
366
+ </a>
367
+ <a href="#" class="text-gray-600 hover:text-gray-900">
368
+ <i class="fab fa-linkedin"></i>
369
+ </a>
370
+ <a href="#" class="text-gray-600 hover:text-gray-900">
371
+ <i class="fab fa-youtube"></i>
372
+ </a>
373
+ <a href="#" class="text-gray-600 hover:text-gray-900">
374
+ <i class="fab fa-reddit"></i>
375
+ </a>
376
+ </div>
377
+ </div>
378
+ <div class="border-t border-gray-200 mt-8 pt-8 text-center text-sm text-gray-500">
379
+ <p>© 2023 Android & AI News. All rights reserved. Content aggregated from YouTube and Reddit.</p>
380
+ </div>
381
+ </div>
382
+ </footer>
383
+
384
+ <script>
385
+ // Tab switching functionality
386
+ const allTab = document.getElementById('all-tab');
387
+ const youtubeTab = document.getElementById('youtube-tab');
388
+ const redditTab = document.getElementById('reddit-tab');
389
+ const youtubeFeed = document.getElementById('youtube-feed');
390
+ const redditFeed = document.getElementById('reddit-feed');
391
+
392
+ function resetTabs() {
393
+ allTab.classList.remove('tab-active');
394
+ youtubeTab.classList.remove('tab-active');
395
+ redditTab.classList.remove('tab-active');
396
+ allTab.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
397
+ youtubeTab.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
398
+ redditTab.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
399
+ }
400
+
401
+ allTab.addEventListener('click', () => {
402
+ resetTabs();
403
+ allTab.classList.add('tab-active');
404
+ allTab.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
405
+ youtubeFeed.style.display = 'block';
406
+ redditFeed.style.display = 'block';
407
+ });
408
+
409
+ youtubeTab.addEventListener('click', () => {
410
+ resetTabs();
411
+ youtubeTab.classList.add('tab-active');
412
+ youtubeTab.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
413
+ youtubeFeed.style.display = 'block';
414
+ redditFeed.style.display = 'none';
415
+ });
416
+
417
+ redditTab.addEventListener('click', () => {
418
+ resetTabs();
419
+ redditTab.classList.add('tab-active');
420
+ redditTab.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300');
421
+ youtubeFeed.style.display = 'none';
422
+ redditFeed.style.display = 'block';
423
+ });
424
+
425
+ // Infinite scroll functionality
426
+ const loadingIndicator = document.getElementById('loading-indicator');
427
+ let isLoading = false;
428
+
429
+ window.addEventListener('scroll', () => {
430
+ const { scrollTop, scrollHeight, clientHeight } = document.documentElement;
431
+
432
+ if (scrollTop + clientHeight >= scrollHeight - 100 && !isLoading) {
433
+ loadMoreContent();
434
+ }
435
+ });
436
+
437
+ function loadMoreContent() {
438
+ isLoading = true;
439
+ loadingIndicator.classList.remove('hidden');
440
+
441
+ // Simulate API call delay
442
+ setTimeout(() => {
443
+ // Add more YouTube videos
444
+ const youtubeFeed = document.getElementById('youtube-feed');
445
+ const newVideo = document.createElement('div');
446
+ newVideo.className = 'video-card bg-white rounded-lg shadow overflow-hidden transition duration-300 mt-6';
447
+ newVideo.innerHTML = `
448
+ <div class="video-container">
449
+ <iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
450
+ </div>
451
+ <div class="p-4">
452
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">New AI Features Coming to Android 15</h3>
453
+ <p class="text-gray-600 text-sm mb-3">Leaked documents reveal Google is working on even more advanced AI capabilities for the next Android version, including real-time translation and predictive text that learns your writing style.</p>
454
+ <div class="flex items-center text-sm text-gray-500">
455
+ <span class="flex items-center mr-4">
456
+ <i class="fas fa-eye mr-1"></i> 178K views
457
+ </span>
458
+ <span class="flex items-center">
459
+ <i class="far fa-clock mr-1"></i> 3 days ago
460
+ </span>
461
+ </div>
462
+ </div>
463
+ `;
464
+ youtubeFeed.appendChild(newVideo);
465
+
466
+ // Add more Reddit posts
467
+ const redditFeed = document.getElementById('reddit-feed');
468
+ const newPost = document.createElement('div');
469
+ newPost.className = 'reddit-post bg-white rounded-lg shadow p-4 transition duration-300 mt-4';
470
+ newPost.innerHTML = `
471
+ <div class="flex items-start">
472
+ <div class="flex flex-col items-center mr-3">
473
+ <button class="text-gray-400 hover:text-blue-500">
474
+ <i class="fas fa-arrow-up"></i>
475
+ </button>
476
+ <span class="text-xs font-medium my-1">6.3k</span>
477
+ <button class="text-gray-400 hover:text-blue-500">
478
+ <i class="fas fa-arrow-down"></i>
479
+ </button>
480
+ </div>
481
+ <div class="flex-1">
482
+ <div class="flex items-center text-xs text-gray-500 mb-1">
483
+ <span class="font-medium text-gray-700">r/Android</span>
484
+ <span class="mx-1">•</span>
485
+ <span>Posted by u/tech_analyst</span>
486
+ <span class="mx-1">•</span>
487
+ <span>4 days ago</span>
488
+ </div>
489
+ <h3 class="text-lg font-semibold text-gray-800 mb-2">Samsung announces partnership with OpenAI to bring ChatGPT-like features to Galaxy devices</h3>
490
+ <p class="text-gray-700 text-sm mb-3">Samsung has revealed a strategic partnership with OpenAI that will bring advanced AI capabilities to future Galaxy devices. The collaboration focuses on optimizing large language models for mobile processors...</p>
491
+ <div class="flex space-x-4 text-xs text-gray-500">
492
+ <button class="flex items-center hover:text-gray-700">
493
+ <i class="far fa-comment mr-1"></i> 421 comments
494
+ </button>
495
+ <button class="flex items-center hover:text-gray-700">
496
+ <i class="fas fa-share mr-1"></i> Share
497
+ </button>
498
+ <button class="flex items-center hover:text-gray-700">
499
+ <i class="far fa-bookmark mr-1"></i> Save
500
+ </button>
501
+ </div>
502
+ </div>
503
+ </div>
504
+ `;
505
+ redditFeed.appendChild(newPost);
506
+
507
+ loadingIndicator.classList.add('hidden');
508
+ isLoading = false;
509
+ }, 1500);
510
+ }
511
+ </script>
512
+ <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=Letcool/androidnews" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
513
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ YouTube and reddit feed about android and artificial intelligence news with infinite scroll