File size: 22,108 Bytes
1b4b65f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shorts Automator | YouTube Content Manager</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .gradient-bg {
            background: linear-gradient(135deg, #FF5F6D 0%, #FFC371 100%);
        }
        .video-preview {
            aspect-ratio: 9/16;
        }
        .sidebar {
            transition: all 0.3s ease;
        }
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                z-index: 50;
                height: 100vh;
            }
            .sidebar.active {
                transform: translateX(0);
            }
        }
        .schedule-time-input::-webkit-calendar-picker-indicator {
            filter: invert(1);
        }
    </style>
</head>
<body class="bg-gray-100 font-sans">
    <div class="flex h-screen overflow-hidden">
        <!-- Sidebar -->
        <div class="sidebar bg-gray-900 text-white w-64 flex-shrink-0">
            <div class="p-4 flex items-center space-x-3 border-b border-gray-700">
                <i class="fas fa-bolt text-yellow-400 text-2xl"></i>
                <h1 class="text-xl font-bold">Shorts Automator</h1>
            </div>
            <nav class="p-4 space-y-2">
                <a href="#" class="flex items-center space-x-3 p-3 rounded-lg bg-gray-800 text-yellow-400">
                    <i class="fas fa-home"></i>
                    <span>Dashboard</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-800">
                    <i class="fas fa-upload"></i>
                    <span>Upload Shorts</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-800">
                    <i class="fas fa-calendar-alt"></i>
                    <span>Schedule</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-800">
                    <i class="fas fa-chart-line"></i>
                    <span>Analytics</span>
                </a>
                <a href="#" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-800">
                    <i class="fas fa-cog"></i>
                    <span>Settings</span>
                </a>
            </nav>
            <div class="absolute bottom-0 w-full p-4 border-t border-gray-700">
                <div class="flex items-center space-x-3">
                    <div class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center">
                        <i class="fas fa-user"></i>
                    </div>
                    <div>
                        <p class="font-medium">Your Account</p>
                        <p class="text-xs text-gray-400">Connected</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <div class="flex-1 flex flex-col overflow-hidden">
            <!-- Mobile Header -->
            <div class="md:hidden bg-gray-900 text-white p-4 flex items-center justify-between">
                <button id="menuToggle" class="text-xl">
                    <i class="fas fa-bars"></i>
                </button>
                <h1 class="text-xl font-bold">Shorts Automator</h1>
                <div class="w-6"></div> <!-- Spacer for alignment -->
            </div>

            <!-- Main Content Area -->
            <main class="flex-1 overflow-y-auto p-6">
                <div class="max-w-7xl mx-auto">
                    <!-- Header -->
                    <div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-8">
                        <div>
                            <h2 class="text-2xl font-bold text-gray-800">Dashboard</h2>
                            <p class="text-gray-600">Automate your YouTube Shorts posting</p>
                        </div>
                        <button class="gradient-bg text-white px-6 py-2 rounded-lg font-medium mt-4 md:mt-0 flex items-center space-x-2 hover:opacity-90 transition">
                            <i class="fas fa-plus"></i>
                            <span>New Short</span>
                        </button>
                    </div>

                    <!-- Stats Cards -->
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
                        <div class="bg-white rounded-xl shadow p-6">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-gray-500">Total Shorts</p>
                                    <h3 class="text-3xl font-bold mt-1">24</h3>
                                </div>
                                <div class="p-3 rounded-full bg-blue-100 text-blue-600">
                                    <i class="fas fa-film text-xl"></i>
                                </div>
                            </div>
                            <p class="text-green-500 text-sm mt-2">+5 this week</p>
                        </div>
                        <div class="bg-white rounded-xl shadow p-6">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-gray-500">Scheduled</p>
                                    <h3 class="text-3xl font-bold mt-1">8</h3>
                                </div>
                                <div class="p-3 rounded-full bg-purple-100 text-purple-600">
                                    <i class="fas fa-calendar-alt text-xl"></i>
                                </div>
                            </div>
                            <p class="text-blue-500 text-sm mt-2">Next: in 2 hours</p>
                        </div>
                        <div class="bg-white rounded-xl shadow p-6">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-gray-500">Average Views</p>
                                    <h3 class="text-3xl font-bold mt-1">3.2K</h3>
                                </div>
                                <div class="p-3 rounded-full bg-green-100 text-green-600">
                                    <i class="fas fa-eye text-xl"></i>
                                </div>
                            </div>
                            <p class="text-green-500 text-sm mt-2">↑ 12% from last week</p>
                        </div>
                    </div>

                    <!-- Upload Section -->
                    <div class="bg-white rounded-xl shadow p-6 mb-8">
                        <h3 class="text-xl font-bold text-gray-800 mb-4">Upload New Short</h3>
                        
                        <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
                            <!-- Video Upload -->
                            <div class="lg:col-span-2">
                                <div class="border-2 border-dashed border-gray-300 rounded-xl p-6 text-center video-preview flex flex-col items-center justify-center">
                                    <i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-4"></i>
                                    <p class="text-gray-500 mb-2">Drag & drop your Short video here</p>
                                    <p class="text-sm text-gray-400 mb-4">or</p>
                                    <button class="gradient-bg text-white px-6 py-2 rounded-lg font-medium flex items-center space-x-2 hover:opacity-90 transition">
                                        <i class="fas fa-folder-open"></i>
                                        <span>Browse Files</span>
                                    </button>
                                    <p class="text-xs text-gray-400 mt-3">MP4, MOV • 9:16 aspect ratio • Max 60s</p>
                                </div>
                            </div>
                            
                            <!-- Details Form -->
                            <div>
                                <div class="space-y-4">
                                    <div>
                                        <label class="block text-gray-700 mb-1">Title</label>
                                        <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent" placeholder="Catchy title for your Short">
                                    </div>
                                    <div>
                                        <label class="block text-gray-700 mb-1">Description</label>
                                        <textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent" rows="3" placeholder="Tell viewers about your Short"></textarea>
                                    </div>
                                    <div>
                                        <label class="block text-gray-700 mb-1">Tags</label>
                                        <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent" placeholder="#shorts #viral #trending">
                                        <p class="text-xs text-gray-500 mt-1">Separate tags with spaces</p>
                                    </div>
                                    <div>
                                        <label class="block text-gray-700 mb-1">Schedule</label>
                                        <div class="flex items-center space-x-2">
                                            <select class="flex-1 px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent">
                                                <option>Publish immediately</option>
                                                <option>Schedule for later</option>
                                                <option>Add to queue</option>
                                            </select>
                                            <input type="datetime-local" class="px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent bg-gray-100 schedule-time-input">
                                        </div>
                                    </div>
                                    <div class="pt-2">
                                        <button class="gradient-bg text-white w-full py-3 rounded-lg font-medium flex items-center justify-center space-x-2 hover:opacity-90 transition">
                                            <i class="fas fa-paper-plane"></i>
                                            <span>Publish Short</span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Scheduled Shorts -->
                    <div class="bg-white rounded-xl shadow p-6">
                        <div class="flex justify-between items-center mb-6">
                            <h3 class="text-xl font-bold text-gray-800">Scheduled Shorts</h3>
                            <div class="flex items-center space-x-2">
                                <button class="px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
                                    <i class="fas fa-filter"></i>
                                </button>
                                <button class="px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
                                    <i class="fas fa-sort"></i>
                                </button>
                            </div>
                        </div>

                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Thumbnail</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Title</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Schedule Time</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="w-16 h-24 bg-gray-200 rounded overflow-hidden">
                                                <img src="https://via.placeholder.com/1080x1920" class="w-full h-full object-cover">
                                            </div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="text-sm font-medium text-gray-900">Morning Routine 2023</div>
                                            <div class="text-sm text-gray-500">#routine #morning</div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="text-sm text-gray-900">Today, 8:00 AM</div>
                                            <div class="text-xs text-gray-500">in 2 hours</div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Scheduled</span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="w-16 h-24 bg-gray-200 rounded overflow-hidden">
                                                <img src="https://via.placeholder.com/1080x1920" class="w-full h-full object-cover">
                                            </div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="text-sm font-medium text-gray-900">5 Minute Workout</div>
                                            <div class="text-sm text-gray-500">#fitness #workout</div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="text-sm text-gray-900">Tomorrow, 7:00 AM</div>
                                            <div class="text-xs text-gray-500">in 25 hours</div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Queued</span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="w-16 h-24 bg-gray-200 rounded overflow-hidden">
                                                <img src="https://via.placeholder.com/1080x1920" class="w-full h-full object-cover">
                                            </div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="text-sm font-medium text-gray-900">Quick Recipe Idea</div>
                                            <div class="text-sm text-gray-500">#cooking #food</div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <div class="text-sm text-gray-900">Friday, 12:00 PM</div>
                                            <div class="text-xs text-gray-500">in 3 days</div>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Queued</span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <button class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-edit"></i></button>
                                            <button class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>

    <script>
        // Mobile menu toggle
        document.getElementById('menuToggle').addEventListener('click', function() {
            document.querySelector('.sidebar').classList.toggle('active');
        });

        // Connect to YouTube API
        function connectYouTube() {
            // In a real implementation, this would connect to YouTube API
            alert('Connecting to your YouTube account...');
            // You would implement OAuth flow here
        }

        // File upload handling
        const fileUpload = document.querySelector('.video-preview');
        fileUpload.addEventListener('dragover', (e) => {
            e.preventDefault();
            fileUpload.classList.add('border-yellow-400', 'bg-yellow-50');
        });

        fileUpload.addEventListener('dragleave', () => {
            fileUpload.classList.remove('border-yellow-400', 'bg-yellow-50');
        });

        fileUpload.addEventListener('drop', (e) => {
            e.preventDefault();
            fileUpload.classList.remove('border-yellow-400', 'bg-yellow-50');
            
            // Handle the dropped files
            const files = e.dataTransfer.files;
            if (files.length) {
                const file = files[0];
                if (file.type.includes('video')) {
                    // Create video preview
                    const videoURL = URL.createObjectURL(file);
                    fileUpload.innerHTML = `
                        <video src="${videoURL}" controls class="w-full h-full object-cover rounded-lg"></video>
                        <p class="text-sm text-white bg-black bg-opacity-50 px-2 py-1 rounded absolute bottom-2 left-2">${file.name}</p>
                    `;
                } else {
                    alert('Please upload a video file');
                }
            }
        });

        // Form submission
        document.querySelector('button[type="submit"]')?.addEventListener('click', function(e) {
            e.preventDefault();
            // In a real implementation, this would submit to YouTube API
            alert('Your Short has been scheduled!');
        });
    </script>
<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=Dappi/devilking" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>