Spaces:
Paused
Paused
<!-- templates/result.html --> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>{{ title }} - Result</title> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet"> | |
<style> | |
.gradient-background { | |
background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%); | |
} | |
.result-box { | |
backdrop-filter: blur(10px); | |
background-color: rgba(255, 255, 255, 0.9); | |
} | |
.fingerspell-marker { | |
color: #2563eb; | |
font-weight: 500; | |
font-style: italic; | |
} | |
.fingerspell-text { | |
color: #1d4ed8; | |
font-weight: bold; | |
letter-spacing: 0.05em; | |
} | |
</style> | |
</head> | |
<body class="gradient-background min-h-screen pb-16"> | |
<nav class="bg-white/80 backdrop-blur-md shadow-lg"> | |
<div class="container mx-auto px-6 py-4"> | |
<div class="flex items-center justify-between"> | |
<a href="/" class="text-3xl font-bold text-gray-800">{{ title }}</a> | |
<div class="text-sm text-gray-600">Translation Results</div> | |
</div> | |
</div> | |
</nav> | |
<main class="container mx-auto px-6 py-8"> | |
<div class="result-box rounded-xl shadow-2xl p-8 mb-8"> | |
<h2 class="text-2xl font-bold mb-6 text-gray-800">Translation Results / 번역 결과</h2> | |
<div class="flex"> | |
<div class="w-1/2 pr-4 space-y-6"> | |
<div class="p-4 bg-white/50 rounded-lg"> | |
<h3 class="font-medium text-gray-700 mb-2">Original Text / 원문</h3> | |
<p class="text-lg">{{ original_sentence }}</p> | |
</div> | |
<div class="p-4 bg-white/50 rounded-lg"> | |
<h3 class="font-medium text-gray-700 mb-2">English Translation / 영어 번역</h3> | |
<p class="text-lg">{{ english_translation }}</p> | |
</div> | |
<div class="p-4 bg-white/50 rounded-lg"> | |
<h3 class="font-medium text-gray-700 mb-2">Sign Language Gloss / 수화 표기</h3> | |
<p class="text-lg"> | |
{% set words = gloss_sentence_after_synonym.split() %} | |
{% set in_fingerspell = false %} | |
{% for word in words %} | |
{% if word == 'FINGERSPELL-START' %} | |
{% set in_fingerspell = true %} | |
<span class="fingerspell-marker">[지문자 시작]</span> | |
{% elif word == 'FINGERSPELL-END' %} | |
{% set in_fingerspell = false %} | |
<span class="fingerspell-marker">[지문자 끝]</span> | |
{% else %} | |
{% if in_fingerspell %} | |
<span class="fingerspell-text">{{ word }}</span> | |
{% else %} | |
{{ word }} | |
{% endif %} | |
{% endif %} | |
{{ ' ' }} | |
{% endfor %} | |
</p> | |
</div> | |
</div> | |
<div class="w-1/2 pl-4"> | |
<div class="p-4 bg-white/50 rounded-lg"> | |
<h3 class="font-medium text-gray-700 mb-2">Sign Language Video / 수화 영상</h3> | |
<div class="bg-gray-100 rounded-lg overflow-hidden"> | |
<img src="{{ url_for('video_feed', gloss_sentence_to_display=gloss_sentence_after_synonym) }}" | |
alt="Sign language video stream" | |
style="width: 576px; height: 384px; margin: 0 auto;"> | |
</div> | |
<div class="mt-4 text-center"> | |
<a href="{{ url_for('download_video', gloss_sentence=gloss_sentence_after_synonym|urlencode) }}" | |
class="bg-green-600 text-white py-2 px-4 rounded hover:bg-green-700 transition-colors" | |
download="sign_language.mp4"> | |
Download Video | |
</a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="mt-8 flex justify-center"> | |
<a href="/" | |
class="bg-blue-600 text-white py-3 px-6 rounded-lg hover:bg-blue-700 transform hover:scale-105 transition duration-200 font-medium"> | |
New Translation / 새로운 번역 | |
</a> | |
</div> | |
</div> | |
</main> | |
<footer class="fixed bottom-0 w-full bg-white/80 backdrop-blur-md py-4"> | |
<div class="container mx-auto px-6 text-center text-gray-600"> | |
© 2025 {{ title }}. All rights reserved. | |
</div> | |
</footer> | |
</body> | |
</html> |