Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +34 -58
templates/index.html
CHANGED
|
@@ -1,71 +1,47 @@
|
|
| 1 |
-
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<title>QA Dashboard Pro</title>
|
| 6 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
-
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@3.3.3/dist/tailwind.min.css" rel="stylesheet">
|
| 8 |
-
<link rel="stylesheet" href="/static/style.css">
|
| 9 |
-
</head>
|
| 10 |
|
| 11 |
-
<
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
<h1 class="text-white text-2xl font-semibold">Ask your Doubts<br>with Other Users</h1>
|
| 16 |
-
</header>
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
<!-- Question Box -->
|
| 23 |
<textarea id="context"
|
| 24 |
-
placeholder="Paste your
|
| 25 |
-
class="border border-gray-200 rounded-2xl p-
|
|
|
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
<option>General Knowledge</option>
|
| 35 |
-
</select>
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
|
| 43 |
-
|
|
|
|
|
|
|
| 44 |
<div id="answer-box"
|
| 45 |
-
class="bg-blue-50 border border-blue-100 rounded-2xl p-
|
| 46 |
</div>
|
| 47 |
-
</main>
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
<
|
| 53 |
-
|
| 54 |
-
</
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
Subjects
|
| 58 |
-
</button>
|
| 59 |
-
<button class="flex flex-col items-center text-blue-700 font-bold">
|
| 60 |
-
<span class="text-lg">β</span>
|
| 61 |
-
Ask
|
| 62 |
-
</button>
|
| 63 |
-
<button class="flex flex-col items-center hover:text-blue-800">
|
| 64 |
-
<span class="text-lg">π€</span>
|
| 65 |
-
Profile
|
| 66 |
-
</button>
|
| 67 |
-
</nav>
|
| 68 |
|
| 69 |
<script src="/static/script.js"></script>
|
| 70 |
</body>
|
| 71 |
-
</html>
|
|
|
|
| 1 |
+
<body class="bg-gradient-to-b from-blue-100 via-blue-200 to-blue-300 min-h-screen flex flex-col items-center justify-center p-4">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
<div class="bg-white w-full max-w-md md:max-w-lg rounded-3xl shadow-2xl p-6 space-y-5">
|
| 4 |
|
| 5 |
+
<!-- Title -->
|
| 6 |
+
<h1 class="text-center text-2xl md:text-3xl font-bold text-blue-700">π¬ Ask Your Doubts</h1>
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
<!-- Context Box -->
|
| 9 |
+
<div>
|
| 10 |
+
<label for="context" class="block text-gray-600 font-semibold mb-1">Context</label>
|
|
|
|
|
|
|
| 11 |
<textarea id="context"
|
| 12 |
+
placeholder="Paste your passage or background information here..."
|
| 13 |
+
class="w-full border border-gray-200 rounded-2xl p-4 text-gray-700 text-sm focus:ring-2 focus:ring-blue-400 min-h-[130px] resize-y shadow-sm"></textarea>
|
| 14 |
+
</div>
|
| 15 |
|
| 16 |
+
<!-- Question Box -->
|
| 17 |
+
<div>
|
| 18 |
+
<label for="question" class="block text-gray-600 font-semibold mb-1">Question(s)</label>
|
| 19 |
+
<textarea id="question"
|
| 20 |
+
placeholder="Write one or more questions (each on a new line)..."
|
| 21 |
+
class="w-full border border-gray-200 rounded-2xl p-4 text-gray-700 text-sm focus:ring-2 focus:ring-blue-400 min-h-[100px] resize-y shadow-sm"></textarea>
|
| 22 |
+
</div>
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
<!-- Ask Button -->
|
| 25 |
+
<button id="submit-btn"
|
| 26 |
+
class="w-full bg-gradient-to-r from-blue-600 to-indigo-500 hover:from-blue-500 hover:to-indigo-400 text-white font-semibold py-3 rounded-2xl shadow-md transition transform hover:scale-[1.02]">
|
| 27 |
+
π Ask Question
|
| 28 |
+
</button>
|
| 29 |
|
| 30 |
+
<!-- Answer Section -->
|
| 31 |
+
<div class="mt-5">
|
| 32 |
+
<h2 class="text-lg font-semibold text-blue-700 mb-2">π‘ Answers</h2>
|
| 33 |
<div id="answer-box"
|
| 34 |
+
class="bg-blue-50 border border-blue-100 rounded-2xl p-4 text-gray-800 text-sm min-h-[120px] max-h-[400px] overflow-y-auto shadow-inner"></div>
|
| 35 |
</div>
|
|
|
|
| 36 |
|
| 37 |
+
<!-- History Section -->
|
| 38 |
+
<div class="mt-5">
|
| 39 |
+
<h2 class="text-lg font-semibold text-blue-700 mb-2">π History</h2>
|
| 40 |
+
<ul id="history-list"
|
| 41 |
+
class="space-y-2 text-gray-700 text-sm max-h-[200px] overflow-y-auto"></ul>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
<script src="/static/script.js"></script>
|
| 47 |
</body>
|
|
|