Chasme commited on
Commit
4c9db5e
·
verified ·
1 Parent(s): eaf53ba

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +421 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Autotik
3
- emoji: 🌍
4
  colorFrom: yellow
5
- colorTo: purple
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: autotik
3
+ emoji: 🐳
4
  colorFrom: yellow
5
+ colorTo: red
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,421 @@
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="fr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>AutoTik - Automatisation TikTok</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
+ <script>
10
+ tailwind.config = {
11
+ darkMode: 'class',
12
+ theme: {
13
+ extend: {
14
+ colors: {
15
+ primary: '#FE2C55',
16
+ dark: '#121212',
17
+ darker: '#0a0a0a',
18
+ light: '#f8fafc',
19
+ }
20
+ }
21
+ }
22
+ }
23
+ </script>
24
+ <style>
25
+ /* Custom scrollbar */
26
+ ::-webkit-scrollbar {
27
+ width: 8px;
28
+ }
29
+ ::-webkit-scrollbar-track {
30
+ background: #1e1e1e;
31
+ }
32
+ ::-webkit-scrollbar-thumb {
33
+ background: #555;
34
+ border-radius: 4px;
35
+ }
36
+ ::-webkit-scrollbar-thumb:hover {
37
+ background: #777;
38
+ }
39
+
40
+ /* Animation for notifications */
41
+ @keyframes slideIn {
42
+ from { transform: translateX(100%); }
43
+ to { transform: translateX(0); }
44
+ }
45
+
46
+ .notification {
47
+ animation: slideIn 0.3s ease-out;
48
+ }
49
+ </style>
50
+ </head>
51
+ <body class="bg-dark text-light min-h-screen">
52
+ <!-- Header -->
53
+ <header class="bg-darker p-4 flex justify-between items-center border-b border-gray-800 sticky top-0 z-10">
54
+ <div class="flex items-center space-x-2">
55
+ <i class="fab fa-tiktok text-primary text-2xl"></i>
56
+ <h1 class="text-xl font-bold">AutoTik</h1>
57
+ </div>
58
+ <div class="flex space-x-4">
59
+ <button id="themeToggle" class="p-2 rounded-full hover:bg-gray-800">
60
+ <i class="fas fa-moon"></i>
61
+ </button>
62
+ <button class="p-2 rounded-full hover:bg-gray-800">
63
+ <i class="fas fa-cog"></i>
64
+ </button>
65
+ </div>
66
+ </header>
67
+
68
+ <!-- Main Content -->
69
+ <main class="container mx-auto p-4 pb-20">
70
+ <!-- Dashboard Section -->
71
+ <section class="mb-8">
72
+ <div class="flex justify-between items-center mb-4">
73
+ <h2 class="text-lg font-semibold">Tableau de bord</h2>
74
+ <button id="newAutomationBtn" class="bg-primary hover:bg-red-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2">
75
+ <i class="fas fa-plus"></i>
76
+ <span>Nouvelle automatisation</span>
77
+ </button>
78
+ </div>
79
+
80
+ <!-- Active Automations -->
81
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
82
+ <!-- Automation Card 1 -->
83
+ <div class="bg-gray-800 p-4 rounded-lg border-l-4 border-primary">
84
+ <div class="flex justify-between items-start">
85
+ <div>
86
+ <h3 class="font-medium">Publication TikTok quotidienne</h3>
87
+ <p class="text-gray-400 text-sm">Poste à 18h chaque jour</p>
88
+ </div>
89
+ <div class="flex space-x-2">
90
+ <button class="text-gray-400 hover:text-primary">
91
+ <i class="fas fa-edit"></i>
92
+ </button>
93
+ <button class="text-gray-400 hover:text-primary">
94
+ <i class="fas fa-toggle-on"></i>
95
+ </button>
96
+ </div>
97
+ </div>
98
+ <div class="mt-3 flex items-center text-sm text-gray-400">
99
+ <i class="fas fa-clock mr-2"></i>
100
+ <span>Dernière exécution: Aujourd'hui, 18:00</span>
101
+ </div>
102
+ </div>
103
+
104
+ <!-- Automation Card 2 -->
105
+ <div class="bg-gray-800 p-4 rounded-lg border-l-4 border-blue-500">
106
+ <div class="flex justify-between items-start">
107
+ <div>
108
+ <h3 class="font-medium">Publication Wi-Fi</h3>
109
+ <p class="text-gray-400 text-sm">Poste quand connecté au Wi-Fi</p>
110
+ </div>
111
+ <div class="flex space-x-2">
112
+ <button class="text-gray-400 hover:text-blue-500">
113
+ <i class="fas fa-edit"></i>
114
+ </button>
115
+ <button class="text-gray-400 hover:text-blue-500">
116
+ <i class="fas fa-toggle-on"></i>
117
+ </button>
118
+ </div>
119
+ </div>
120
+ <div class="mt-3 flex items-center text-sm text-gray-400">
121
+ <i class="fas fa-clock mr-2"></i>
122
+ <span>Dernière exécution: Hier, 14:30</span>
123
+ </div>
124
+ </div>
125
+ </div>
126
+ </section>
127
+
128
+ <!-- TikTok Section -->
129
+ <section class="mb-8">
130
+ <h2 class="text-lg font-semibold mb-4">Publications TikTok</h2>
131
+
132
+ <!-- Video Queue -->
133
+ <div class="bg-gray-800 rounded-lg p-4 mb-6">
134
+ <div class="flex justify-between items-center mb-4">
135
+ <h3 class="font-medium">File d'attente des vidéos</h3>
136
+ <button class="text-primary hover:underline">Voir tout</button>
137
+ </div>
138
+
139
+ <div class="overflow-x-auto">
140
+ <div class="flex space-x-4 pb-2">
141
+ <!-- Video Thumbnail 1 -->
142
+ <div class="flex-shrink-0 w-24 h-32 bg-gray-700 rounded-lg relative overflow-hidden">
143
+ <div class="absolute inset-0 flex items-center justify-center">
144
+ <i class="fas fa-play text-primary text-2xl"></i>
145
+ </div>
146
+ <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-70 p-1 text-xs">
147
+ <p class="truncate">Vidéo du weekend</p>
148
+ <p class="text-gray-400">Programmé: 18:00</p>
149
+ </div>
150
+ </div>
151
+
152
+ <!-- Video Thumbnail 2 -->
153
+ <div class="flex-shrink-0 w-24 h-32 bg-gray-700 rounded-lg relative overflow-hidden">
154
+ <div class="absolute inset-0 flex items-center justify-center">
155
+ <i class="fas fa-play text-primary text-2xl"></i>
156
+ </div>
157
+ <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-70 p-1 text-xs">
158
+ <p class="truncate">Tutoriel maquillage</p>
159
+ <p class="text-gray-400">En attente</p>
160
+ </div>
161
+ </div>
162
+
163
+ <!-- Add Video Button -->
164
+ <div class="flex-shrink-0 w-24 h-32 border-2 border-dashed border-gray-600 rounded-lg flex items-center justify-center">
165
+ <button class="text-gray-400 hover:text-primary">
166
+ <i class="fas fa-plus text-2xl"></i>
167
+ </button>
168
+ </div>
169
+ </div>
170
+ </div>
171
+ </div>
172
+
173
+ <!-- Quick Stats -->
174
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-6">
175
+ <div class="bg-gray-800 p-4 rounded-lg">
176
+ <p class="text-gray-400 text-sm">Vidéos programmées</p>
177
+ <p class="text-xl font-bold">5</p>
178
+ </div>
179
+ <div class="bg-gray-800 p-4 rounded-lg">
180
+ <p class="text-gray-400 text-sm">Vidéos publiées</p>
181
+ <p class="text-xl font-bold">12</p>
182
+ </div>
183
+ <div class="bg-gray-800 p-4 rounded-lg">
184
+ <p class="text-gray-400 text-sm">Vues totales</p>
185
+ <p class="text-xl font-bold">24.5K</p>
186
+ </div>
187
+ <div class="bg-gray-800 p-4 rounded-lg">
188
+ <p class="text-gray-400 text-sm">Nouveaux abonnés</p>
189
+ <p class="text-xl font-bold">+342</p>
190
+ </div>
191
+ </div>
192
+ </section>
193
+
194
+ <!-- Activity Log -->
195
+ <section>
196
+ <h2 class="text-lg font-semibold mb-4">Journal d'activité</h2>
197
+
198
+ <div class="bg-gray-800 rounded-lg p-4">
199
+ <div class="flex justify-between items-center mb-4">
200
+ <h3 class="font-medium">Historique des actions</h3>
201
+ <button class="text-primary hover:underline">Filtrer</button>
202
+ </div>
203
+
204
+ <div class="space-y-4 max-h-96 overflow-y-auto">
205
+ <!-- Log Entry 1 -->
206
+ <div class="border-b border-gray-700 pb-3">
207
+ <div class="flex justify-between">
208
+ <p class="font-medium">Publication TikTok réussie</p>
209
+ <p class="text-gray-400 text-sm">Aujourd'hui, 18:00</p>
210
+ </div>
211
+ <p class="text-gray-400 text-sm mt-1">"Vidéo du weekend" publiée avec 5 hashtags</p>
212
+ </div>
213
+
214
+ <!-- Log Entry 2 -->
215
+ <div class="border-b border-gray-700 pb-3">
216
+ <div class="flex justify-between">
217
+ <p class="font-medium">Nouvelle vidéo ajoutée</p>
218
+ <p class="text-gray-400 text-sm">Aujourd'hui, 15:30</p>
219
+ </div>
220
+ <p class="text-gray-400 text-sm mt-1">"Tutoriel maquillage" ajoutée à la file d'attente</p>
221
+ </div>
222
+
223
+ <!-- Log Entry 3 -->
224
+ <div class="border-b border-gray-700 pb-3">
225
+ <div class="flex justify-between">
226
+ <p class="font-medium">Publication TikTok réussie</p>
227
+ <p class="text-gray-400 text-sm">Hier, 18:00</p>
228
+ </div>
229
+ <p class="text-gray-400 text-sm mt-1">"Aperçu du produit" publiée avec 3 hashtags</p>
230
+ </div>
231
+
232
+ <!-- Log Entry 4 -->
233
+ <div class="border-b border-gray-700 pb-3">
234
+ <div class="flex justify-between">
235
+ <p class="font-medium">Automatisation créée</p>
236
+ <p class="text-gray-400 text-sm">Hier, 12:15</p>
237
+ </div>
238
+ <p class="text-gray-400 text-sm mt-1">"Publication Wi-Fi" configurée</p>
239
+ </div>
240
+ </div>
241
+ </div>
242
+ </section>
243
+ </main>
244
+
245
+ <!-- Bottom Navigation -->
246
+ <nav class="fixed bottom-0 left-0 right-0 bg-darker border-t border-gray-800 flex justify-around py-3">
247
+ <a href="#" class="flex flex-col items-center text-primary">
248
+ <i class="fas fa-home text-xl"></i>
249
+ <span class="text-xs mt-1">Accueil</span>
250
+ </a>
251
+ <a href="#" class="flex flex-col items-center text-gray-400 hover:text-primary">
252
+ <i class="fas fa-list text-xl"></i>
253
+ <span class="text-xs mt-1">Automatisations</span>
254
+ </a>
255
+ <a href="#" class="flex flex-col items-center text-gray-400 hover:text-primary">
256
+ <i class="fab fa-tiktok text-xl"></i>
257
+ <span class="text-xs mt-1">TikTok</span>
258
+ </a>
259
+ <a href="#" class="flex flex-col items-center text-gray-400 hover:text-primary">
260
+ <i class="fas fa-history text-xl"></i>
261
+ <span class="text-xs mt-1">Journal</span>
262
+ </a>
263
+ </nav>
264
+
265
+ <!-- New Automation Modal -->
266
+ <div id="automationModal" class="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50 hidden">
267
+ <div class="bg-gray-800 rounded-lg w-full max-w-md mx-4 max-h-[90vh] overflow-y-auto">
268
+ <div class="p-4 border-b border-gray-700 flex justify-between items-center">
269
+ <h3 class="text-lg font-semibold">Nouvelle automatisation</h3>
270
+ <button id="closeModalBtn" class="text-gray-400 hover:text-white">
271
+ <i class="fas fa-times"></i>
272
+ </button>
273
+ </div>
274
+
275
+ <div class="p-4">
276
+ <div class="mb-6">
277
+ <label class="block text-gray-400 mb-2">Nom de l'automatisation</label>
278
+ <input type="text" class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:border-primary">
279
+ </div>
280
+
281
+ <div class="mb-6">
282
+ <label class="block text-gray-400 mb-2">Type d'automatisation</label>
283
+ <div class="grid grid-cols-2 gap-3">
284
+ <button class="bg-gray-700 hover:bg-gray-600 p-3 rounded-lg flex flex-col items-center">
285
+ <i class="fab fa-tiktok text-primary text-2xl mb-2"></i>
286
+ <span>Publication TikTok</span>
287
+ </button>
288
+ <button class="bg-gray-700 hover:bg-gray-600 p-3 rounded-lg flex flex-col items-center">
289
+ <i class="fas fa-clock text-blue-500 text-2xl mb-2"></i>
290
+ <span>Déclencheur horaire</span>
291
+ </button>
292
+ <button class="bg-gray-700 hover:bg-gray-600 p-3 rounded-lg flex flex-col items-center">
293
+ <i class="fas fa-wifi text-green-500 text-2xl mb-2"></i>
294
+ <span>Connexion Wi-Fi</span>
295
+ </button>
296
+ <button class="bg-gray-700 hover:bg-gray-600 p-3 rounded-lg flex flex-col items-center">
297
+ <i class="fas fa-map-marker-alt text-yellow-500 text-2xl mb-2"></i>
298
+ <span>Localisation</span>
299
+ </button>
300
+ </div>
301
+ </div>
302
+
303
+ <div class="mb-6">
304
+ <label class="block text-gray-400 mb-2">Actions</label>
305
+ <div class="space-y-3">
306
+ <div class="bg-gray-700 p-3 rounded-lg flex items-center justify-between">
307
+ <div class="flex items-center">
308
+ <i class="fab fa-tiktok text-primary mr-3"></i>
309
+ <span>Publier sur TikTok</span>
310
+ </div>
311
+ <i class="fas fa-chevron-right text-gray-400"></i>
312
+ </div>
313
+ <div class="bg-gray-700 p-3 rounded-lg flex items-center justify-between">
314
+ <div class="flex items-center">
315
+ <i class="fas fa-envelope text-blue-500 mr-3"></i>
316
+ <span>Envoyer un SMS/Email</span>
317
+ </div>
318
+ <i class="fas fa-chevron-right text-gray-400"></i>
319
+ </div>
320
+ <div class="bg-gray-700 p-3 rounded-lg flex items-center justify-between">
321
+ <div class="flex items-center">
322
+ <i class="fas fa-power-off text-green-500 mr-3"></i>
323
+ <span>Activer/Désactiver Wi-Fi</span>
324
+ </div>
325
+ <i class="fas fa-chevron-right text-gray-400"></i>
326
+ </div>
327
+ </div>
328
+ </div>
329
+
330
+ <button class="w-full bg-primary hover:bg-red-600 text-white py-3 rounded-lg font-medium">
331
+ Créer l'automatisation
332
+ </button>
333
+ </div>
334
+ </div>
335
+ </div>
336
+
337
+ <!-- Notification -->
338
+ <div id="notification" class="fixed bottom-20 right-4 bg-gray-800 border-l-4 border-primary p-3 rounded-lg shadow-lg notification hidden max-w-xs">
339
+ <div class="flex items-start">
340
+ <i class="fas fa-check-circle text-primary mr-2 mt-1"></i>
341
+ <div>
342
+ <p class="font-medium">Publication réussie</p>
343
+ <p class="text-gray-400 text-sm">Votre vidéo TikTok a été publiée avec succès</p>
344
+ </div>
345
+ </div>
346
+ </div>
347
+
348
+ <script>
349
+ // Theme toggle
350
+ const themeToggle = document.getElementById('themeToggle');
351
+ const body = document.body;
352
+
353
+ themeToggle.addEventListener('click', () => {
354
+ body.classList.toggle('dark');
355
+ if (body.classList.contains('dark')) {
356
+ themeToggle.innerHTML = '<i class="fas fa-sun"></i>';
357
+ } else {
358
+ themeToggle.innerHTML = '<i class="fas fa-moon"></i>';
359
+ }
360
+ });
361
+
362
+ // Modal handling
363
+ const newAutomationBtn = document.getElementById('newAutomationBtn');
364
+ const automationModal = document.getElementById('automationModal');
365
+ const closeModalBtn = document.getElementById('closeModalBtn');
366
+
367
+ newAutomationBtn.addEventListener('click', () => {
368
+ automationModal.classList.remove('hidden');
369
+ });
370
+
371
+ closeModalBtn.addEventListener('click', () => {
372
+ automationModal.classList.add('hidden');
373
+ });
374
+
375
+ // Show notification (demo)
376
+ setTimeout(() => {
377
+ const notification = document.getElementById('notification');
378
+ notification.classList.remove('hidden');
379
+
380
+ setTimeout(() => {
381
+ notification.classList.add('hidden');
382
+ }, 5000);
383
+ }, 2000);
384
+
385
+ // Simulate TikTok API connection
386
+ function connectToTikTokAPI() {
387
+ // In a real app, this would use OAuth to connect to TikTok's API
388
+ console.log("Connexion à l'API TikTok...");
389
+ // Store credentials securely (in a real app, use encrypted storage)
390
+ localStorage.setItem('tiktok_connected', 'true');
391
+ showCustomNotification("Connecté à TikTok avec succès", "success");
392
+ }
393
+
394
+ function showCustomNotification(message, type = "success") {
395
+ const notification = document.createElement('div');
396
+ notification.className = `fixed bottom-20 right-4 bg-gray-800 border-l-4 border-${type === 'success' ? 'primary' : 'red-500'} p-3 rounded-lg shadow-lg notification max-w-xs`;
397
+ notification.innerHTML = `
398
+ <div class="flex items-start">
399
+ <i class="fas fa-${type === 'success' ? 'check-circle' : 'exclamation-circle'} text-${type === 'success' ? 'primary' : 'red-500'} mr-2 mt-1"></i>
400
+ <div>
401
+ <p class="font-medium">${type === 'success' ? 'Succès' : 'Erreur'}</p>
402
+ <p class="text-gray-400 text-sm">${message}</p>
403
+ </div>
404
+ </div>
405
+ `;
406
+
407
+ document.body.appendChild(notification);
408
+ setTimeout(() => {
409
+ notification.remove();
410
+ }, 5000);
411
+ }
412
+
413
+ // For demo purposes, simulate TikTok connection
414
+ if (!localStorage.getItem('tiktok_connected')) {
415
+ setTimeout(() => {
416
+ connectToTikTokAPI();
417
+ }, 3000);
418
+ }
419
+ </script>
420
+ <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=Chasme/autotik" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
421
+ </html>