From 174d0cebbe6ddb4010de1032c8669e47ab931a20 Mon Sep 17 00:00:00 2001 From: almazlar Date: Sat, 7 Feb 2026 22:17:00 +0300 Subject: [PATCH] feat: Add a full user interface for image upload, preview, and structured display of AI analysis and translation results with improved loading states. --- index.html | 312 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 251 insertions(+), 61 deletions(-) diff --git a/index.html b/index.html index 2006786..fb5eac8 100644 --- a/index.html +++ b/index.html @@ -1,65 +1,255 @@ -
Sonuç burada görünecek...
- -
+ + - \ No newline at end of file + + .container { + background: var(--card); + padding: 2rem; + border-radius: 12px; + width: 100%; + max-width: 600px; + border: 1px solid #30363d; + box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); + } + + h2 { + text-align: center; + color: var(--accent); + margin-top: 0; + } + + .upload-section { + border: 2px dashed #30363d; + padding: 30px; + text-align: center; + border-radius: 8px; + cursor: pointer; + transition: 0.3s; + margin-bottom: 20px; + } + + .upload-section:hover { + border-color: var(--accent); + background: #1c2128; + } + + #preview { + max-width: 100%; + border-radius: 8px; + margin: 15px 0; + display: none; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); + } + + button { + background: var(--accent); + color: white; + border: none; + padding: 12px; + border-radius: 6px; + cursor: pointer; + font-weight: 600; + width: 100%; + font-size: 1rem; + transition: 0.2s; + } + + button:disabled { + background: #21262d; + color: #8b949e; + cursor: not-allowed; + } + + #translateBtn { + background: var(--success); + margin-top: 15px; + display: none; + } + + .result-box { + margin-top: 25px; + background: #0d1117; + padding: 20px; + border-radius: 8px; + border-left: 4px solid var(--accent); + } + + .label { + font-size: 0.75rem; + color: #8b949e; + text-transform: uppercase; + letter-spacing: 1px; + margin-bottom: 8px; + display: block; + } + + #translationResult { + margin-top: 20px; + color: #acb6c2; + border-left: 4px solid var(--success); + } + + .loader { + display: inline-block; + width: 12px; + height: 12px; + border: 2px solid #fff; + border-bottom-color: transparent; + border-radius: 50%; + animation: rotation 1s linear infinite; + margin-right: 8px; + } + + @keyframes rotation { + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } + } + + + + + +
+

Bu resimde ne var?

+ +
+

📷 Görseli seçmek için buraya tıklayın

+ +
+ + + + + + + + +
+ + + + + + \ No newline at end of file