Add 3 files
Browse files- README.md +7 -5
- index.html +426 -19
- prompts.txt +1 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: prova2
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,426 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="de">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Java Schweizerdeutsch - Italienisch Übersetzer</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 11 |
+
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Inter', sans-serif;
|
| 14 |
+
background-color: #f8fafc;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.language-flag {
|
| 18 |
+
width: 30px;
|
| 19 |
+
height: 20px;
|
| 20 |
+
object-fit: cover;
|
| 21 |
+
border-radius: 2px;
|
| 22 |
+
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.text-area {
|
| 26 |
+
min-height: 150px;
|
| 27 |
+
resize: none;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.switch-btn {
|
| 31 |
+
transition: all 0.3s ease;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.switch-btn:hover {
|
| 35 |
+
transform: rotate(180deg);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.gradient-bg {
|
| 39 |
+
background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.translation-card {
|
| 43 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 44 |
+
transition: all 0.3s ease;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.translation-card:hover {
|
| 48 |
+
transform: translateY(-2px);
|
| 49 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.history-item {
|
| 53 |
+
transition: all 0.2s ease;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.history-item:hover {
|
| 57 |
+
background-color: #f1f5f9;
|
| 58 |
+
transform: translateX(2px);
|
| 59 |
+
}
|
| 60 |
+
</style>
|
| 61 |
+
</head>
|
| 62 |
+
<body class="min-h-screen">
|
| 63 |
+
<div class="gradient-bg text-white py-6">
|
| 64 |
+
<div class="container mx-auto px-4">
|
| 65 |
+
<div class="flex items-center justify-between">
|
| 66 |
+
<div class="flex items-center space-x-3">
|
| 67 |
+
<i class="fas fa-code text-2xl"></i>
|
| 68 |
+
<h1 class="text-2xl font-bold">Java Übersetzer</h1>
|
| 69 |
+
</div>
|
| 70 |
+
<div class="flex items-center space-x-4">
|
| 71 |
+
<button class="px-4 py-2 bg-white bg-opacity-20 rounded-full hover:bg-opacity-30 transition">
|
| 72 |
+
<i class="fas fa-user mr-2"></i>Login
|
| 73 |
+
</button>
|
| 74 |
+
<button class="px-4 py-2 bg-white text-indigo-600 rounded-full font-medium hover:bg-opacity-90 transition">
|
| 75 |
+
<i class="fas fa-plus mr-2"></i>Registrieren
|
| 76 |
+
</button>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
|
| 80 |
+
<div class="mt-8 text-center">
|
| 81 |
+
<h2 class="text-3xl font-bold mb-2">Schweizerdeutsch - Italienisch Übersetzer</h2>
|
| 82 |
+
<p class="text-white text-opacity-80 max-w-2xl mx-auto">
|
| 83 |
+
Übersetzen Sie zwischen Schweizerdeutsch und Italienisch mit unserer Java-basierten Übersetzungstechnologie.
|
| 84 |
+
</p>
|
| 85 |
+
</div>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
|
| 89 |
+
<div class="container mx-auto px-4 py-8 -mt-10">
|
| 90 |
+
<div class="bg-white rounded-xl shadow-xl overflow-hidden">
|
| 91 |
+
<div class="p-6">
|
| 92 |
+
<div class="flex flex-col md:flex-row items-center justify-between space-y-4 md:space-y-0">
|
| 93 |
+
<div class="flex items-center space-x-3 w-full md:w-auto">
|
| 94 |
+
<img src="https://flagcdn.com/w20/ch.png" class="language-flag" alt="Swiss German">
|
| 95 |
+
<span class="font-medium">Schweizerdeutsch</span>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<button class="switch-btn bg-gray-100 p-3 rounded-full text-gray-600 hover:bg-gray-200">
|
| 99 |
+
<i class="fas fa-exchange-alt"></i>
|
| 100 |
+
</button>
|
| 101 |
+
|
| 102 |
+
<div class="flex items-center space-x-3 w-full md:w-auto">
|
| 103 |
+
<img src="https://flagcdn.com/w20/it.png" class="language-flag" alt="Italian">
|
| 104 |
+
<span class="font-medium">Italienisch</span>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
|
| 108 |
+
<div class="mt-6 grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 109 |
+
<div>
|
| 110 |
+
<div class="flex items-center justify-between mb-2">
|
| 111 |
+
<label class="text-sm font-medium text-gray-500">Eingabe</label>
|
| 112 |
+
<button class="text-xs text-indigo-600 hover:text-indigo-800 flex items-center">
|
| 113 |
+
<i class="fas fa-microphone mr-1"></i> Diktieren
|
| 114 |
+
</button>
|
| 115 |
+
</div>
|
| 116 |
+
<textarea
|
| 117 |
+
class="w-full text-area p-4 border border-gray-200 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"
|
| 118 |
+
placeholder="Geben Sie Schweizerdeutsch Text ein..."></textarea>
|
| 119 |
+
<div class="flex items-center justify-between mt-2">
|
| 120 |
+
<span class="text-xs text-gray-400">0/5000 Zeichen</span>
|
| 121 |
+
<button class="text-xs text-gray-500 hover:text-gray-700 flex items-center">
|
| 122 |
+
<i class="fas fa-trash-alt mr-1"></i> Löschen
|
| 123 |
+
</button>
|
| 124 |
+
</div>
|
| 125 |
+
</div>
|
| 126 |
+
|
| 127 |
+
<div>
|
| 128 |
+
<div class="flex items-center justify-between mb-2">
|
| 129 |
+
<label class="text-sm font-medium text-gray-500">Übersetzung</label>
|
| 130 |
+
<div class="flex space-x-2">
|
| 131 |
+
<button class="text-xs text-indigo-600 hover:text-indigo-800 flex items-center">
|
| 132 |
+
<i class="fas fa-copy mr-1"></i> Kopieren
|
| 133 |
+
</button>
|
| 134 |
+
<button class="text-xs text-indigo-600 hover:text-indigo-800 flex items-center">
|
| 135 |
+
<i class="fas fa-volume-up mr-1"></i> Vorlesen
|
| 136 |
+
</button>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
<div class="w-full min-h-[150px] p-4 border border-gray-200 rounded-lg bg-gray-50">
|
| 140 |
+
<p class="text-gray-700">Die Übersetzung erscheint hier...</p>
|
| 141 |
+
</div>
|
| 142 |
+
<div class="flex items-center justify-between mt-2">
|
| 143 |
+
<span class="text-xs text-gray-400">Maschinelle Übersetzung</span>
|
| 144 |
+
<button class="text-xs text-indigo-600 hover:text-indigo-800 flex items-center">
|
| 145 |
+
<i class="fas fa-thumbs-up mr-1"></i> Feedback
|
| 146 |
+
</button>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
|
| 151 |
+
<div class="mt-6 flex justify-center">
|
| 152 |
+
<button class="gradient-bg text-white px-8 py-3 rounded-full font-medium hover:opacity-90 transition flex items-center">
|
| 153 |
+
<i class="fas fa-language mr-2"></i> Übersetzen
|
| 154 |
+
</button>
|
| 155 |
+
</div>
|
| 156 |
+
</div>
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
|
| 160 |
+
<div class="container mx-auto px-4 py-8">
|
| 161 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 162 |
+
<div class="translation-card bg-white p-6 rounded-xl">
|
| 163 |
+
<div class="flex items-center justify-center w-12 h-12 bg-indigo-100 text-indigo-600 rounded-full mb-4">
|
| 164 |
+
<i class="fas fa-bolt text-xl"></i>
|
| 165 |
+
</div>
|
| 166 |
+
<h3 class="font-bold text-lg mb-2">Schnelle Übersetzungen</h3>
|
| 167 |
+
<p class="text-gray-600">
|
| 168 |
+
Unsere Java-basierte Engine liefert blitzschnelle Übersetzungen zwischen Schweizerdeutsch und Italienisch.
|
| 169 |
+
</p>
|
| 170 |
+
</div>
|
| 171 |
+
|
| 172 |
+
<div class="translation-card bg-white p-6 rounded-xl">
|
| 173 |
+
<div class="flex items-center justify-center w-12 h-12 bg-green-100 text-green-600 rounded-full mb-4">
|
| 174 |
+
<i class="fas fa-brain text-xl"></i>
|
| 175 |
+
</div>
|
| 176 |
+
<h3 class="font-bold text-lg mb-2">KI-gestützt</h3>
|
| 177 |
+
<p class="text-gray-600">
|
| 178 |
+
Fortschrittliche Algorithmen lernen kontinuierlich, um präzisere Übersetzungen zu liefern.
|
| 179 |
+
</p>
|
| 180 |
+
</div>
|
| 181 |
+
|
| 182 |
+
<div class="translation-card bg-white p-6 rounded-xl">
|
| 183 |
+
<div class="flex items-center justify-center w-12 h-12 bg-blue-100 text-blue-600 rounded-full mb-4">
|
| 184 |
+
<i class="fas fa-shield-alt text-xl"></i>
|
| 185 |
+
</div>
|
| 186 |
+
<h3 class="font-bold text-lg mb-2">Sicher & Privat</h3>
|
| 187 |
+
<p class="text-gray-600">
|
| 188 |
+
Ihre Daten bleiben geschützt. Wir speichern keine persönlichen Informationen.
|
| 189 |
+
</p>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
</div>
|
| 193 |
+
|
| 194 |
+
<div class="container mx-auto px-4 py-8">
|
| 195 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
| 196 |
+
<div class="p-6 border-b border-gray-200">
|
| 197 |
+
<h2 class="font-bold text-xl flex items-center">
|
| 198 |
+
<i class="fas fa-history mr-3 text-indigo-600"></i> Übersetzungsverlauf
|
| 199 |
+
</h2>
|
| 200 |
+
</div>
|
| 201 |
+
<div class="divide-y divide-gray-200">
|
| 202 |
+
<div class="history-item p-4 hover:cursor-pointer">
|
| 203 |
+
<div class="flex items-center justify-between">
|
| 204 |
+
<div>
|
| 205 |
+
<p class="font-medium">Grüezi → Ciao</p>
|
| 206 |
+
<p class="text-sm text-gray-500">Heute, 14:32</p>
|
| 207 |
+
</div>
|
| 208 |
+
<button class="text-gray-400 hover:text-indigo-600">
|
| 209 |
+
<i class="fas fa-redo"></i>
|
| 210 |
+
</button>
|
| 211 |
+
</div>
|
| 212 |
+
</div>
|
| 213 |
+
<div class="history-item p-4 hover:cursor-pointer">
|
| 214 |
+
<div class="flex items-center justify-between">
|
| 215 |
+
<div>
|
| 216 |
+
<p class="font-medium">Merci vielmal → Grazie mille</p>
|
| 217 |
+
<p class="text-sm text-gray-500">Gestern, 18:15</p>
|
| 218 |
+
</div>
|
| 219 |
+
<button class="text-gray-400 hover:text-indigo-600">
|
| 220 |
+
<i class="fas fa-redo"></i>
|
| 221 |
+
</button>
|
| 222 |
+
</div>
|
| 223 |
+
</div>
|
| 224 |
+
<div class="history-item p-4 hover:cursor-pointer">
|
| 225 |
+
<div class="flex items-center justify-between">
|
| 226 |
+
<div>
|
| 227 |
+
<p class="font-medium">En Guete → Buon appetito</p>
|
| 228 |
+
<p class="text-sm text-gray-500">Gestern, 12:45</p>
|
| 229 |
+
</div>
|
| 230 |
+
<button class="text-gray-400 hover:text-indigo-600">
|
| 231 |
+
<i class="fas fa-redo"></i>
|
| 232 |
+
</button>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
</div>
|
| 236 |
+
<div class="p-4 bg-gray-50 text-center">
|
| 237 |
+
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">
|
| 238 |
+
<i class="fas fa-chevron-down mr-1"></i> Mehr anzeigen
|
| 239 |
+
</button>
|
| 240 |
+
</div>
|
| 241 |
+
</div>
|
| 242 |
+
</div>
|
| 243 |
+
|
| 244 |
+
<div class="gradient-bg text-white py-8">
|
| 245 |
+
<div class="container mx-auto px-4">
|
| 246 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 247 |
+
<div class="mb-6 md:mb-0">
|
| 248 |
+
<h2 class="text-2xl font-bold mb-2">Möchten Sie mehr erfahren?</h2>
|
| 249 |
+
<p class="text-white text-opacity-80">Kontaktieren Sie uns für API-Zugriff oder Unternehmenslösungen.</p>
|
| 250 |
+
</div>
|
| 251 |
+
<button class="px-6 py-3 bg-white text-indigo-600 rounded-full font-medium hover:bg-opacity-90 transition">
|
| 252 |
+
<i class="fas fa-envelope mr-2"></i> Kontakt aufnehmen
|
| 253 |
+
</button>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
</div>
|
| 257 |
+
|
| 258 |
+
<footer class="bg-gray-100 py-8">
|
| 259 |
+
<div class="container mx-auto px-4">
|
| 260 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 261 |
+
<div>
|
| 262 |
+
<h3 class="font-bold text-lg mb-4">Java Übersetzer</h3>
|
| 263 |
+
<p class="text-gray-600">
|
| 264 |
+
Fortschrittliche Übersetzungstechnologie für Schweizerdeutsch und Italienisch.
|
| 265 |
+
</p>
|
| 266 |
+
</div>
|
| 267 |
+
<div>
|
| 268 |
+
<h3 class="font-bold text-lg mb-4">Nützliche Links</h3>
|
| 269 |
+
<ul class="space-y-2">
|
| 270 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600">Über uns</a></li>
|
| 271 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600">Preise</a></li>
|
| 272 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600">API</a></li>
|
| 273 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600">Blog</a></li>
|
| 274 |
+
</ul>
|
| 275 |
+
</div>
|
| 276 |
+
<div>
|
| 277 |
+
<h3 class="font-bold text-lg mb-4">Rechtliches</h3>
|
| 278 |
+
<ul class="space-y-2">
|
| 279 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600">Datenschutz</a></li>
|
| 280 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600">Nutzungsbedingungen</a></li>
|
| 281 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600">Impressum</a></li>
|
| 282 |
+
</ul>
|
| 283 |
+
</div>
|
| 284 |
+
<div>
|
| 285 |
+
<h3 class="font-bold text-lg mb-4">Folgen Sie uns</h3>
|
| 286 |
+
<div class="flex space-x-4">
|
| 287 |
+
<a href="#" class="w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center text-gray-600 hover:bg-indigo-600 hover:text-white">
|
| 288 |
+
<i class="fab fa-facebook-f"></i>
|
| 289 |
+
</a>
|
| 290 |
+
<a href="#" class="w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center text-gray-600 hover:bg-blue-400 hover:text-white">
|
| 291 |
+
<i class="fab fa-twitter"></i>
|
| 292 |
+
</a>
|
| 293 |
+
<a href="#" class="w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center text-gray-600 hover:bg-pink-600 hover:text-white">
|
| 294 |
+
<i class="fab fa-instagram"></i>
|
| 295 |
+
</a>
|
| 296 |
+
<a href="#" class="w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center text-gray-600 hover:bg-gray-800 hover:text-white">
|
| 297 |
+
<i class="fab fa-github"></i>
|
| 298 |
+
</a>
|
| 299 |
+
</div>
|
| 300 |
+
</div>
|
| 301 |
+
</div>
|
| 302 |
+
<div class="border-t border-gray-200 mt-8 pt-8 text-center text-gray-500">
|
| 303 |
+
<p>© 2023 Java Übersetzer. Alle Rechte vorbehalten.</p>
|
| 304 |
+
</div>
|
| 305 |
+
</div>
|
| 306 |
+
</footer>
|
| 307 |
+
|
| 308 |
+
<script>
|
| 309 |
+
// Basic functionality for the translator
|
| 310 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 311 |
+
// Switch languages
|
| 312 |
+
const switchBtn = document.querySelector('.switch-btn');
|
| 313 |
+
const languageFlags = document.querySelectorAll('.language-flag');
|
| 314 |
+
const languageNames = document.querySelectorAll('.flex.items-center.space-x-3 span');
|
| 315 |
+
const textareas = document.querySelectorAll('textarea, .min-h-[150px]');
|
| 316 |
+
|
| 317 |
+
switchBtn.addEventListener('click', function() {
|
| 318 |
+
// Swap flags
|
| 319 |
+
const tempSrc = languageFlags[0].src;
|
| 320 |
+
languageFlags[0].src = languageFlags[1].src;
|
| 321 |
+
languageFlags[1].src = tempSrc;
|
| 322 |
+
|
| 323 |
+
// Swap language names
|
| 324 |
+
const tempText = languageNames[0].textContent;
|
| 325 |
+
languageNames[0].textContent = languageNames[1].textContent;
|
| 326 |
+
languageNames[1].textContent = tempText;
|
| 327 |
+
|
| 328 |
+
// Swap placeholders if textarea is empty
|
| 329 |
+
if (textareas[0].value === '') {
|
| 330 |
+
const tempPlaceholder = textareas[0].placeholder;
|
| 331 |
+
textareas[0].placeholder = textareas[1].textContent === 'Die Übersetzung erscheint hier...' ?
|
| 332 |
+
'Geben Sie Italienisch Text ein...' : 'Geben Sie Schweizerdeutsch Text ein...';
|
| 333 |
+
}
|
| 334 |
+
});
|
| 335 |
+
|
| 336 |
+
// Character counter
|
| 337 |
+
const textarea = document.querySelector('textarea');
|
| 338 |
+
const charCounter = document.querySelector('.text-xs.text-gray-400');
|
| 339 |
+
|
| 340 |
+
textarea.addEventListener('input', function() {
|
| 341 |
+
const count = this.value.length;
|
| 342 |
+
charCounter.textContent = `${count}/5000 Zeichen`;
|
| 343 |
+
|
| 344 |
+
if (count > 5000) {
|
| 345 |
+
charCounter.classList.add('text-red-500');
|
| 346 |
+
charCounter.classList.remove('text-gray-400');
|
| 347 |
+
} else {
|
| 348 |
+
charCounter.classList.add('text-gray-400');
|
| 349 |
+
charCounter.classList.remove('text-red-500');
|
| 350 |
+
}
|
| 351 |
+
});
|
| 352 |
+
|
| 353 |
+
// Translation button
|
| 354 |
+
const translateBtn = document.querySelector('.gradient-bg.text-white');
|
| 355 |
+
const outputDiv = document.querySelector('.min-h-[150px] p');
|
| 356 |
+
|
| 357 |
+
// Mock translations (in a real app, this would be an API call)
|
| 358 |
+
const translations = {
|
| 359 |
+
'Grüezi': 'Ciao',
|
| 360 |
+
'Merci vielmal': 'Grazie mille',
|
| 361 |
+
'En Guete': 'Buon appetito',
|
| 362 |
+
'Wie gaats?': 'Come stai?',
|
| 363 |
+
'Tschüss': 'Arrivederci'
|
| 364 |
+
};
|
| 365 |
+
|
| 366 |
+
translateBtn.addEventListener('click', function() {
|
| 367 |
+
const inputText = textarea.value.trim();
|
| 368 |
+
|
| 369 |
+
if (inputText === '') {
|
| 370 |
+
outputDiv.textContent = 'Bitte geben Sie Text zum Übersetzen ein.';
|
| 371 |
+
return;
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
// Simple mock translation - in reality this would be an API call
|
| 375 |
+
if (translations[inputText]) {
|
| 376 |
+
outputDiv.textContent = translations[inputText];
|
| 377 |
+
} else {
|
| 378 |
+
outputDiv.textContent = `[Übersetzung von: "${inputText}"] - Dies ist eine simulierte Übersetzung. In der echten Anwendung würde dies eine API-Abfrage sein.`;
|
| 379 |
+
}
|
| 380 |
+
|
| 381 |
+
// Add to history (simplified)
|
| 382 |
+
const historyContainer = document.querySelector('.divide-y.divide-gray-200');
|
| 383 |
+
const newHistoryItem = document.createElement('div');
|
| 384 |
+
newHistoryItem.className = 'history-item p-4 hover:cursor-pointer';
|
| 385 |
+
newHistoryItem.innerHTML = `
|
| 386 |
+
<div class="flex items-center justify-between">
|
| 387 |
+
<div>
|
| 388 |
+
<p class="font-medium">${inputText} → ${outputDiv.textContent.substring(0, 20)}${outputDiv.textContent.length > 20 ? '...' : ''}</p>
|
| 389 |
+
<p class="text-sm text-gray-500">Gerade eben</p>
|
| 390 |
+
</div>
|
| 391 |
+
<button class="text-gray-400 hover:text-indigo-600">
|
| 392 |
+
<i class="fas fa-redo"></i>
|
| 393 |
+
</button>
|
| 394 |
+
</div>
|
| 395 |
+
`;
|
| 396 |
+
|
| 397 |
+
historyContainer.insertBefore(newHistoryItem, historyContainer.firstChild);
|
| 398 |
+
});
|
| 399 |
+
|
| 400 |
+
// Copy button functionality
|
| 401 |
+
const copyBtn = document.querySelectorAll('.flex.space-x-2 button')[0];
|
| 402 |
+
|
| 403 |
+
copyBtn.addEventListener('click', function() {
|
| 404 |
+
const textToCopy = outputDiv.textContent;
|
| 405 |
+
navigator.clipboard.writeText(textToCopy).then(() => {
|
| 406 |
+
const originalText = copyBtn.innerHTML;
|
| 407 |
+
copyBtn.innerHTML = '<i class="fas fa-check mr-1"></i> Kopiert';
|
| 408 |
+
setTimeout(() => {
|
| 409 |
+
copyBtn.innerHTML = originalText;
|
| 410 |
+
}, 2000);
|
| 411 |
+
});
|
| 412 |
+
});
|
| 413 |
+
|
| 414 |
+
// Clear button
|
| 415 |
+
const clearBtn = document.querySelector('.text-xs.text-gray-500.hover\\:text-gray-700');
|
| 416 |
+
|
| 417 |
+
clearBtn.addEventListener('click', function() {
|
| 418 |
+
textarea.value = '';
|
| 419 |
+
charCounter.textContent = '0/5000 Zeichen';
|
| 420 |
+
charCounter.classList.add('text-gray-400');
|
| 421 |
+
charCounter.classList.remove('text-red-500');
|
| 422 |
+
});
|
| 423 |
+
});
|
| 424 |
+
</script>
|
| 425 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=AhBoh/prova2" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 426 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Java Schweizerdeutsch - Italienisch übersetzer
|