Spaces:
Running
Running
File size: 5,729 Bytes
72263a9 df3419a 72263a9 df3419a 72263a9 c100a24 72263a9 df3419a 72263a9 df3419a 72263a9 df3419a 94902a1 df3419a 72263a9 df3419a 94902a1 df3419a 72263a9 df3419a 72263a9 d759f05 72263a9 94902a1 df3419a 72263a9 a9a6399 72263a9 df3419a a9a6399 72263a9 d759f05 94902a1 72263a9 df3419a 72263a9 d759f05 72263a9 df3419a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 |
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
width: 100%;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
overflow: hidden;
}
/* --- Top Bar --- */
#topBar {
display: flex;
align-items: center;
height: 50px;
background: #6366f1;
padding: 0 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
z-index: 1000;
}
#titleSection {
display: flex;
align-items: center;
}
#titleSection h1 {
font-size: 20px;
font-weight: 600;
color: white;
letter-spacing: 0.5px;
}
#divider {
width: 2px;
height: 30px;
background: rgba(255, 255, 255, 0.3);
margin: 0 20px;
}
/* --- Menus --- */
#menuSection {
display: flex;
gap: 5px;
}
.menuGroup {
position: relative;
}
.menuButton {
background: rgba(255, 255, 255, 0.15);
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
}
.menuButton:hover {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.3);
transform: translateY(-1px);
}
.menuButton:active {
transform: translateY(0);
}
.dropdown {
position: absolute;
top: 100%;
left: 0;
background: white;
border-radius: 6px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
min-width: 150px;
opacity: 0;
visibility: hidden;
transform: translateY(-8px);
transition: all 0.2s ease;
margin-top: 4px;
z-index: 2000;
}
.menuGroup:hover .dropdown,
.dropdown:hover {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.dropdownItem {
display: block;
padding: 12px 16px;
color: #333;
text-decoration: none;
font-size: 14px;
transition: all 0.15s ease;
border-left: 3px solid transparent;
}
.dropdownItem:first-child {
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.dropdownItem:last-child {
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.dropdownItem:hover {
background: #f0f2f5;
border-left-color: #667eea;
padding-left: 20px;
}
.dropdownItem:active {
background: #e8ebf0;
}
/* --- GitHub Link --- */
#githubLink {
margin-left: auto;
display: flex;
align-items: center;
}
#githubLink a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
color: white;
transition: all 0.2s ease;
border-radius: 4px;
}
#githubLink a:hover {
background: rgba(255, 255, 255, 0.15);
transform: scale(1.05);
}
#githubLink a:active {
transform: scale(0.95);
}
#githubLink svg {
width: 24px;
height: 24px;
}
/* --- Main Split Layout --- */
#pageContainer {
display: flex;
width: 100%;
height: calc(100% - 50px);
overflow: hidden;
}
#pageContainer.dragging {
user-select: none;
cursor: col-resize;
}
/* Add dark grey padding around Gradio + Code --- */
#outputPane {
flex: 0 0 30%;
background: #2c2c2c;
/* dark grey background around both sections */
display: flex;
flex-direction: column;
box-sizing: border-box;
overflow: hidden;
}
/* --- Tab Bar --- */
#tabBar {
display: flex;
background: #1f1f1f;
border-bottom: 2px solid #e5e7eb;
flex-shrink: 0;
}
.tab {
padding: 12px 20px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #999;
background: #1f1f1f;
border: none;
transition: all 0.2s ease;
border-bottom: 3px solid transparent;
margin-bottom: -2px;
}
.tab:hover {
color: #ccc;
}
.tab.active {
color: #6366f1;
border-bottom-color: #6366f1;
}
/* --- Tab Content --- */
.tabContent {
display: none;
flex: 1;
flex-direction: column;
padding: 16px;
gap: 16px;
overflow: hidden;
box-sizing: border-box;
}
.tabContent.active {
display: flex;
}
/* Add matching background to the Gradio frame container */
#chatContainer {
background: #2c2c2c;
border: none;
flex: 1;
box-sizing: border-box;
border-radius: 6px;
overflow: hidden;
}
/* Slightly inset the Gradio iframe */
#chatContainer iframe,
#gradioContainer iframe {
border-radius: 6px;
overflow: hidden;
width: 100%;
height: 100%;
border: none;
}
#gradioContainer {
background: #2c2c2c;
border: none;
flex: 1;
box-sizing: border-box;
border-radius: 6px;
overflow: hidden;
}
/* Style the code area with matching margin and contrast */
#generatedCode {
display: none;
background: #1f1f1f;
color: #e0e7ff;
border-radius: 6px;
padding: 16px;
box-sizing: border-box;
flex: 1;
overflow-y: auto;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
white-space: pre-wrap;
font-size: 13px;
line-height: 1.5;
}
#aichatCode {
background: #1f1f1f;
color: #e0e7ff;
border-radius: 6px;
padding: 16px;
box-sizing: border-box;
flex: 1;
overflow-y: auto;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
white-space: pre-wrap;
font-size: 13px;
line-height: 1.5;
}
/* --- Vertical Resizer --- */
.verticalResizer {
display: none;
height: 8px;
background: #e5e7eb;
cursor: row-resize;
transition: background 0.2s ease;
flex-shrink: 0;
z-index: 1500;
}
.verticalResizer:hover,
.verticalResizer.active {
background: #6366f1;
}
/* --- Resizer --- */
.resizer {
width: 8px;
background: #e5e7eb;
cursor: col-resize;
transition: background 0.2s ease;
flex-shrink: 0;
z-index: 1500;
}
.resizer:hover,
.resizer.active {
background: #6366f1;
}
/* --- Right Pane --- */
#blocklyDiv {
flex: 1;
min-width: 40%;
height: 100%;
overflow: hidden;
background: #fff;
} |