File size: 5,479 Bytes
6ee5562 |
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 |
<!-- templates/result.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Dubbed Video</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<style>
:root {
--primary: #4361ee;
--primary-light: #4895ef;
--secondary: #3f37c9;
--dark: #1a1a2e;
--light: #f8f9fa;
--gray: #6c757d;
--border-radius: 12px;
--shadow: 0 10px 30px rgba(0,0,0,0.1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background-color: #f5f7ff;
color: var(--dark);
line-height: 1.6;
padding: 20px;
}
.container {
max-width: 800px;
margin: 0 auto;
background: white;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
overflow: hidden;
}
header {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
padding: 2rem;
text-align: center;
}
h1 {
font-size: 2.2rem;
margin-bottom: 0.5rem;
}
.content {
padding: 2rem;
}
.result-section {
margin-bottom: 2rem;
}
.section-title {
color: var(--primary);
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.8rem;
}
.section-title i {
font-size: 1.5rem;
}
.video-container {
width: 100%;
border-radius: var(--border-radius);
overflow: hidden;
margin-bottom: 1.5rem;
box-shadow: var(--shadow);
}
video {
width: 100%;
display: block;
}
.script-container {
background: var(--dark);
color: var(--light);
padding: 1.5rem;
border-radius: var(--border-radius);
max-height: 300px;
overflow-y: auto;
font-family: 'Courier New', monospace;
white-space: pre-wrap;
line-height: 1.7;
}
.action-buttons {
display: flex;
gap: 1rem;
margin-top: 2rem;
}
.btn {
flex: 1;
padding: 1rem;
border-radius: var(--border-radius);
font-weight: 500;
text-align: center;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
gap: 0.8rem;
transition: all 0.3s ease;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover {
background: var(--secondary);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(63, 55, 201, 0.3);
}
.btn-secondary {
background: white;
color: var(--primary);
border: 1px solid var(--primary);
}
.btn-secondary:hover {
background: #f5f7ff;
transform: translateY(-2px);
}
@media (max-width: 768px) {
.action-buttons {
flex-direction: column;
}
header {
padding: 1.5rem;
}
h1 {
font-size: 1.8rem;
}
.content {
padding: 1.5rem;
}
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Your Dubbed Video is Ready!</h1>
<p>Download or create another one</p>
</header>
<div class="content">
<div class="result-section">
<h2 class="section-title">
<i class="fas fa-film"></i>
Dubbed Video
</h2>
<div class="video-container">
<video controls>
<source src="{{ video_url }}" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
<div class="result-section">
<h2 class="section-title">
<i class="fas fa-scroll"></i>
Generated Script
</h2>
<div class="script-container">{{ script }}</div>
</div>
<div class="action-buttons">
<a href="{{ video_url }}" download class="btn btn-primary">
<i class="fas fa-download"></i>
Download Video
</a>
<a href="/" class="btn btn-secondary">
<i class="fas fa-redo"></i>
Create Another
</a>
</div>
</div>
</div>
</body>
</html> |