Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>MP4 Generation Complete</title> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| :root { | |
| --primary-color: #6366f1; | |
| --primary-dark: #4f46e5; | |
| --success-color: #10b981; | |
| --success-dark: #059669; | |
| --background: #0f172a; | |
| --card-bg: #1e293b; | |
| --text-primary: #f1f5f9; | |
| --text-secondary: #94a3b8; | |
| --border-color: #334155; | |
| } | |
| body { | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| background: var(--background); | |
| min-height: 100vh; | |
| color: var(--text-primary); | |
| overflow-x: hidden; | |
| } | |
| /* Header */ | |
| header { | |
| background: rgba(30, 41, 59, 0.8); | |
| backdrop-filter: blur(10px); | |
| border-bottom: 1px solid var(--border-color); | |
| padding: 1rem 2rem; | |
| position: fixed; | |
| width: 100%; | |
| top: 0; | |
| z-index: 100; | |
| } | |
| .header-content { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| text-decoration: none; | |
| } | |
| .logo i { | |
| color: var(--primary-color); | |
| } | |
| .anycoder-link { | |
| color: var(--primary-color); | |
| text-decoration: none; | |
| font-weight: 600; | |
| padding: 0.5rem 1rem; | |
| border-radius: 8px; | |
| transition: all 0.3s ease; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .anycoder-link:hover { | |
| background: rgba(99, 102, 241, 0.1); | |
| transform: translateY(-2px); | |
| } | |
| /* Main Content */ | |
| main { | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 6rem 2rem 2rem; | |
| } | |
| .container { | |
| max-width: 800px; | |
| width: 100%; | |
| } | |
| /* Success Card */ | |
| .success-card { | |
| background: var(--card-bg); | |
| border-radius: 24px; | |
| padding: 3rem; | |
| border: 1px solid var(--border-color); | |
| box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .success-card::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 4px; | |
| background: linear-gradient(90deg, var(--success-color), var(--primary-color)); | |
| } | |
| /* Animated Checkmark */ | |
| .checkmark-container { | |
| width: 120px; | |
| height: 120px; | |
| margin: 0 auto 2rem; | |
| position: relative; | |
| } | |
| .checkmark-circle { | |
| width: 120px; | |
| height: 120px; | |
| border-radius: 50%; | |
| background: linear-gradient(135deg, var(--success-color), var(--success-dark)); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| animation: scaleIn 0.5s ease-out; | |
| box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3); | |
| } | |
| .checkmark-circle i { | |
| font-size: 3.5rem; | |
| color: white; | |
| animation: drawCheck 0.8s ease-out 0.3s both; | |
| } | |
| @keyframes scaleIn { | |
| 0% { | |
| transform: scale(0); | |
| opacity: 0; | |
| } | |
| 50% { | |
| transform: scale(1.1); | |
| } | |
| 100% { | |
| transform: scale(1); | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes drawCheck { | |
| 0% { | |
| stroke-dashoffset: 50; | |
| opacity: 0; | |
| } | |
| 100% { | |
| stroke-dashoffset: 0; | |
| opacity: 1; | |
| } | |
| } | |
| /* Pulse Ring */ | |
| .pulse-ring { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| width: 120px; | |
| height: 120px; | |
| border-radius: 50%; | |
| border: 3px solid var(--success-color); | |
| opacity: 0; | |
| animation: pulse 2s ease-out infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { | |
| transform: translate(-50%, -50%) scale(1); | |
| opacity: 0.5; | |
| } | |
| 100% { | |
| transform: translate(-50%, -50%) scale(1.8); | |
| opacity: 0; | |
| } | |
| } | |
| /* Title */ | |
| .success-title { | |
| text-align: center; | |
| font-size: 2.5rem; | |
| font-weight: 700; | |
| margin-bottom: 1rem; | |
| background: linear-gradient(135deg, var(--text-primary), var(--primary-color)); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| .subtitle { | |
| text-align: center; | |
| font-size: 1.25rem; | |
| color: var(--text-secondary); | |
| margin-bottom: 2rem; | |
| } | |
| /* File Info Section */ | |
| .file-info { | |
| background: rgba(99, 102, 241, 0.1); | |
| border-radius: 16px; | |
| padding: 1.5rem; | |
| margin-bottom: 2rem; | |
| border: 1px solid rgba(99, 102, 241, 0.2); | |
| } | |
| .file-info-header { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| margin-bottom: 1rem; | |
| } | |
| .file-info-header i { | |
| color: var(--primary-color); | |
| font-size: 1.25rem; | |
| } | |
| .file-info-header h3 { | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| } | |
| .file-details { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 1rem; | |
| } | |
| .file-detail { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.25rem; | |
| } | |
| .file-detail label { | |
| font-size: 0.85rem; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .file-detail span { | |
| font-weight: 600; | |
| font-size: 1rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .file-detail span i { | |
| color: var(--success-color); | |
| } | |
| /* Progress Animation */ | |
| .processing-animation { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| gap: 0.5rem; | |
| margin: 2rem 0; | |
| padding: 1rem; | |
| background: rgba(16, 185, 129, 0.1); | |
| border-radius: 12px; | |
| } | |
| .processing-animation span { | |
| width: 12px; | |
| height: 12px; | |
| background: var(--success-color); | |
| border-radius: 50%; | |
| animation: bounce 1.4s ease-in-out infinite both; | |
| } | |
| .processing-animation span:nth-child(1) { animation-delay: -0.32s; } | |
| .processing-animation span:nth-child(2) { animation-delay: -0.16s; } | |
| @keyframes bounce { | |
| 0%, 80%, 100% { | |
| transform: scale(0); | |
| } | |
| 40% { | |
| transform: scale(1); | |
| } | |
| } | |
| .processing-text { | |
| color: var(--success-color); | |
| font-weight: 600; | |
| animation: blink 1s ease-in-out infinite; | |
| } | |
| @keyframes blink { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| /* Info Box */ | |
| .info-box { | |
| background: rgba(148, 163, 184, 0.1); | |
| border-radius: 12px; | |
| padding: 1.25rem; | |
| border-left: 4px solid var(--primary-color); | |
| } | |
| .info-box-header { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| margin-bottom: 0.75rem; | |
| font-weight: 600; | |
| color: var(--primary-color); | |
| } | |
| .info-box p { | |
| color: var(--text-secondary); | |
| line-height: 1.6; | |
| font-size: 0.95rem; | |
| } | |
| .info-box code { | |
| background: rgba(99, 102, 241, 0.2); | |
| padding: 0.2rem 0.5rem; | |
| border-radius: 4px; | |
| font-family: 'Courier New', monospace; | |
| color: var(--primary-color); | |
| } | |
| /* Action Buttons */ | |
| .action-buttons { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 2rem; | |
| flex-wrap: wrap; | |
| justify-content: center; | |
| } | |
| .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| padding: 0.875rem 1.75rem; | |
| border-radius: 12px; | |
| font-size: 1rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| border: none; | |
| text-decoration: none; | |
| } | |
| .btn-primary { | |
| background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); | |
| color: white; | |
| box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); | |
| } | |
| .btn-primary:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); | |
| } | |
| .btn-secondary { | |
| background: var(--card-bg); | |
| color: var(--text-primary); | |
| border: 2px solid var(--border-color); | |
| } | |
| .btn-secondary:hover { | |
| border-color: var(--primary-color); | |
| color: var(--primary-color); | |
| transform: translateY(-2px); | |
| } | |
| /* Floating Elements */ | |
| .floating-elements { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| pointer-events: none; | |
| overflow: hidden; | |
| z-index: -1; | |
| } | |
| .floating-element { | |
| position: absolute; | |
| width: 10px; | |
| height: 10px; | |
| background: var(--primary-color); | |
| border-radius: 50%; | |
| opacity: 0.1; | |
| animation: float 20s linear infinite; | |
| } | |
| @keyframes float { | |
| 0% { | |
| transform: translateY(100vh) rotate(0deg); | |
| opacity: 0; | |
| } | |
| 10% { | |
| opacity: 0.1; | |
| } | |
| 90% { | |
| opacity: 0.1; | |
| } | |
| 100% { | |
| transform: translateY(-100vh) rotate(720deg); | |
| opacity: 0; | |
| } | |
| } | |
| /* Video Preview Placeholder */ | |
| .video-preview { | |
| width: 100%; | |
| max-width: 400px; | |
| height: 225px; | |
| background: linear-gradient(135deg, #1a1a2e, #16213e); | |
| border-radius: 16px; | |
| margin: 0 auto 2rem; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| position: relative; | |
| overflow: hidden; | |
| border: 1px solid var(--border-color); | |
| } | |
| .video-preview::before { | |
| content: ''; | |
| position: absolute; | |
| width: 60px; | |
| height: 60px; | |
| background: rgba(255, 255, 255, 0.1); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| animation: videoPulse 2s ease-in-out infinite; | |
| } | |
| .video-preview::after { | |
| content: ''; | |
| position: absolute; | |
| width: 0; | |
| height: 0; | |
| border-left: 20px solid white; | |
| border-top: 12px solid transparent; | |
| border-bottom: 12px solid transparent; | |
| margin-left: 5px; | |
| } | |
| @keyframes videoPulse { | |
| 0%, 100% { | |
| transform: scale(1); | |
| box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); | |
| } | |
| 50% { | |
| transform: scale(1.1); | |
| box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); | |
| } | |
| } | |
| .video-duration { | |
| position: absolute; | |
| bottom: 10px; | |
| right: 10px; | |
| background: rgba(0, 0, 0, 0.8); | |
| padding: 0.25rem 0.5rem; | |
| border-radius: 4px; | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .header-content { | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .success-card { | |
| padding: 2rem 1.5rem; | |
| } | |
| .success-title { | |
| font-size: 1.75rem; | |
| } | |
| .subtitle { | |
| font-size: 1rem; | |
| } | |
| .file-details { | |
| grid-template-columns: 1fr; | |
| } | |
| .action-buttons { | |
| flex-direction: column; | |
| } | |
| .btn { | |
| width: 100%; | |
| justify-content: center; | |
| } | |
| } | |
| /* Timeline visualization */ | |
| .timeline { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin: 2rem 0; | |
| position: relative; | |
| padding: 0 1rem; | |
| } | |
| .timeline::before { | |
| content: ''; | |
| position: absolute; | |
| top: 50%; | |
| left: 0; | |
| right: 0; | |
| height: 4px; | |
| background: var(--border-color); | |
| transform: translateY(-50%); | |
| z-index: 0; | |
| } | |
| .timeline-step { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 0.5rem; | |
| z-index: 1; | |
| background: var(--card-bg); | |
| padding: 0 0.5rem; | |
| } | |
| .timeline-step .icon { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| background: var(--border-color); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: var(--text-secondary); | |
| transition: all 0.3s ease; | |
| } | |
| .timeline-step.completed .icon { | |
| background: var(--success-color); | |
| color: white; | |
| } | |
| .timeline-step.active .icon { | |
| background: var(--primary-color); | |
| color: white; | |
| animation: stepPulse 2s ease-in-out infinite; | |
| } | |
| @keyframes stepPulse { | |
| 0%, 100% { | |
| box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); | |
| } | |
| 50% { | |
| box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); | |
| } | |
| } | |
| .timeline-step span { | |
| font-size: 0.75rem; | |
| color: var(--text-secondary); | |
| white-space: nowrap; | |
| } | |
| .timeline-step.completed span, | |
| .timeline-step.active span { | |
| color: var(--text-primary); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- Floating Background Elements --> | |
| <div class="floating-elements" id="floatingElements"></div> | |
| <!-- Header --> | |
| <header> | |
| <div class="header-content"> | |
| <a href="#" class="logo"> | |
| <i class="fas fa-film"></i> | |
| <span>VideoGen Pro</span> | |
| </a> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-link"> | |
| <i class="fas fa-code"></i> | |
| Built with anycoder | |
| </a> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main> | |
| <div class="container"> | |
| <div class="success-card"> | |
| <!-- Animated Checkmark --> | |
| <div class="checkmark-container"> | |
| <div class="pulse-ring"></div> | |
| <div class="checkmark-circle"> | |
| <i class="fas fa-check"></i> | |
| </div> | |
| </div> | |
| <!-- Video Preview --> | |
| <div class="video-preview"> | |
| <div class="video-duration">00:15</div> | |
| </div> | |
| <!-- Title --> | |
| <h1 class="success-title">MP4 Generation Complete!</h1> | |
| <p class="subtitle">Your video has been successfully processed and is ready for download.</p> | |
| <!-- Timeline --> | |
| <div class="timeline"> | |
| <div class="timeline-step completed"> | |
| <div class="icon"> | |
| <i class="fas fa-upload"></i> | |
| </div> | |
| <span>Upload</span> | |
| </div> | |
| <div class="timeline-step completed"> | |
| <div class="icon"> | |
| <i class="fas fa-cogs"></i> | |
| </div> | |
| <span>Process</span> | |
| </div> | |
| <div class="timeline-step active"> | |
| <div class="icon"> | |
| <i class="fas fa-check"></i> | |
| </div> | |
| <span>Complete</span> | |
| </div> | |
| </div> | |
| <!-- Processing Animation --> | |
| <div class="processing-animation"> | |
| <span></span> | |
| <span></span> | |
| <span></span> | |
| <p class="processing-text">Generating video file...</p> | |
| </div> | |
| <!-- File Information --> | |
| <div class="file-info"> | |
| <div class="file-info-header"> | |
| <i class="fas fa-file-video"></i> | |
| <h3>Generated File Details</h3> | |
| </div> | |
| <div class="file-details"> | |
| <div class="file-detail"> | |
| <label>Format</label> | |
| <span><i class="fas fa-check-circle"></i> MP4 (H.264)</span> | |
| </div> | |
| <div class="file-detail"> | |
| <label>Resolution</label> | |
| <span><i class="fas fa-check-circle"></i> 1920×1080 (Full HD)</span> | |
| </div> | |
| <div class="file-detail"> | |
| <label>Duration</label> | |
| <span><i class="fas fa-check-circle"></i> 15 seconds</span> | |
| </div> | |
| <div class="file-detail"> | |
| <label>File Size</label> | |
| <span><i class="fas fa-check-circle"></i> ~2.4 MB</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Info Box --> | |
| <div class="info-box"> | |
| <div class="info-box-header"> | |
| <i class="fas fa-info-circle"></i> | |
| About This Demo | |
| </div> | |
| <p> | |
| In a full implementation, this would use powerful video processing libraries such as | |
| <code>FFmpeg</code>, <code>OpenCV</code>, or <code>MoviePy</code> to render your video. | |
| These libraries handle video encoding, decoding, filters, transitions, and audio synchronization | |
| to produce high-quality MP4 files directly in the browser or on the server. | |
| </p> | |
| </div> | |
| <!-- Action Buttons --> | |
| <div class="action-buttons"> | |
| <button class="btn btn-primary" onclick="simulateDownload()"> | |
| <i class="fas fa-download"></i> | |
| Download MP4 | |
| </button> | |
| <button class="btn btn-secondary" onclick="generateNew()"> | |
| <i class="fas fa-redo"></i> | |
| Generate New | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <script> | |
| // Create floating background elements | |
| function createFloatingElements() { | |
| const container = document.getElementById('floatingElements'); | |
| const colors = ['#6366f1', '#10b981', '#f59e0b', '#ef4444', '#8b5cf6']; | |
| for (let i = 0; i < 20; i++) { | |
| const element = document.createElement('div'); | |
| element.className = 'floating-element'; | |
| element.style.left = Math.random() * 100 + '%'; | |
| element.style.width = (Math.random() * 10 + 5) + 'px'; | |
| element.style.height = element.style.width; | |
| element.style.background = colors[Math.floor(Math.random() * colors.length)]; | |
| element.style.animationDuration = (Math.random() * 20 + 15) + 's'; | |
| element.style.animationDelay = (Math.random() * 10) + 's'; | |
| container.appendChild(element); | |
| } | |
| } | |
| // Simulate download action | |
| function simulateDownload() { | |
| const btn = event.target; | |
| const originalHTML = btn.innerHTML; | |
| btn.innerHTML = '<i class="fas fa-spinner fa-spin"></i> Preparing download...'; | |
| btn.disabled = true; | |
| setTimeout(() => { | |
| btn.innerHTML = '<i class="fas fa-check"></i> Download Started!'; | |
| btn.style.background = 'linear-gradient(135deg, #10b981, #059669)'; | |
| setTimeout(() => { | |
| btn.innerHTML = originalHTML; | |
| btn.disabled = false; | |
| btn.style.background = ''; | |
| }, 2000); | |
| }, 1500); | |
| } | |
| // Generate new video (reset animation) | |
| function generateNew() { | |
| const card = document.querySelector('.success-card'); | |
| const steps = document.querySelectorAll('.timeline-step'); | |
| // Reset timeline | |
| steps.forEach((step, index) => { | |
| step.classList.remove('active', 'completed'); | |
| if (index === 0) { | |
| setTimeout(() => step.classList.add('completed'), 100); | |
| } | |
| if (index === 1) { | |
| setTimeout(() => step.classList.add('completed'), 500); | |
| } | |
| if (index === 2) { | |
| setTimeout(() => step.classList.add('active'), 1000); | |
| setTimeout(() => step.classList.remove('active'), 3000); | |
| } | |
| }); | |
| // Flash effect | |
| card.style.opacity = '0'; | |
| card.style.transform = 'scale(0.95)'; | |
| setTimeout(() => { | |
| card.style.transition = 'all 0.5s ease'; | |
| card.style.opacity = '1'; | |
| card.style.transform = 'scale(1)'; | |
| }, 100); | |
| } | |
| // Initialize | |
| document.addEventListener('DOMContentLoaded', () => { | |
| createFloatingElements(); | |
| // Animate timeline on load | |
| const steps = document.querySelectorAll('.timeline-step'); | |
| steps.forEach((step, index) => { | |
| setTimeout(() => { | |
| if (index < 2) { | |
| step.classList.add('completed'); | |
| } else { | |
| step.classList.add('active'); | |
| setTimeout(() => step.classList.remove('active'), 3000); | |
| } | |
| }, index * 600); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |