Spaces:
Paused
Paused
Update src/templates/index.html
Browse files- src/templates/index.html +51 -59
src/templates/index.html
CHANGED
|
@@ -3,71 +3,63 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
|
|
|
| 7 |
<style>
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
text-align: center;
|
| 11 |
-
margin: 0;
|
| 12 |
-
padding: 0;
|
| 13 |
-
background-color: #f8f9fa;
|
| 14 |
}
|
| 15 |
-
.
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
}
|
| 19 |
-
.header {
|
| 20 |
-
background-color: #e9ecef;
|
| 21 |
-
padding: 20px;
|
| 22 |
-
border-radius: 5px;
|
| 23 |
-
margin-bottom: 20px;
|
| 24 |
-
}
|
| 25 |
-
.header h1 {
|
| 26 |
-
font-size: 24px;
|
| 27 |
-
margin: 0;
|
| 28 |
-
}
|
| 29 |
-
.video-container {
|
| 30 |
-
display: flex;
|
| 31 |
-
justify-content: center;
|
| 32 |
-
margin-bottom: 20px;
|
| 33 |
-
}
|
| 34 |
-
video {
|
| 35 |
-
width: 640px;
|
| 36 |
-
height: 480px;
|
| 37 |
-
border: 2px solid #dee2e6;
|
| 38 |
-
border-radius: 5px;
|
| 39 |
-
}
|
| 40 |
-
.footer {
|
| 41 |
-
font-size: 14px;
|
| 42 |
-
color: #6c757d;
|
| 43 |
}
|
| 44 |
</style>
|
| 45 |
</head>
|
| 46 |
-
<body>
|
| 47 |
-
<
|
| 48 |
-
<div class="
|
| 49 |
-
<
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
</div>
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
</form>
|
| 68 |
-
|
| 69 |
-
|
|
|
|
|
|
|
| 70 |
</div>
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
</body>
|
| 73 |
-
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>{{ title }}</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 |
+
.translation-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">
|
| 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 |
+
<div class="text-3xl font-bold text-gray-800">{{ title }}</div>
|
| 23 |
+
<div class="text-sm text-gray-600">Korean ⟶ English ⟶ Sign Language</div>
|
| 24 |
+
</div>
|
| 25 |
+
</div>
|
| 26 |
+
</nav>
|
| 27 |
+
|
| 28 |
+
<main class="container mx-auto px-6 py-8">
|
| 29 |
+
<div class="translation-box rounded-xl shadow-2xl p-8 max-w-2xl mx-auto">
|
| 30 |
+
<h2 class="text-2xl font-bold mb-6 text-gray-800">Start Translation</h2>
|
| 31 |
+
|
| 32 |
+
<form action="/translate/" method="post" class="space-y-6">
|
| 33 |
+
<div>
|
| 34 |
+
<label class="block text-gray-700 font-medium mb-2">
|
| 35 |
+
Enter Korean Text / 한글 입력
|
| 36 |
+
</label>
|
| 37 |
+
<textarea
|
| 38 |
+
name="inputSentence"
|
| 39 |
+
class="w-full p-4 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-400 focus:border-transparent"
|
| 40 |
+
rows="4"
|
| 41 |
+
placeholder="Type your message here... / 여기에 메시지를 입력하세요..."
|
| 42 |
+
required
|
| 43 |
+
></textarea>
|
| 44 |
</div>
|
| 45 |
+
|
| 46 |
+
<button type="submit"
|
| 47 |
+
class="w-full bg-blue-600 text-white py-3 px-6 rounded-lg hover:bg-blue-700 transform hover:scale-105 transition duration-200 font-medium">
|
| 48 |
+
Translate / 번역하기
|
| 49 |
+
</button>
|
| 50 |
</form>
|
| 51 |
+
|
| 52 |
+
<div class="mt-8 text-center text-gray-600">
|
| 53 |
+
<p>Our service translates Korean text to English and converts it to sign language.</p>
|
| 54 |
+
<p class="mt-2">한글을 영어로 번역한 후 수화로 변환해주는 서비스입니다.</p>
|
| 55 |
</div>
|
| 56 |
+
</div>
|
| 57 |
+
</main>
|
| 58 |
+
|
| 59 |
+
<footer class="fixed bottom-0 w-full bg-white/80 backdrop-blur-md py-4">
|
| 60 |
+
<div class="container mx-auto px-6 text-center text-gray-600">
|
| 61 |
+
© 2025 {{ title }}. All rights reserved.
|
| 62 |
+
</div>
|
| 63 |
+
</footer>
|
| 64 |
</body>
|
| 65 |
+
</html>
|