Spaces:
Running
Running
Create result.html
Browse files- src/templates/result.html +73 -0
src/templates/result.html
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>{{ title }} - Result</title>
|
| 7 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
|
| 8 |
+
<style>
|
| 9 |
+
.gradient-background {
|
| 10 |
+
background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
|
| 11 |
+
}
|
| 12 |
+
.result-box {
|
| 13 |
+
backdrop-filter: blur(10px);
|
| 14 |
+
background-color: rgba(255, 255, 255, 0.9);
|
| 15 |
+
}
|
| 16 |
+
</style>
|
| 17 |
+
</head>
|
| 18 |
+
<body class="gradient-background min-h-screen pb-16">
|
| 19 |
+
<nav class="bg-white/80 backdrop-blur-md shadow-lg">
|
| 20 |
+
<div class="container mx-auto px-6 py-4">
|
| 21 |
+
<div class="flex items-center justify-between">
|
| 22 |
+
<a href="/" class="text-3xl font-bold text-gray-800">{{ title }}</a>
|
| 23 |
+
<div class="text-sm text-gray-600">Translation Results</div>
|
| 24 |
+
</div>
|
| 25 |
+
</div>
|
| 26 |
+
</nav>
|
| 27 |
+
|
| 28 |
+
<main class="container mx-auto px-6 py-8">
|
| 29 |
+
<div class="result-box rounded-xl shadow-2xl p-8 mb-8">
|
| 30 |
+
<h2 class="text-2xl font-bold mb-6 text-gray-800">Translation Results / 번역 결과</h2>
|
| 31 |
+
|
| 32 |
+
<div class="space-y-6">
|
| 33 |
+
<div class="p-4 bg-white/50 rounded-lg">
|
| 34 |
+
<h3 class="font-medium text-gray-700 mb-2">Original Text / 원문</h3>
|
| 35 |
+
<p class="text-lg">{{ original_sentence }}</p>
|
| 36 |
+
</div>
|
| 37 |
+
|
| 38 |
+
<div class="p-4 bg-white/50 rounded-lg">
|
| 39 |
+
<h3 class="font-medium text-gray-700 mb-2">English Translation / 영어 번역</h3>
|
| 40 |
+
<p class="text-lg">{{ english_translation }}</p>
|
| 41 |
+
</div>
|
| 42 |
+
|
| 43 |
+
<div class="p-4 bg-white/50 rounded-lg">
|
| 44 |
+
<h3 class="font-medium text-gray-700 mb-2">Sign Language Gloss / 수화 표기</h3>
|
| 45 |
+
<p class="text-lg">{{ gloss_sentence_after_synonym }}</p>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<div class="p-4 bg-white/50 rounded-lg">
|
| 49 |
+
<h3 class="font-medium text-gray-700 mb-2">Sign Language Video / 수화 영상</h3>
|
| 50 |
+
<div class="aspect-w-16 aspect-h-9 bg-gray-100 rounded-lg overflow-hidden">
|
| 51 |
+
<img src="{{ url_for('video_feed', gloss_sentence_to_display=gloss_sentence_after_synonym) }}"
|
| 52 |
+
alt="Sign language video stream"
|
| 53 |
+
class="w-full h-full object-contain">
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
|
| 58 |
+
<div class="mt-8 flex justify-center">
|
| 59 |
+
<a href="/"
|
| 60 |
+
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">
|
| 61 |
+
New Translation / 새로운 번역
|
| 62 |
+
</a>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</main>
|
| 66 |
+
|
| 67 |
+
<footer class="fixed bottom-0 w-full bg-white/80 backdrop-blur-md py-4">
|
| 68 |
+
<div class="container mx-auto px-6 text-center text-gray-600">
|
| 69 |
+
© 2025 {{ title }}. All rights reserved.
|
| 70 |
+
</div>
|
| 71 |
+
</footer>
|
| 72 |
+
</body>
|
| 73 |
+
</html>
|