improvise the button , explain , comment , find bug , doccument improvise these acording to ui
Browse files- index.html +20 -10
index.html
CHANGED
|
@@ -236,17 +236,25 @@
|
|
| 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-
|
| 240 |
-
<
|
|
|
|
|
|
|
| 241 |
</button>
|
| 242 |
-
<button onclick="commentCode()" class="bg-
|
| 243 |
-
<
|
|
|
|
|
|
|
| 244 |
</button>
|
| 245 |
-
<button onclick="analyzeCode()" class="bg-
|
| 246 |
-
<
|
|
|
|
|
|
|
| 247 |
</button>
|
| 248 |
-
<button onclick="documentCode()" class="bg-
|
| 249 |
-
<
|
|
|
|
|
|
|
| 250 |
</button>
|
| 251 |
</div>
|
| 252 |
</div>
|
|
@@ -285,8 +293,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-
|
| 289 |
-
<
|
|
|
|
|
|
|
| 290 |
</button>
|
| 291 |
</div>
|
| 292 |
</div>
|
|
|
|
| 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="group relative bg-gray-800/50 hover:bg-gray-700/70 border border-gray-700 hover:border-blue-500 text-white py-2.5 px-3 rounded-lg text-sm font-medium flex items-center justify-center transition-all duration-200 shadow-md hover:shadow-blue-500/20">
|
| 240 |
+
<div class="absolute inset-0 bg-blue-500/10 group-hover:bg-blue-500/20 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
|
| 241 |
+
<i data-feather="book-open" class="mr-2 w-4 h-4 text-blue-400"></i>
|
| 242 |
+
<span class="relative">Explain</span>
|
| 243 |
</button>
|
| 244 |
+
<button onclick="commentCode()" class="group relative bg-gray-800/50 hover:bg-gray-700/70 border border-gray-700 hover:border-purple-500 text-white py-2.5 px-3 rounded-lg text-sm font-medium flex items-center justify-center transition-all duration-200 shadow-md hover:shadow-purple-500/20">
|
| 245 |
+
<div class="absolute inset-0 bg-purple-500/10 group-hover:bg-purple-500/20 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
|
| 246 |
+
<i data-feather="message-square" class="mr-2 w-4 h-4 text-purple-400"></i>
|
| 247 |
+
<span class="relative">Comment</span>
|
| 248 |
</button>
|
| 249 |
+
<button onclick="analyzeCode()" class="group relative bg-gray-800/50 hover:bg-gray-700/70 border border-gray-700 hover:border-red-500 text-white py-2.5 px-3 rounded-lg text-sm font-medium flex items-center justify-center transition-all duration-200 shadow-md hover:shadow-red-500/20">
|
| 250 |
+
<div class="absolute inset-0 bg-red-500/10 group-hover:bg-red-500/20 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
|
| 251 |
+
<i data-feather="bug" class="mr-2 w-4 h-4 text-red-400"></i>
|
| 252 |
+
<span class="relative">Find Bugs</span>
|
| 253 |
</button>
|
| 254 |
+
<button onclick="documentCode()" class="group relative bg-gray-800/50 hover:bg-gray-700/70 border border-gray-700 hover:border-green-500 text-white py-2.5 px-3 rounded-lg text-sm font-medium flex items-center justify-center transition-all duration-200 shadow-md hover:shadow-green-500/20">
|
| 255 |
+
<div class="absolute inset-0 bg-green-500/10 group-hover:bg-green-500/20 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
|
| 256 |
+
<i data-feather="file-text" class="mr-2 w-4 h-4 text-green-400"></i>
|
| 257 |
+
<span class="relative">Document</span>
|
| 258 |
</button>
|
| 259 |
</div>
|
| 260 |
</div>
|
|
|
|
| 293 |
</div>
|
| 294 |
<pre id="fixedCode" class="text-gray-300 text-sm font-mono h-64 overflow-auto bg-gray-800 p-4 rounded">
|
| 295 |
<span class="text-gray-500">// Fixed code will appear here after analysis</span></pre>
|
| 296 |
+
<button onclick="applyFix()" class="group relative mt-4 w-full bg-gray-800/50 hover:bg-gray-700/70 border border-gray-700 hover:border-green-500 text-white py-3 px-4 rounded-lg font-medium flex items-center justify-center transition-all duration-200 shadow-md hover:shadow-green-500/20">
|
| 297 |
+
<div class="absolute inset-0 bg-green-500/10 group-hover:bg-green-500/20 rounded-lg opacity-0 group-hover:opacity-100 transition-opacity duration-300"></div>
|
| 298 |
+
<i data-feather="check-circle" class="mr-2 text-green-400"></i>
|
| 299 |
+
<span class="relative">Apply Fix</span>
|
| 300 |
</button>
|
| 301 |
</div>
|
| 302 |
</div>
|