make the button look good and acording to ui
Browse files- index.html +12 -12
index.html
CHANGED
|
@@ -235,21 +235,21 @@
|
|
| 235 |
|
| 236 |
<span class="text-green-400">return</span> total;
|
| 237 |
}</div>
|
| 238 |
-
<div class="grid grid-cols-2 gap-
|
| 239 |
-
<button onclick="explainCode()" class="bg-blue-600 hover:
|
| 240 |
-
<i data-feather="book-open" class="mr-
|
| 241 |
</button>
|
| 242 |
-
<button onclick="commentCode()" class="bg-purple-600 hover:
|
| 243 |
-
<i data-feather="message-square" class="mr-
|
| 244 |
</button>
|
| 245 |
-
<button onclick="analyzeCode()" class="bg-red-600 hover:
|
| 246 |
-
<i data-feather="bug" class="mr-
|
| 247 |
</button>
|
| 248 |
-
<button onclick="documentCode()" class="bg-green-600 hover:
|
| 249 |
-
<i data-feather="file-text" class="mr-
|
| 250 |
</button>
|
| 251 |
</div>
|
| 252 |
-
|
| 253 |
<!-- Bug Explanation Terminal -->
|
| 254 |
<div class="code-editor p-4 glow lg:col-span-1">
|
| 255 |
<div class="flex items-center mb-4">
|
|
@@ -285,10 +285,10 @@
|
|
| 285 |
</div>
|
| 286 |
<pre id="fixedCode" class="text-gray-300 text-sm font-mono h-64 overflow-auto bg-gray-800 p-4 rounded">
|
| 287 |
<span class="text-gray-500">// Fixed code will appear here after analysis</span></pre>
|
| 288 |
-
<button onclick="applyFix()" class="mt-4 w-full bg-green-600 hover:
|
| 289 |
<i data-feather="check-circle" class="mr-2"></i> Apply Fix
|
| 290 |
</button>
|
| 291 |
-
|
| 292 |
</div>
|
| 293 |
</div>
|
| 294 |
|
|
|
|
| 235 |
|
| 236 |
<span class="text-green-400">return</span> total;
|
| 237 |
}</div>
|
| 238 |
+
<div class="grid grid-cols-2 gap-3 mt-4">
|
| 239 |
+
<button onclick="explainCode()" class="bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white py-2.5 px-3 rounded-lg text-sm font-medium flex items-center justify-center transition-all duration-200 transform hover:scale-105 shadow-lg hover:shadow-xl">
|
| 240 |
+
<i data-feather="book-open" class="mr-2 w-4 h-4"></i> Explain
|
| 241 |
</button>
|
| 242 |
+
<button onclick="commentCode()" class="bg-gradient-to-r from-purple-600 to-purple-700 hover:from-purple-700 hover:to-purple-800 text-white py-2.5 px-3 rounded-lg text-sm font-medium flex items-center justify-center transition-all duration-200 transform hover:scale-105 shadow-lg hover:shadow-xl">
|
| 243 |
+
<i data-feather="message-square" class="mr-2 w-4 h-4"></i> Comment
|
| 244 |
</button>
|
| 245 |
+
<button onclick="analyzeCode()" class="bg-gradient-to-r from-red-600 to-red-700 hover:from-red-700 hover:to-red-800 text-white py-2.5 px-3 rounded-lg text-sm font-medium flex items-center justify-center transition-all duration-200 transform hover:scale-105 shadow-lg hover:shadow-xl">
|
| 246 |
+
<i data-feather="bug" class="mr-2 w-4 h-4"></i> Find Bugs
|
| 247 |
</button>
|
| 248 |
+
<button onclick="documentCode()" class="bg-gradient-to-r from-green-600 to-green-700 hover:from-green-700 hover:to-green-800 text-white py-2.5 px-3 rounded-lg text-sm font-medium flex items-center justify-center transition-all duration-200 transform hover:scale-105 shadow-lg hover:shadow-xl">
|
| 249 |
+
<i data-feather="file-text" class="mr-2 w-4 h-4"></i> Document
|
| 250 |
</button>
|
| 251 |
</div>
|
| 252 |
+
</div>
|
| 253 |
<!-- Bug Explanation Terminal -->
|
| 254 |
<div class="code-editor p-4 glow lg:col-span-1">
|
| 255 |
<div class="flex items-center mb-4">
|
|
|
|
| 285 |
</div>
|
| 286 |
<pre id="fixedCode" class="text-gray-300 text-sm font-mono h-64 overflow-auto bg-gray-800 p-4 rounded">
|
| 287 |
<span class="text-gray-500">// Fixed code will appear here after analysis</span></pre>
|
| 288 |
+
<button onclick="applyFix()" class="mt-4 w-full bg-gradient-to-r from-green-600 to-green-700 hover:from-green-700 hover:to-green-800 text-white py-3 px-4 rounded-lg font-medium flex items-center justify-center transition-all duration-200 transform hover:scale-105 shadow-lg hover:shadow-xl">
|
| 289 |
<i data-feather="check-circle" class="mr-2"></i> Apply Fix
|
| 290 |
</button>
|
| 291 |
+
</div>
|
| 292 |
</div>
|
| 293 |
</div>
|
| 294 |
|