Hamado commited on
Commit
26dffe2
·
verified ·
1 Parent(s): 4e4301b

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +369 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: My App
3
- emoji: 🐢
4
- colorFrom: gray
5
- colorTo: red
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: my-app
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,369 @@
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>DeployHub - Website Deployment Dashboard</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
+ .gradient-bg {
11
+ background: linear-gradient(135deg, #6e8efb, #a777e3);
12
+ }
13
+ .deploy-card:hover {
14
+ transform: translateY(-5px);
15
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
16
+ }
17
+ .progress-bar {
18
+ transition: width 0.5s ease-in-out;
19
+ }
20
+ .terminal {
21
+ font-family: 'Courier New', monospace;
22
+ background-color: #1e1e1e;
23
+ color: #f8f8f2;
24
+ }
25
+ </style>
26
+ </head>
27
+ <body class="bg-gray-50 min-h-screen">
28
+ <div class="gradient-bg text-white">
29
+ <nav class="container mx-auto px-6 py-4 flex justify-between items-center">
30
+ <div class="flex items-center space-x-2">
31
+ <i class="fas fa-rocket text-2xl"></i>
32
+ <span class="text-xl font-bold">DeployHub</span>
33
+ </div>
34
+ <div class="hidden md:flex space-x-8">
35
+ <a href="#" class="hover:text-gray-200">Dashboard</a>
36
+ <a href="#" class="hover:text-gray-200">Projects</a>
37
+ <a href="#" class="hover:text-gray-200">Deployments</a>
38
+ <a href="#" class="hover:text-gray-200">Settings</a>
39
+ </div>
40
+ <div class="flex items-center space-x-4">
41
+ <button class="bg-white text-indigo-600 px-4 py-2 rounded-lg font-medium hover:bg-gray-100 transition">
42
+ <i class="fas fa-plus mr-2"></i>New Project
43
+ </button>
44
+ <div class="w-10 h-10 rounded-full bg-white flex items-center justify-center text-indigo-600 font-bold">
45
+ JD
46
+ </div>
47
+ </div>
48
+ </nav>
49
+
50
+ <header class="container mx-auto px-6 py-16 text-center">
51
+ <h1 class="text-4xl md:text-5xl font-bold mb-6">Deploy Your Website</h1>
52
+ <p class="text-xl max-w-2xl mx-auto mb-8">Simple, fast and reliable website deployment with zero configuration</p>
53
+ <div class="flex flex-col md:flex-row justify-center space-y-4 md:space-y-0 md:space-x-4">
54
+ <button class="bg-white text-indigo-600 px-8 py-3 rounded-lg font-medium hover:bg-gray-100 transition">
55
+ <i class="fas fa-play mr-2"></i>Deploy Now
56
+ </button>
57
+ <button class="bg-transparent border-2 border-white text-white px-8 py-3 rounded-lg font-medium hover:bg-white hover:text-indigo-600 transition">
58
+ <i class="fas fa-book mr-2"></i>Documentation
59
+ </button>
60
+ </div>
61
+ </header>
62
+ </div>
63
+
64
+ <main class="container mx-auto px-6 py-12 -mt-12">
65
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
66
+ <!-- Deployment Card 1 -->
67
+ <div class="bg-white rounded-xl shadow-lg p-6 deploy-card transition duration-300">
68
+ <div class="flex justify-between items-center mb-4">
69
+ <h3 class="text-lg font-semibold">Static Website</h3>
70
+ <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Live</span>
71
+ </div>
72
+ <p class="text-gray-600 mb-6">Deploy HTML, CSS, and JavaScript files with global CDN</p>
73
+ <div class="mb-4">
74
+ <div class="flex justify-between text-sm text-gray-500 mb-1">
75
+ <span>Storage</span>
76
+ <span>1.2GB / 5GB</span>
77
+ </div>
78
+ <div class="w-full bg-gray-200 rounded-full h-2">
79
+ <div class="bg-blue-500 h-2 rounded-full progress-bar" style="width: 24%"></div>
80
+ </div>
81
+ </div>
82
+ <button class="w-full bg-indigo-600 text-white py-2 rounded-lg hover:bg-indigo-700 transition">
83
+ <i class="fas fa-upload mr-2"></i>Deploy Files
84
+ </button>
85
+ </div>
86
+
87
+ <!-- Deployment Card 2 -->
88
+ <div class="bg-white rounded-xl shadow-lg p-6 deploy-card transition duration-300">
89
+ <div class="flex justify-between items-center mb-4">
90
+ <h3 class="text-lg font-semibold">Node.js App</h3>
91
+ <span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Building</span>
92
+ </div>
93
+ <p class="text-gray-600 mb-6">Deploy server-side JavaScript applications with npm support</p>
94
+ <div class="mb-4">
95
+ <div class="flex justify-between text-sm text-gray-500 mb-1">
96
+ <span>Build Progress</span>
97
+ <span>65%</span>
98
+ </div>
99
+ <div class="w-full bg-gray-200 rounded-full h-2">
100
+ <div class="bg-yellow-500 h-2 rounded-full progress-bar" style="width: 65%"></div>
101
+ </div>
102
+ </div>
103
+ <button class="w-full bg-gray-200 text-gray-700 py-2 rounded-lg cursor-not-allowed" disabled>
104
+ <i class="fas fa-cog fa-spin mr-2"></i>Building...
105
+ </button>
106
+ </div>
107
+
108
+ <!-- Deployment Card 3 -->
109
+ <div class="bg-white rounded-xl shadow-lg p-6 deploy-card transition duration-300">
110
+ <div class="flex justify-between items-center mb-4">
111
+ <h3 class="text-lg font-semibold">Database</h3>
112
+ <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Ready</span>
113
+ </div>
114
+ <p class="text-gray-600 mb-6">Set up PostgreSQL, MySQL, or MongoDB databases</p>
115
+ <div class="mb-4">
116
+ <div class="flex justify-between text-sm text-gray-500 mb-1">
117
+ <span>Connections</span>
118
+ <span>12 active</span>
119
+ </div>
120
+ <div class="w-full bg-gray-200 rounded-full h-2">
121
+ <div class="bg-purple-500 h-2 rounded-full progress-bar" style="width: 60%"></div>
122
+ </div>
123
+ </div>
124
+ <button class="w-full bg-indigo-600 text-white py-2 rounded-lg hover:bg-indigo-700 transition">
125
+ <i class="fas fa-database mr-2"></i>Configure
126
+ </button>
127
+ </div>
128
+ </div>
129
+
130
+ <!-- Recent Deployments -->
131
+ <section class="mt-16">
132
+ <h2 class="text-2xl font-bold mb-6">Recent Deployments</h2>
133
+ <div class="bg-white rounded-xl shadow-lg overflow-hidden">
134
+ <div class="overflow-x-auto">
135
+ <table class="min-w-full divide-y divide-gray-200">
136
+ <thead class="bg-gray-50">
137
+ <tr>
138
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Project</th>
139
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
140
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Commit</th>
141
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
142
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
143
+ </tr>
144
+ </thead>
145
+ <tbody class="bg-white divide-y divide-gray-200">
146
+ <tr>
147
+ <td class="px-6 py-4 whitespace-nowrap">
148
+ <div class="flex items-center">
149
+ <div class="flex-shrink-0 h-10 w-10 bg-indigo-100 rounded-full flex items-center justify-center text-indigo-600">
150
+ <i class="fas fa-globe"></i>
151
+ </div>
152
+ <div class="ml-4">
153
+ <div class="text-sm font-medium text-gray-900">Portfolio Website</div>
154
+ <div class="text-sm text-gray-500">https://portfolio.johndoe.com</div>
155
+ </div>
156
+ </div>
157
+ </td>
158
+ <td class="px-6 py-4 whitespace-nowrap">
159
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Success</span>
160
+ </td>
161
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">a1b2c3d</td>
162
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 hours ago</td>
163
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
164
+ <a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
165
+ <a href="#" class="text-indigo-600 hover:text-indigo-900">Redeploy</a>
166
+ </td>
167
+ </tr>
168
+ <tr>
169
+ <td class="px-6 py-4 whitespace-nowrap">
170
+ <div class="flex items-center">
171
+ <div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600">
172
+ <i class="fas fa-server"></i>
173
+ </div>
174
+ <div class="ml-4">
175
+ <div class="text-sm font-medium text-gray-900">API Service</div>
176
+ <div class="text-sm text-gray-500">https://api.johndoe.com</div>
177
+ </div>
178
+ </div>
179
+ </td>
180
+ <td class="px-6 py-4 whitespace-nowrap">
181
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Building</span>
182
+ </td>
183
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">e4f5g6h</td>
184
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15 minutes ago</td>
185
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
186
+ <a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">Logs</a>
187
+ </td>
188
+ </tr>
189
+ <tr>
190
+ <td class="px-6 py-4 whitespace-nowrap">
191
+ <div class="flex items-center">
192
+ <div class="flex-shrink-0 h-10 w-10 bg-purple-100 rounded-full flex items-center justify-center text-purple-600">
193
+ <i class="fas fa-shopping-cart"></i>
194
+ </div>
195
+ <div class="ml-4">
196
+ <div class="text-sm font-medium text-gray-900">E-commerce Store</div>
197
+ <div class="text-sm text-gray-500">https://store.johndoe.com</div>
198
+ </div>
199
+ </div>
200
+ </td>
201
+ <td class="px-6 py-4 whitespace-nowrap">
202
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Failed</span>
203
+ </td>
204
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">i7j8k9l</td>
205
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 day ago</td>
206
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
207
+ <a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">Debug</a>
208
+ <a href="#" class="text-indigo-600 hover:text-indigo-900">Retry</a>
209
+ </td>
210
+ </tr>
211
+ </tbody>
212
+ </table>
213
+ </div>
214
+ </div>
215
+ </section>
216
+
217
+ <!-- Deployment Terminal -->
218
+ <section class="mt-16">
219
+ <h2 class="text-2xl font-bold mb-6">Deployment Terminal</h2>
220
+ <div class="terminal rounded-xl shadow-lg overflow-hidden">
221
+ <div class="px-4 py-3 bg-gray-800 flex items-center">
222
+ <div class="flex space-x-2 mr-4">
223
+ <div class="w-3 h-3 rounded-full bg-red-500"></div>
224
+ <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
225
+ <div class="w-3 h-3 rounded-full bg-green-500"></div>
226
+ </div>
227
+ <div class="text-sm text-gray-400">bash ~/projects/portfolio-website</div>
228
+ </div>
229
+ <div class="p-4">
230
+ <div class="mb-2">
231
+ <span class="text-green-400">$</span>
232
+ <span class="text-gray-400 ml-2">git push deploy main</span>
233
+ </div>
234
+ <div class="text-blue-400 mb-2">Enumerating objects: 15, done.</div>
235
+ <div class="text-blue-400 mb-2">Counting objects: 100% (15/15), done.</div>
236
+ <div class="text-blue-400 mb-2">Delta compression using up to 8 threads</div>
237
+ <div class="text-blue-400 mb-2">Compressing objects: 100% (10/10), done.</div>
238
+ <div class="text-blue-400 mb-2">Writing objects: 100% (10/10), 1.45 KiB | 1.45 MiB/s, done.</div>
239
+ <div class="text-blue-400 mb-2">Total 10 (delta 5), reused 0 (delta 0)</div>
240
+ <div class="text-green-400 mb-2">remote: Starting build...</div>
241
+ <div class="text-green-400 mb-2">remote: Installing dependencies...</div>
242
+ <div class="text-yellow-400 mb-2">remote: npm install</div>
243
+ <div class="text-gray-400 mb-2">added 125 packages in 2.345s</div>
244
+ <div class="text-green-400 mb-2">remote: Building application...</div>
245
+ <div class="text-green-400 mb-2">remote: Deployment complete!</div>
246
+ <div class="text-green-400 font-bold mb-2">remote: Your site is live at https://portfolio-abc123.deployhub.app</div>
247
+ <div class="text-gray-400">To https://deployhub.app/portfolio-website.git</div>
248
+ <div class="text-gray-400">a1b2c3d..e4f5g6h main -> main</div>
249
+ <div class="mt-4">
250
+ <span class="text-green-400">$</span>
251
+ <span class="text-gray-400 ml-2"><span class="cursor-blink">_</span></span>
252
+ </div>
253
+ </div>
254
+ </div>
255
+ </section>
256
+ </main>
257
+
258
+ <footer class="bg-gray-100 mt-16 py-12">
259
+ <div class="container mx-auto px-6">
260
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
261
+ <div>
262
+ <h3 class="text-lg font-semibold mb-4">DeployHub</h3>
263
+ <p class="text-gray-600">The simplest way to deploy your websites and web applications with global scale.</p>
264
+ </div>
265
+ <div>
266
+ <h3 class="text-lg font-semibold mb-4">Features</h3>
267
+ <ul class="space-y-2">
268
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Static Hosting</a></li>
269
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Serverless Functions</a></li>
270
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Edge Network</a></li>
271
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Automatic SSL</a></li>
272
+ </ul>
273
+ </div>
274
+ <div>
275
+ <h3 class="text-lg font-semibold mb-4">Resources</h3>
276
+ <ul class="space-y-2">
277
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Documentation</a></li>
278
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Guides</a></li>
279
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">API Reference</a></li>
280
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Community</a></li>
281
+ </ul>
282
+ </div>
283
+ <div>
284
+ <h3 class="text-lg font-semibold mb-4">Company</h3>
285
+ <ul class="space-y-2">
286
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">About</a></li>
287
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Blog</a></li>
288
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Careers</a></li>
289
+ <li><a href="#" class="text-gray-600 hover:text-indigo-600">Contact</a></li>
290
+ </ul>
291
+ </div>
292
+ </div>
293
+ <div class="border-t border-gray-200 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
294
+ <p class="text-gray-500">© 2023 DeployHub. All rights reserved.</p>
295
+ <div class="flex space-x-6 mt-4 md:mt-0">
296
+ <a href="#" class="text-gray-500 hover:text-indigo-600"><i class="fab fa-twitter"></i></a>
297
+ <a href="#" class="text-gray-500 hover:text-indigo-600"><i class="fab fa-github"></i></a>
298
+ <a href="#" class="text-gray-500 hover:text-indigo-600"><i class="fab fa-linkedin"></i></a>
299
+ <a href="#" class="text-gray-500 hover:text-indigo-600"><i class="fab fa-discord"></i></a>
300
+ </div>
301
+ </div>
302
+ </div>
303
+ </footer>
304
+
305
+ <script>
306
+ // Terminal cursor blink effect
307
+ function blinkCursor() {
308
+ const cursor = document.querySelector('.cursor-blink');
309
+ if (cursor) {
310
+ setInterval(() => {
311
+ cursor.style.visibility = cursor.style.visibility === 'hidden' ? 'visible' : 'hidden';
312
+ }, 500);
313
+ }
314
+ }
315
+
316
+ // Simulate deployment progress
317
+ function simulateDeployment() {
318
+ const progressBar = document.querySelector('.deploy-card:nth-child(2) .progress-bar');
319
+ if (progressBar) {
320
+ let width = 65;
321
+ const interval = setInterval(() => {
322
+ width += Math.random() * 5;
323
+ if (width >= 100) {
324
+ width = 100;
325
+ clearInterval(interval);
326
+
327
+ // Update status to "Success"
328
+ const statusElement = document.querySelector('.deploy-card:nth-child(2) span');
329
+ if (statusElement) {
330
+ statusElement.className = 'px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800';
331
+ statusElement.textContent = 'Success';
332
+
333
+ // Update button
334
+ const button = document.querySelector('.deploy-card:nth-child(2) button');
335
+ if (button) {
336
+ button.innerHTML = '<i class="fas fa-eye mr-2"></i>View Deployment';
337
+ button.className = 'w-full bg-indigo-600 text-white py-2 rounded-lg hover:bg-indigo-700 transition';
338
+ button.disabled = false;
339
+ }
340
+ }
341
+ }
342
+ progressBar.style.width = `${width}%`;
343
+
344
+ // Update percentage text
345
+ const percentText = document.querySelector('.deploy-card:nth-child(2) span:nth-child(2)');
346
+ if (percentText) {
347
+ percentText.textContent = `${Math.floor(width)}%`;
348
+ }
349
+ }, 800);
350
+ }
351
+ }
352
+
353
+ // Initialize
354
+ document.addEventListener('DOMContentLoaded', () => {
355
+ blinkCursor();
356
+ simulateDeployment();
357
+
358
+ // Add click event for deploy buttons
359
+ document.querySelectorAll('.deploy-card button').forEach(button => {
360
+ if (!button.disabled) {
361
+ button.addEventListener('click', () => {
362
+ alert('Deployment process started! Check the terminal for progress.');
363
+ });
364
+ }
365
+ });
366
+ });
367
+ </script>
368
+ <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=Hamado/my-app" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
369
+ </html>