Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>AI Video Avatar 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 float { | |
0%, 100% { transform: translateY(0); } | |
50% { transform: translateY(-10px); } | |
} | |
.floating { animation: float 3s ease-in-out infinite; } | |
.progress-ring__circle { | |
transition: stroke-dashoffset 0.35s; | |
transform: rotate(-90deg); | |
transform-origin: 50% 50%; | |
} | |
.avatar-preview { | |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
} | |
.waveform { | |
background: linear-gradient(to right, #8a2be2, #00bfff); | |
height: 60px; | |
position: relative; | |
overflow: hidden; | |
} | |
.waveform-bar { | |
position: absolute; | |
bottom: 0; | |
width: 3px; | |
background: white; | |
animation: wave 1.2s infinite ease-in-out; | |
} | |
@keyframes wave { | |
0%, 100% { height: 20%; } | |
50% { height: 100%; } | |
} | |
</style> | |
</head> | |
<body class="bg-gray-900 text-white min-h-screen font-sans"> | |
<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-robot text-3xl text-purple-500"></i> | |
<h1 class="text-2xl md:text-3xl font-bold bg-gradient-to-r from-purple-500 to-blue-500 bg-clip-text text-transparent">AI Avatar Studio</h1> | |
</div> | |
<div class="flex space-x-4"> | |
<button class="hidden md:flex items-center space-x-1 px-4 py-2 rounded-full bg-gray-800 hover:bg-gray-700 transition"> | |
<i class="fas fa-history"></i> | |
<span>History</span> | |
</button> | |
<button class="hidden md:flex items-center space-x-1 px-4 py-2 rounded-full bg-purple-600 hover:bg-purple-700 transition"> | |
<i class="fas fa-user-plus"></i> | |
<span>New Project</span> | |
</button> | |
<button class="w-10 h-10 rounded-full bg-gray-800 flex items-center justify-center"> | |
<i class="fas fa-user"></i> | |
</button> | |
</div> | |
</header> | |
<!-- Main Content --> | |
<main class="grid grid-cols-1 lg:grid-cols-3 gap-8"> | |
<!-- Avatar Preview Section --> | |
<div class="lg:col-span-2 space-y-6"> | |
<div class="bg-gray-800 rounded-2xl p-6"> | |
<div class="flex justify-between items-center mb-4"> | |
<h2 class="text-xl font-semibold">Avatar Preview</h2> | |
<div class="flex space-x-2"> | |
<button class="p-2 rounded-full bg-gray-700 hover:bg-gray-600"> | |
<i class="fas fa-expand"></i> | |
</button> | |
<button class="p-2 rounded-full bg-gray-700 hover:bg-gray-600"> | |
<i class="fas fa-download"></i> | |
</button> | |
</div> | |
</div> | |
<!-- Avatar Display --> | |
<div class="relative"> | |
<div class="avatar-preview rounded-xl overflow-hidden w-full h-80 flex items-center justify-center"> | |
<div class="floating relative"> | |
<div class="absolute -inset-4 bg-purple-500 rounded-full blur opacity-20"></div> | |
<img src="https://cdn-icons-png.flaticon.com/512/616/616408.png" alt="AI Avatar" class="w-48 h-48 object-contain"> | |
</div> | |
</div> | |
<!-- Progress Ring --> | |
<div class="absolute bottom-4 right-4 w-16 h-16"> | |
<svg class="w-full h-full" viewBox="0 0 36 36"> | |
<path class="text-gray-700" | |
d="M18 2.0845 | |
a 15.9155 15.9155 0 0 1 0 31.831 | |
a 15.9155 15.9155 0 0 1 0 -31.831" | |
fill="none" | |
stroke-width="2" | |
stroke-linecap="round" | |
stroke="currentColor" | |
/> | |
<path class="progress-ring__circle text-purple-500" | |
stroke-dasharray="100, 100" | |
d="M18 2.0845 | |
a 15.9155 15.9155 0 0 1 0 31.831 | |
a 15.9155 15.9155 0 0 1 0 -31.831" | |
fill="none" | |
stroke-width="2" | |
stroke-linecap="round" | |
stroke="currentColor" | |
/> | |
</svg> | |
<div class="absolute inset-0 flex items-center justify-center"> | |
<i class="fas fa-microphone text-sm"></i> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- Audio Waveform --> | |
<div class="bg-gray-800 rounded-2xl p-6"> | |
<h3 class="text-lg font-semibold mb-4">Voice Recording</h3> | |
<div class="waveform rounded-lg relative"> | |
<!-- Generated waveform bars (dynamically created with JS) --> | |
<div class="absolute inset-0 flex items-center justify-center space-x-1 px-4" id="waveform-container"></div> | |
</div> | |
<div class="mt-4 flex justify-center space-x-4"> | |
<button id="record-btn" class="flex items-center justify-center w-12 h-12 rounded-full bg-purple-600 hover:bg-purple-700 transition"> | |
<i class="fas fa-microphone"></i> | |
</button> | |
<button class="flex items-center justify-center w-12 h-12 rounded-full bg-gray-700 hover:bg-gray-600 transition"> | |
<i class="fas fa-stop"></i> | |
</button> | |
<button class="flex items-center justify-center w-12 h-12 rounded-full bg-gray-700 hover:bg-gray-600 transition"> | |
<i class="fas fa-play"></i> | |
</button> | |
<button class="flex items-center justify-center w-12 h-12 rounded-full bg-gray-700 hover:bg-gray-600 transition"> | |
<i class="fas fa-trash"></i> | |
</button> | |
</div> | |
</div> | |
</div> | |
<!-- Controls Section --> | |
<div class="space-y-6"> | |
<!-- Avatar Selection --> | |
<div class="bg-gray-800 rounded-2xl p-6"> | |
<h2 class="text-xl font-semibold mb-4">Avatar Style</h2> | |
<div class="grid grid-cols-3 gap-3"> | |
<div class="bg-gray-700 rounded-lg p-2 flex flex-col items-center cursor-pointer hover:bg-gray-600 transition"> | |
<img src="https://cdn-icons-png.flaticon.com/512/4333/4333609.png" alt="Style 1" class="w-16 h-16 object-contain"> | |
<span class="text-xs mt-1">Cartoon</span> | |
</div> | |
<div class="bg-gray-700 rounded-lg p-2 flex flex-col items-center cursor-pointer hover:bg-gray-600 transition border-2 border-purple-500"> | |
<img src="https://cdn-icons-png.flaticon.com/512/616/616408.png" alt="Style 2" class="w-16 h-16 object-contain"> | |
<span class="text-xs mt-1">Anime</span> | |
</div> | |
<div class="bg-gray-700 rounded-lg p-2 flex flex-col items-center cursor-pointer hover:bg-gray-600 transition"> | |
<img src="https://cdn-icons-png.flaticon.com/512/4333/4333625.png" alt="Style 3" class="w-16 h-16 object-contain"> | |
<span class="text-xs mt-1">Realistic</span> | |
</div> | |
<div class="bg-gray-700 rounded-lg p-2 flex flex-col items-center cursor-pointer hover:bg-gray-600 transition"> | |
<img src="https://cdn-icons-png.flaticon.com/512/1154/1154471.png" alt="Style 4" class="w-16 h-16 object-contain"> | |
<span class="text-xs mt-1">Sci-Fi</span> | |
</div> | |
<div class="bg-gray-700 rounded-lg p-2 flex flex-col items-center cursor-pointer hover:bg-gray-600 transition"> | |
<img src="https://cdn-icons-png.flaticon.com/512/4333/4333602.png" alt="Style 5" class="w-16 h-16 object-contain"> | |
<span class="text-xs mt-1">Robotic</span> | |
</div> | |
<div class="bg-gray-700 rounded-lg p-2 flex flex-col items-center cursor-pointer hover:bg-gray-600 transition"> | |
<img src="https://cdn-icons-png.flaticon.com/512/4333/4333603.png" alt="Style 6" class="w-16 h-16 object-contain"> | |
<span class="text-xs mt-1">More +</span> | |
</div> | |
</div> | |
</div> | |
<!-- Customization --> | |
<div class="bg-gray-800 rounded-2xl p-6"> | |
<h2 class="text-xl font-semibold mb-4">Customization</h2> | |
<div class="space-y-4"> | |
<div> | |
<label class="block text-sm mb-1">Voice Tone</label> | |
<select class="w-full bg-gray-700 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-purple-500"> | |
<option>Friendly</option> | |
<option>Professional</option> | |
<option>Energetic</option> | |
<option>Calm</option> | |
</select> | |
</div> | |
<div> | |
<label class="block text-sm mb-1">Avatar Expression</label> | |
<div class="flex space-x-2"> | |
<button class="p-2 bg-gray-700 rounded-lg hover:bg-gray-600 transition"> | |
<i class="far fa-smile"></i> | |
</button> | |
<button class="p-2 bg-gray-700 rounded-lg hover:bg-gray-600 transition"> | |
<i class="far fa-grin"></i> | |
</button> | |
<button class="p-2 bg-gray-700 rounded-lg hover:bg-gray-600 transition"> | |
<i class="far fa-meh"></i> | |
</button> | |
<button class="p-2 bg-gray-700 rounded-lg hover:bg-gray-600 transition"> | |
<i class="far fa-frown"></i> | |
</button> | |
</div> | |
</div> | |
<div> | |
<label class="block text-sm mb-1">Background</label> | |
<div class="grid grid-cols-3 gap-2"> | |
<div class="h-12 rounded-lg bg-gradient-to-br from-blue-500 to-purple-600 cursor-pointer border-2 border-purple-400"></div> | |
<div class="h-12 rounded-lg bg-gradient-to-br from-green-500 to-teal-600 cursor-pointer"></div> | |
<div class="h-12 rounded-lg bg-gradient-to-br from-yellow-500 to-orange-600 cursor-pointer"></div> | |
<div class="h-12 rounded-lg bg-gray-700 cursor-pointer"></div> | |
<div class="h-12 rounded-lg bg-white cursor-pointer"></div> | |
<div class="h-12 rounded-lg bg-black cursor-pointer flex items-center justify-center"> | |
<i class="fas fa-plus text-gray-400"></i> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- Text to Speech --> | |
<div class="bg-gray-800 rounded-2xl p-6"> | |
<h2 class="text-xl font-semibold mb-4">Text to Speech</h2> | |
<textarea class="w-full bg-gray-700 rounded-lg px-4 py-3 h-24 focus:outline-none focus:ring-2 focus:ring-purple-500 resize-none" placeholder="Type your text here..."></textarea> | |
<button class="w-full mt-3 bg-purple-600 hover:bg-purple-700 py-3 rounded-lg font-medium transition flex items-center justify-center space-x-2"> | |
<i class="fas fa-robot"></i> | |
<span>Generate Speech</span> | |
</button> | |
</div> | |
<!-- Export Options --> | |
<div class="bg-gray-800 rounded-2xl p-6"> | |
<h2 class="text-xl font-semibold mb-4">Export</h2> | |
<button class="w-full mb-3 bg-blue-600 hover:bg-blue-700 py-3 rounded-lg font-medium transition flex items-center justify-center space-x-2"> | |
<i class="fas fa-video"></i> | |
<span>Download Video (MP4)</span> | |
</button> | |
<button class="w-full bg-green-600 hover:bg-green-700 py-3 rounded-lg font-medium transition flex items-center justify-center space-x-2"> | |
<i class="fas fa-file-audio"></i> | |
<span>Download Audio (MP3)</span> | |
</button> | |
</div> | |
</div> | |
</main> | |
</div> | |
<script> | |
// Generate random waveform bars | |
const waveformContainer = document.getElementById('waveform-container'); | |
for (let i = 0; i < 60; i++) { | |
const bar = document.createElement('div'); | |
bar.className = 'waveform-bar'; | |
bar.style.left = `${(i / 60) * 100}%`; | |
bar.style.height = `${Math.random() * 40 + 20}%`; | |
bar.style.animationDelay = `${Math.random() * 0.5}s`; | |
waveformContainer.appendChild(bar); | |
} | |
// Simulate recording progress | |
const progressCircle = document.querySelector('.progress-ring__circle'); | |
const recordBtn = document.getElementById('record-btn'); | |
let isRecording = false; | |
let progress = 0; | |
let interval; | |
recordBtn.addEventListener('click', () => { | |
isRecording = !isRecording; | |
if (isRecording) { | |
recordBtn.classList.add('animate-pulse'); | |
interval = setInterval(() => { | |
progress += 1; | |
const offset = 100 - progress; | |
progressCircle.style.strokeDashoffset = offset; | |
if (progress >= 100) { | |
clearInterval(interval); | |
recordBtn.classList.remove('animate-pulse'); | |
} | |
}, 100); | |
} else { | |
recordBtn.classList.remove('animate-pulse'); | |
clearInterval(interval); | |
} | |
}); | |
</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=AI4U2/ai-avatar-studio" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
</html> |