Spaces:
Running

File size: 16,899 Bytes
d7a3f7d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>5-Minute Video Creator</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>
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        .animate-pulse-slow {
            animation: pulse 3s infinite;
        }
        .video-preview {
            aspect-ratio: 16/9;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .timeline-marker {
            width: 2px;
            height: 20px;
            background-color: white;
            position: absolute;
            bottom: 0;
        }
        .progress-bar {
            transition: width 0.3s ease;
        }
        .media-item:hover .media-actions {
            opacity: 1;
        }
        .media-actions {
            opacity: 0;
            transition: opacity 0.2s ease;
        }
    </style>
</head>
<body class="bg-gray-100 min-h-screen">
    <div class="container mx-auto px-4 py-8">
        <!-- Header -->
        <header class="flex justify-between items-center mb-8">
            <div class="flex items-center space-x-2">
                <i class="fas fa-video text-indigo-600 text-2xl"></i>
                <h1 class="text-2xl font-bold text-gray-800">5-Minute Video Creator</h1>
            </div>
            <div class="flex space-x-4">
                <button class="px-4 py-2 bg-gray-200 hover:bg-gray-300 rounded-lg text-gray-700 transition">
                    <i class="fas fa-question-circle mr-2"></i>Help
                </button>
                <button class="px-4 py-2 bg-indigo-600 hover:bg-indigo-700 rounded-lg text-white transition">
                    <i class="fas fa-user mr-2"></i>Account
                </button>
            </div>
        </header>

        <!-- Main Content -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
            <!-- Left Panel - Media Library -->
            <div class="lg:col-span-1 bg-white rounded-xl shadow-md p-4">
                <div class="flex justify-between items-center mb-4">
                    <h2 class="text-lg font-semibold text-gray-700">Media Library</h2>
                    <button class="text-indigo-600 hover:text-indigo-800">
                        <i class="fas fa-plus"></i> Add Media
                    </button>
                </div>
                
                <div class="space-y-2 mb-4">
                    <div class="flex items-center p-2 bg-gray-100 rounded-lg">
                        <i class="fas fa-search text-gray-500 mr-2"></i>
                        <input type="text" placeholder="Search media..." class="bg-transparent w-full outline-none text-gray-700">
                    </div>
                </div>
                
                <div class="space-y-4">
                    <div class="media-item relative group">
                        <div class="bg-gray-200 rounded-lg overflow-hidden aspect-video">
                            <img src="https://images.unsplash.com/photo-1574717024453-354f3986ca54?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" 
                                 alt="Media thumbnail" class="w-full h-full object-cover">
                        </div>
                        <div class="media-actions absolute top-2 right-2 flex space-x-1">
                            <button class="p-1 bg-white rounded-full shadow-md text-indigo-600 hover:bg-indigo-100">
                                <i class="fas fa-plus text-xs"></i>
                            </button>
                            <button class="p-1 bg-white rounded-full shadow-md text-red-600 hover:bg-red-100">
                                <i class="fas fa-trash text-xs"></i>
                            </button>
                        </div>
                        <p class="text-sm text-gray-700 mt-1 truncate">Beach sunset.mp4</p>
                        <p class="text-xs text-gray-500">0:22</p>
                    </div>
                    
                    <div class="media-item relative group">
                        <div class="bg-gray-200 rounded-lg overflow-hidden aspect-video">
                            <img src="https://images.unsplash.com/photo-1506744038136-4627381bda51?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" 
                                 alt="Media thumbnail" class="w-full h-full object-cover">
                        </div>
                        <div class="media-actions absolute top-2 right-2 flex space-x-1">
                            <button class="p-1 bg-white rounded-full shadow-md text-indigo-600 hover:bg-indigo-100">
                                <i class="fas fa-plus text-xs"></i>
                            </button>
                            <button class="p-1 bg-white rounded-full shadow-md text-red-600 hover:bg-red-100">
                                <i class="fas fa-trash text-xs"></i>
                            </button>
                        </div>
                        <p class="text-sm text-gray-700 mt-1 truncate">Mountain view.mp4</p>
                        <p class="text-xs text-gray-500">0:45</p>
                    </div>
                    
                    <div class="media-item relative group">
                        <div class="bg-gray-200 rounded-lg overflow-hidden aspect-video">
                            <img src="https://images.unsplash.com/photo-1519125323398-675f0ddb6308?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=500&q=80" 
                                 alt="Media thumbnail" class="w-full h-full object-cover">
                        </div>
                        <div class="media-actions absolute top-2 right-2 flex space-x-1">
                            <button class="p-1 bg-white rounded-full shadow-md text-indigo-600 hover:bg-indigo-100">
                                <i class="fas fa-plus text-xs"></i>
                            </button>
                            <button class="p-1 bg-white rounded-full shadow-md text-red-600 hover:bg-red-100">
                                <i class="fas fa-trash text-xs"></i>
                            </button>
                        </div>
                        <p class="text-sm text-gray-700 mt-1 truncate">Forest walk.mp4</p>
                        <p class="text-xs text-gray-500">1:15</p>
                    </div>
                </div>
            </div>
            
            <!-- Center Panel - Video Editor -->
            <div class="lg:col-span-2 space-y-6">
                <!-- Video Preview -->
                <div class="bg-white rounded-xl shadow-md p-4">
                    <h2 class="text-lg font-semibold text-gray-700 mb-4">Video Preview</h2>
                    <div class="video-preview rounded-lg relative overflow-hidden flex items-center justify-center">
                        <div class="text-center text-white">
                            <i class="fas fa-play-circle text-5xl mb-2 opacity-70"></i>
                            <p class="text-xl font-medium">Your video will appear here</p>
                        </div>
                    </div>
                    
                    <!-- Timeline -->
                    <div class="mt-4">
                        <div class="flex justify-between items-center mb-2">
                            <span class="text-sm text-gray-600">0:00</span>
                            <span class="text-sm text-gray-600">5:00</span>
                        </div>
                        <div class="relative h-8 bg-gray-200 rounded-full overflow-hidden">
                            <div class="progress-bar h-full bg-indigo-600 rounded-full" style="width: 30%"></div>
                            <div class="timeline-marker" style="left: 30%"></div>
                        </div>
                        <div class="flex justify-between mt-2">
                            <span class="text-xs text-gray-500">Current: 1:30</span>
                            <span class="text-xs text-gray-500">Remaining: 3:30</span>
                        </div>
                    </div>
                </div>
                
                <!-- Video Controls -->
                <div class="bg-white rounded-xl shadow-md p-4">
                    <div class="flex justify-center space-x-6">
                        <button class="p-3 bg-gray-100 hover:bg-gray-200 rounded-full text-gray-700 transition">
                            <i class="fas fa-cut text-lg"></i>
                        </button>
                        <button class="p-3 bg-gray-100 hover:bg-gray-200 rounded-full text-gray-700 transition">
                            <i class="fas fa-text-height text-lg"></i>
                        </button>
                        <button class="p-3 bg-gray-100 hover:bg-gray-200 rounded-full text-gray-700 transition">
                            <i class="fas fa-music text-lg"></i>
                        </button>
                        <button class="p-3 bg-gray-100 hover:bg-gray-200 rounded-full text-gray-700 transition">
                            <i class="fas fa-sliders-h text-lg"></i>
                        </button>
                    </div>
                    
                    <div class="flex justify-center space-x-4 mt-6">
                        <button class="px-6 py-2 bg-gray-200 hover:bg-gray-300 rounded-lg text-gray-700 transition">
                            <i class="fas fa-undo mr-2"></i>Undo
                        </button>
                        <button class="px-6 py-2 bg-indigo-600 hover:bg-indigo-700 rounded-lg text-white transition">
                            <i class="fas fa-play mr-2"></i>Preview
                        </button>
                        <button class="px-6 py-2 bg-green-600 hover:bg-green-700 rounded-lg text-white transition">
                            <i class="fas fa-file-export mr-2"></i>Export
                        </button>
                    </div>
                </div>
                
                <!-- Video Segments -->
                <div class="bg-white rounded-xl shadow-md p-4">
                    <h2 class="text-lg font-semibold text-gray-700 mb-4">Video Segments</h2>
                    <div class="space-y-3">
                        <div class="flex items-center p-3 bg-gray-50 rounded-lg border border-gray-200">
                            <div class="w-16 h-16 bg-indigo-100 rounded-md flex items-center justify-center text-indigo-600 mr-3">
                                <i class="fas fa-play"></i>
                            </div>
                            <div class="flex-1">
                                <p class="font-medium text-gray-700">Intro Sequence</p>
                                <p class="text-sm text-gray-500">0:00 - 0:30</p>
                            </div>
                            <button class="p-2 text-gray-500 hover:text-red-500">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                        
                        <div class="flex items-center p-3 bg-gray-50 rounded-lg border border-gray-200">
                            <div class="w-16 h-16 bg-blue-100 rounded-md flex items-center justify-center text-blue-600 mr-3">
                                <i class="fas fa-image"></i>
                            </div>
                            <div class="flex-1">
                                <p class="font-medium text-gray-700">Product Showcase</p>
                                <p class="text-sm text-gray-500">0:30 - 2:15</p>
                            </div>
                            <button class="p-2 text-gray-500 hover:text-red-500">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                        
                        <div class="flex items-center p-3 bg-gray-50 rounded-lg border border-gray-200">
                            <div class="w-16 h-16 bg-purple-100 rounded-md flex items-center justify-center text-purple-600 mr-3">
                                <i class="fas fa-text-height"></i>
                            </div>
                            <div class="flex-1">
                                <p class="font-medium text-gray-700">Call to Action</p>
                                <p class="text-sm text-gray-500">2:15 - 3:00</p>
                            </div>
                            <button class="p-2 text-gray-500 hover:text-red-500">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                        
                        <div class="flex items-center p-3 bg-gray-50 rounded-lg border border-gray-200">
                            <div class="w-16 h-16 bg-green-100 rounded-md flex items-center justify-center text-green-600 mr-3">
                                <i class="fas fa-music"></i>
                            </div>
                            <div class="flex-1">
                                <p class="font-medium text-gray-700">Outro with Music</p>
                                <p class="text-sm text-gray-500">3:00 - 5:00</p>
                            </div>
                            <button class="p-2 text-gray-500 hover:text-red-500">
                                <i class="fas fa-trash"></i>
                            </button>
                        </div>
                    </div>
                    
                    <button class="w-full mt-4 py-2 border-2 border-dashed border-gray-300 rounded-lg text-gray-500 hover:border-indigo-300 hover:text-indigo-500 transition">
                        <i class="fas fa-plus mr-2"></i> Add Segment
                    </button>
                </div>
            </div>
        </div>
        
        <!-- Footer -->
        <footer class="mt-12 text-center text-gray-500 text-sm">
            <p>© 2023 5-Minute Video Creator. All rights reserved.</p>
            <p class="mt-1">Made with <i class="fas fa-heart text-red-500"></i> for content creators</p>
        </footer>
    </div>

    <script>
        // Simple demo functionality
        document.addEventListener('DOMContentLoaded', function() {
            // Add media to timeline
            const addButtons = document.querySelectorAll('.media-actions button:first-child');
            addButtons.forEach(button => {
                button.addEventListener('click', function() {
                    alert('Media added to timeline!');
                });
            });
            
            // Delete media
            const deleteButtons = document.querySelectorAll('.media-actions button:last-child');
            deleteButtons.forEach(button => {
                button.addEventListener('click', function() {
                    if(confirm('Are you sure you want to delete this media?')) {
                        const mediaItem = this.closest('.media-item');
                        mediaItem.style.opacity = '0';
                        setTimeout(() => mediaItem.remove(), 200);
                    }
                });
            });
            
            // Preview button
            const previewBtn = document.querySelector('button:has(.fa-play)');
            previewBtn.addEventListener('click', function() {
                alert('Video preview will play here in a real implementation!');
            });
            
            // Export button
            const exportBtn = document.querySelector('button:has(.fa-file-export)');
            exportBtn.addEventListener('click', function() {
                alert('Your 5-minute video will be exported here!');
            });
        });
    </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=juice253/first" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>