Malasanas commited on
Commit
247096b
·
verified ·
1 Parent(s): 2d21c87

حول الكود إلى ملف apk - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +302 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Huggingface Co
3
- emoji: 🐨
4
- colorFrom: gray
5
- colorTo: blue
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: huggingface-co
3
+ emoji: 🐳
4
+ colorFrom: green
5
+ colorTo: gray
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,302 @@
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
+
2
+ {
3
+ "name": "Hugging Face Mobile",
4
+ "short_name": "HuggingFace",
5
+ "start_url": "index.html",
6
+ "display": "standalone",
7
+ "background_color": "#4f46e5",
8
+ "theme_color": "#4f46e5",
9
+ "icons": [
10
+ {
11
+ "src": "https://huggingface.co/front/assets/huggingface_logo.svg",
12
+ "sizes": "512x512",
13
+ "type": "image/svg+xml",
14
+ "purpose": "any maskable"
15
+ }
16
+ ]
17
+ }
18
+
19
+ <!DOCTYPE html>
20
+ <html lang="en">
21
+ <head>
22
+ <meta charset="UTF-8">
23
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
24
+ <meta name="mobile-web-app-capable" content="yes">
25
+ <meta name="apple-mobile-web-app-capable" content="yes">
26
+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
27
+ <meta name="theme-color" content="#4f46e5">
28
+ <link rel="manifest" href="manifest.json">
29
+ <title>Hugging Face Mobile</title>
30
+ <script src="https://cdn.tailwindcss.com"></script>
31
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
32
+ <style>
33
+ /* Splash screen */
34
+ .splash {
35
+ position: fixed;
36
+ width: 100%;
37
+ height: 100%;
38
+ background: #4f46e5;
39
+ display: flex;
40
+ justify-content: center;
41
+ align-items: center;
42
+ z-index: 9999;
43
+ }
44
+ .splash img {
45
+ width: 150px;
46
+ height: 150px;
47
+ }
48
+
49
+ /* Custom scrollbar */
50
+ ::-webkit-scrollbar {
51
+ width: 6px;
52
+ }
53
+ ::-webkit-scrollbar-track {
54
+ background: #f1f1f1;
55
+ }
56
+ ::-webkit-scrollbar-thumb {
57
+ background: #888;
58
+ border-radius: 3px;
59
+ }
60
+ ::-webkit-scrollbar-thumb:hover {
61
+ background: #555;
62
+ }
63
+
64
+ /* Animation for loading */
65
+ @keyframes pulse {
66
+ 0%, 100% {
67
+ opacity: 1;
68
+ }
69
+ 50% {
70
+ opacity: 0.5;
71
+ }
72
+ }
73
+ .animate-pulse {
74
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
75
+ }
76
+
77
+ /* Custom transitions */
78
+ .transition-all {
79
+ transition-property: all;
80
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
81
+ transition-duration: 200ms;
82
+ }
83
+ </style>
84
+ </head>
85
+ <body class="bg-gray-50 text-gray-800 font-sans">
86
+ <!-- Splash Screen -->
87
+ <div class="splash" id="splash">
88
+ <img src="https://huggingface.co/front/assets/huggingface_logo.svg" alt="Hugging Face Logo">
89
+ </div>
90
+
91
+ <!-- App Container -->
92
+ <div class="flex flex-col h-screen max-w-md mx-auto bg-white shadow-lg">
93
+ <!-- Header -->
94
+ <header class="bg-white border-b border-gray-200 sticky top-0 z-10">
95
+ <div class="flex items-center justify-between p-4">
96
+ <div class="flex items-center space-x-2">
97
+ <img src="https://huggingface.co/front/assets/huggingface_logo.svg" alt="Hugging Face" class="h-8">
98
+ <span class="font-bold text-lg">Hugging Face</span>
99
+ </div>
100
+ <div class="flex items-center space-x-3">
101
+ <button class="text-gray-600 hover:text-gray-900">
102
+ <i class="fas fa-search"></i>
103
+ </button>
104
+ <button class="text-gray-600 hover:text-gray-900">
105
+ <i class="fas fa-user"></i>
106
+ </button>
107
+ </div>
108
+ </div>
109
+ </header>
110
+
111
+ <!-- Main Content -->
112
+ <main class="flex-1 overflow-y-auto">
113
+ <!-- Hero Section -->
114
+ <section class="bg-gradient-to-r from-purple-500 to-indigo-600 text-white p-6">
115
+ <h1 class="text-2xl font-bold mb-2">The AI community building the future.</h1>
116
+ <p class="text-sm opacity-90 mb-4">Discover, explore, and collaborate on state-of-the-art ML models.</p>
117
+ <div class="flex space-x-3">
118
+ <button class="bg-white text-indigo-600 px-4 py-2 rounded-full text-sm font-semibold flex items-center">
119
+ <i class="fas fa-rocket mr-2"></i> Get Started
120
+ </button>
121
+ <button class="border border-white text-white px-4 py-2 rounded-full text-sm font-semibold">
122
+ Learn More
123
+ </button>
124
+ </div>
125
+ </section>
126
+
127
+ <!-- Search Bar -->
128
+ <div class="p-4 border-b border-gray-200 sticky top-16 bg-white z-10">
129
+ <div class="relative">
130
+ <input type="text" placeholder="Search models, datasets, spaces..."
131
+ class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
132
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
133
+ </div>
134
+ </div>
135
+
136
+ <!-- Categories -->
137
+ <div class="p-4 border-b border-gray-200 overflow-x-auto">
138
+ <div class="flex space-x-3 whitespace-nowrap">
139
+ <button class="bg-indigo-100 text-indigo-700 px-4 py-1 rounded-full text-sm font-medium">All</button>
140
+ <button class="bg-gray-100 text-gray-700 px-4 py-1 rounded-full text-sm font-medium">Models</button>
141
+ <button class="bg-gray-100 text-gray-700 px-4 py-1 rounded-full text-sm font-medium">Datasets</button>
142
+ <button class="bg-gray-100 text-gray-700 px-4 py-1 rounded-full text-sm font-medium">Spaces</button>
143
+ <button class="bg-gray-100 text-gray-700 px-4 py-1 rounded-full text-sm font-medium">Posts</button>
144
+ </div>
145
+ </div>
146
+
147
+ <!-- Trending Models -->
148
+ <section class="p-4">
149
+ <div class="flex justify-between items-center mb-3">
150
+ <h2 class="font-bold text-lg">Trending Models</h2>
151
+ <button class="text-indigo-600 text-sm font-medium">See all</button>
152
+ </div>
153
+
154
+ <div class="grid grid-cols-2 gap-3">
155
+ <!-- Model Card 1 -->
156
+ <div class="border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-all">
157
+ <div class="p-3">
158
+ <div class="flex items-center mb-2">
159
+ <img src="https://huggingface.co/front/assets/huggingface_logo.svg" class="w-6 h-6 rounded-full mr-2">
160
+ <span class="text-sm font-medium truncate">OpenAI</span>
161
+ </div>
162
+ <h3 class="font-semibold text-sm mb-1">GPT-4</h3>
163
+ <p class="text-xs text-gray-500 mb-2 line-clamp-2">The most advanced AI model from OpenAI with multimodal capabilities.</p>
164
+ <div class="flex justify-between items-center text-xs text-gray-500">
165
+ <span><i class="fas fa-download mr-1"></i> 1.2M</span>
166
+ <span><i class="fas fa-star mr-1"></i> 4.9</span>
167
+ </div>
168
+ </div>
169
+ </div>
170
+
171
+ <!-- Model Card 2 -->
172
+ <div class="border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-all">
173
+ <div class="p-3">
174
+ <div class="flex items-center mb-2">
175
+ <img src="https://huggingface.co/front/assets/huggingface_logo.svg" class="w-6 h-6 rounded-full mr-2">
176
+ <span class="text-sm font-medium truncate">Stability AI</span>
177
+ </div>
178
+ <h3 class="font-semibold text-sm mb-1">Stable Diffusion</h3>
179
+ <p class="text-xs text-gray-500 mb-2 line-clamp-2">Text-to-image model that creates photorealistic images from text prompts.</p>
180
+ <div class="flex justify-between items-center text-xs text-gray-500">
181
+ <span><i class="fas fa-download mr-1"></i> 890K</span>
182
+ <span><i class="fas fa-star mr-1"></i> 4.8</span>
183
+ </div>
184
+ </div>
185
+ </div>
186
+ </div>
187
+ </section>
188
+
189
+ <!-- Recent Activity -->
190
+ <section class="p-4 border-t border-gray-200">
191
+ <div class="flex justify-between items-center mb-3">
192
+ <h2 class="font-bold text-lg">Recent Activity</h2>
193
+ <button class="text-indigo-600 text-sm font-medium">See all</button>
194
+ </div>
195
+
196
+ <div class="space-y-4">
197
+ <!-- Activity Item 1 -->
198
+ <div class="flex items-start">
199
+ <img src="https://randomuser.me/api/portraits/women/32.jpg" class="w-10 h-10 rounded-full mr-3">
200
+ <div class="flex-1">
201
+ <div class="flex items-center mb-1">
202
+ <span class="font-medium text-sm mr-2">Sarah Johnson</span>
203
+ <span class="text-xs text-gray-500">2h ago</span>
204
+ </div>
205
+ <p class="text-sm mb-1">Uploaded a new model: <span class="font-medium">BERT-finetuned-squad</span></p>
206
+ <div class="flex space-x-2 text-xs text-gray-500">
207
+ <span><i class="fas fa-thumbs-up mr-1"></i> 24</span>
208
+ <span><i class="fas fa-comment mr-1"></i> 5</span>
209
+ </div>
210
+ </div>
211
+ </div>
212
+
213
+ <!-- Activity Item 2 -->
214
+ <div class="flex items-start">
215
+ <img src="https://randomuser.me/api/portraits/men/44.jpg" class="w-10 h-10 rounded-full mr-3">
216
+ <div class="flex-1">
217
+ <div class="flex items-center mb-1">
218
+ <span class="font-medium text-sm mr-2">Alex Chen</span>
219
+ <span class="text-xs text-gray-500">5h ago</span>
220
+ </div>
221
+ <p class="text-sm mb-1">Created a new Space: <span class="font-medium">Real-time Object Detection</span></p>
222
+ <div class="flex space-x-2 text-xs text-gray-500">
223
+ <span><i class="fas fa-thumbs-up mr-1"></i> 42</span>
224
+ <span><i class="fas fa-comment mr-1"></i> 8</span>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </div>
229
+ </section>
230
+
231
+ <!-- Loading Indicator (hidden by default) -->
232
+ <div id="loadingIndicator" class="p-4 hidden">
233
+ <div class="flex justify-center items-center space-x-2 text-gray-500">
234
+ <div class="animate-pulse h-4 w-4 bg-gray-400 rounded-full"></div>
235
+ <div class="animate-pulse h-4 w-4 bg-gray-400 rounded-full delay-100"></div>
236
+ <div class="animate-pulse h-4 w-4 bg-gray-400 rounded-full delay-200"></div>
237
+ </div>
238
+ </div>
239
+ </main>
240
+
241
+ <!-- Bottom Navigation -->
242
+ <nav class="bg-white border-t border-gray-200 flex justify-around items-center p-3">
243
+ <a href="#" class="text-indigo-600 flex flex-col items-center">
244
+ <i class="fas fa-home text-lg"></i>
245
+ <span class="text-xs mt-1">Home</span>
246
+ </a>
247
+ <a href="#" class="text-gray-600 hover:text-indigo-600 flex flex-col items-center">
248
+ <i class="fas fa-box-open text-lg"></i>
249
+ <span class="text-xs mt-1">Models</span>
250
+ </a>
251
+ <a href="#" class="text-gray-600 hover:text-indigo-600 flex flex-col items-center">
252
+ <i class="fas fa-database text-lg"></i>
253
+ <span class="text-xs mt-1">Datasets</span>
254
+ </a>
255
+ <a href="#" class="text-gray-600 hover:text-indigo-600 flex flex-col items-center">
256
+ <i class="fas fa-user text-lg"></i>
257
+ <span class="text-xs mt-1">Profile</span>
258
+ </a>
259
+ </nav>
260
+ </div>
261
+
262
+ <script>
263
+ // Hide splash screen when loaded
264
+ window.addEventListener('load', function() {
265
+ setTimeout(function() {
266
+ document.getElementById('splash').style.display = 'none';
267
+ }, 2000);
268
+
269
+ // Simulate loading content
270
+ // Show loading indicator when clicking search
271
+ const searchInput = document.querySelector('input[type="text"]');
272
+ searchInput.addEventListener('focus', function() {
273
+ document.getElementById('loadingIndicator').classList.remove('hidden');
274
+ setTimeout(() => {
275
+ document.getElementById('loadingIndicator').classList.add('hidden');
276
+ }, 1500);
277
+ });
278
+
279
+ // Simple tab switching for categories
280
+ const categoryButtons = document.querySelectorAll('.flex.space-x-3 button');
281
+ categoryButtons.forEach(button => {
282
+ button.addEventListener('click', function() {
283
+ categoryButtons.forEach(btn => {
284
+ btn.classList.remove('bg-indigo-100', 'text-indigo-700');
285
+ btn.classList.add('bg-gray-100', 'text-gray-700');
286
+ });
287
+ this.classList.add('bg-indigo-100', 'text-indigo-700');
288
+ this.classList.remove('bg-gray-100', 'text-gray-700');
289
+ });
290
+ });
291
+
292
+ // Simulate model card click
293
+ const modelCards = document.querySelectorAll('.grid.grid-cols-2 > div');
294
+ modelCards.forEach(card => {
295
+ card.addEventListener('click', function() {
296
+ alert('Model details would open here in the full app');
297
+ });
298
+ });
299
+ });
300
+ </script>
301
+ <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=Malasanas/huggingface-co" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
302
+ </html>