Spaces:
Running
Running
can you put the download button to the right of the tabs
Browse files- index.html +20 -19
- style.css +3 -4
index.html
CHANGED
|
@@ -63,32 +63,33 @@
|
|
| 63 |
<button id="generate-btn" class="flex-1 bg-secondary-500 hover:bg-secondary-600 text-white py-2 px-4 rounded-lg font-medium flex items-center justify-center">
|
| 64 |
<i data-feather="play" class="w-4 h-4 mr-2"></i> Generate Output
|
| 65 |
</button>
|
| 66 |
-
|
| 67 |
-
<i data-feather="download" class="w-4 h-4 mr-2"></i> Download All
|
| 68 |
-
</button>
|
| 69 |
-
</div>
|
| 70 |
</div>
|
| 71 |
</div>
|
| 72 |
<!-- Right Column - Output with Tabs -->
|
| 73 |
<div class="lg:w-2/3 h-full">
|
| 74 |
<div class="bg-gray-800 rounded-lg overflow-hidden shadow-xl h-full">
|
| 75 |
-
<!-- Tabs -->
|
| 76 |
-
<div class="flex border-b border-gray-700">
|
| 77 |
-
<
|
| 78 |
-
<
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
<
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
<
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
</button>
|
| 89 |
</div>
|
| 90 |
-
|
| 91 |
-
<!-- Tab Content -->
|
| 92 |
<div class="p-4 flex-1 flex flex-col">
|
| 93 |
<div id="entity" class="tab-content flex flex-col flex-1">
|
| 94 |
<textarea class="w-full flex-1 bg-gray-800 text-gray-100 p-4 rounded-lg border border-gray-700 focus:border-primary-500 focus:ring-1 focus:ring-primary-500 resize-none" readonly></textarea>
|
|
|
|
| 63 |
<button id="generate-btn" class="flex-1 bg-secondary-500 hover:bg-secondary-600 text-white py-2 px-4 rounded-lg font-medium flex items-center justify-center">
|
| 64 |
<i data-feather="play" class="w-4 h-4 mr-2"></i> Generate Output
|
| 65 |
</button>
|
| 66 |
+
</div>
|
|
|
|
|
|
|
|
|
|
| 67 |
</div>
|
| 68 |
</div>
|
| 69 |
<!-- Right Column - Output with Tabs -->
|
| 70 |
<div class="lg:w-2/3 h-full">
|
| 71 |
<div class="bg-gray-800 rounded-lg overflow-hidden shadow-xl h-full">
|
| 72 |
+
<!-- Tabs Header -->
|
| 73 |
+
<div class="flex items-center justify-between border-b border-gray-700">
|
| 74 |
+
<div class="flex">
|
| 75 |
+
<button class="tab-btn active px-4 py-2 text-primary-500 font-medium" data-tab="entity">
|
| 76 |
+
<i data-feather="database" class="w-4 h-4 mr-2"></i> Entity
|
| 77 |
+
</button>
|
| 78 |
+
<button class="tab-btn px-4 py-2 text-gray-400 hover:text-primary-500 font-medium" data-tab="repository">
|
| 79 |
+
<i data-feather="archive" class="w-4 h-4 mr-2"></i> Repository
|
| 80 |
+
</button>
|
| 81 |
+
<button class="tab-btn px-4 py-2 text-gray-400 hover:text-primary-500 font-medium" data-tab="service">
|
| 82 |
+
<i data-feather="activity" class="w-4 h-4 mr-2"></i> Service
|
| 83 |
+
</button>
|
| 84 |
+
<button class="tab-btn px-4 py-2 text-gray-400 hover:text-primary-500 font-medium" data-tab="controller">
|
| 85 |
+
<i data-feather="terminal" class="w-4 h-4 mr-2"></i> Controller
|
| 86 |
+
</button>
|
| 87 |
+
</div>
|
| 88 |
+
<button id="download-btn" class="bg-green-500 hover:bg-green-600 text-white py-1 px-3 rounded-lg font-medium flex items-center justify-center mr-2">
|
| 89 |
+
<i data-feather="download" class="w-4 h-4 mr-2"></i> Download
|
| 90 |
</button>
|
| 91 |
</div>
|
| 92 |
+
<!-- Tab Content -->
|
|
|
|
| 93 |
<div class="p-4 flex-1 flex flex-col">
|
| 94 |
<div id="entity" class="tab-content flex flex-col flex-1">
|
| 95 |
<textarea class="w-full flex-1 bg-gray-800 text-gray-100 p-4 rounded-lg border border-gray-700 focus:border-primary-500 focus:ring-1 focus:ring-primary-500 resize-none" readonly></textarea>
|
style.css
CHANGED
|
@@ -60,10 +60,6 @@ textarea {
|
|
| 60 |
background: #818cf8;
|
| 61 |
}
|
| 62 |
/* Button Styles */
|
| 63 |
-
.flex-1 {
|
| 64 |
-
flex: 1;
|
| 65 |
-
}
|
| 66 |
-
|
| 67 |
.bg-green-500 {
|
| 68 |
background-color: #10b981;
|
| 69 |
}
|
|
@@ -72,6 +68,9 @@ textarea {
|
|
| 72 |
background-color: #059669;
|
| 73 |
}
|
| 74 |
|
|
|
|
|
|
|
|
|
|
| 75 |
/* Animation */
|
| 76 |
>@keyframes fadeIn {
|
| 77 |
from { opacity: 0; transform: translateY(10px); }
|
|
|
|
| 60 |
background: #818cf8;
|
| 61 |
}
|
| 62 |
/* Button Styles */
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
.bg-green-500 {
|
| 64 |
background-color: #10b981;
|
| 65 |
}
|
|
|
|
| 68 |
background-color: #059669;
|
| 69 |
}
|
| 70 |
|
| 71 |
+
.tab-btn {
|
| 72 |
+
white-space: nowrap;
|
| 73 |
+
}
|
| 74 |
/* Animation */
|
| 75 |
>@keyframes fadeIn {
|
| 76 |
from { opacity: 0; transform: translateY(10px); }
|