Ai_lip_sync / templates /result.html
WebashalarForML's picture
Update templates/result.html
345a57c verified
Raw
History Blame Contribute Delete
3.22 kB
{% extends "base.html" %}
{% block title %}Result | AI Avatar Creator{% endblock %}
{% block head_extra %}
<style>
.result-container {
max-width: 800px;
margin: 0 auto;
text-align: center;
padding-top: 20px;
}
.hero-title {
font-size: 2.5rem;
font-weight: 700;
letter-spacing: -1px;
margin-bottom: 30px;
color: var(--text-main);
}
.hero-title span { color: var(--accent-blue); }
.video-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 24px;
padding: 20px;
box-shadow: var(--shadow-card);
margin-bottom: 40px;
}
.video-wrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
height: 0;
overflow: hidden;
background: #000;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.video-wrapper video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 16px;
}
.action-row {
display: flex;
justify-content: center;
gap: 16px;
flex-wrap: wrap;
}
.btn-primary {
background: var(--btn-dark);
color: var(--bg-window);
padding: 14px 28px;
border-radius: 30px;
font-weight: 600;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 10px;
transition: 0.2s;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
[data-theme="dark"] .btn-primary { color: #0f172a; }
.btn-primary:hover {
background: var(--btn-dark-hover);
transform: translateY(-2px);
}
.btn-secondary {
background: var(--card-bg);
color: var(--text-main);
border: 1px solid var(--card-border);
padding: 14px 28px;
border-radius: 30px;
font-weight: 600;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 10px;
transition: 0.2s;
}
.btn-secondary:hover {
background: var(--bg-body);
transform: translateY(-2px);
}
</style>
{% endblock %}
{% block content %}
<div class="result-container">
<h1 class="hero-title">
Your Avatar is <span>Ready!</span> 🎉
</h1>
<div class="video-card">
<div class="video-wrapper">
<video controls autoplay loop>
<source src="{{ url_for('serve_result_video', filename=video_filename) }}" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
</div>
<div class="action-row">
<a href="{{ url_for('download_result', filename=video_filename) }}" class="btn-primary" download>
<i class="fas fa-download"></i> Download Video
</a>
<a href="{{ url_for('index') }}" class="btn-secondary">
<i class="fas fa-redo"></i> Create Another
</a>
</div>
</div>
{% endblock %}