Spaces:
Running
Running
Antigravity commited on
Commit ·
3e10138
1
Parent(s): 2d802f0
Update frontend for mobile responsiveness and add hamburger menu
Browse files- static/css/main.css +97 -1
- static/css/style.css +36 -3
- templates/apriori.html +25 -0
- templates/clustering.html +18 -0
- templates/index.html +15 -0
- templates/layout.html +24 -1
- templates/qa.html +33 -0
- templates/sentiment.html +30 -0
static/css/main.css
CHANGED
|
@@ -169,7 +169,41 @@ body {
|
|
| 169 |
animation: fadeIn 0.5s ease forwards;
|
| 170 |
}
|
| 171 |
|
| 172 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
@media (max-width: 1024px) {
|
| 174 |
.dashboard-wrapper {
|
| 175 |
grid-template-columns: 80px 1fr;
|
|
@@ -182,3 +216,65 @@ body {
|
|
| 182 |
align-items: center;
|
| 183 |
}
|
| 184 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
animation: fadeIn 0.5s ease forwards;
|
| 170 |
}
|
| 171 |
|
| 172 |
+
/* Hamburger Menu Button */
|
| 173 |
+
.hamburger-btn {
|
| 174 |
+
display: none;
|
| 175 |
+
background: none;
|
| 176 |
+
border: none;
|
| 177 |
+
color: var(--text-primary);
|
| 178 |
+
font-size: 1.5rem;
|
| 179 |
+
cursor: pointer;
|
| 180 |
+
padding: 0.5rem;
|
| 181 |
+
width: auto;
|
| 182 |
+
border-radius: 8px;
|
| 183 |
+
transition: var(--transition);
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
.hamburger-btn:hover {
|
| 187 |
+
background: rgba(255, 255, 255, 0.05);
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
/* Sidebar Overlay Backdrop */
|
| 191 |
+
.sidebar-overlay {
|
| 192 |
+
display: none;
|
| 193 |
+
position: fixed;
|
| 194 |
+
inset: 0;
|
| 195 |
+
background: rgba(0, 0, 0, 0.6);
|
| 196 |
+
backdrop-filter: blur(4px);
|
| 197 |
+
z-index: 99;
|
| 198 |
+
opacity: 0;
|
| 199 |
+
transition: opacity 0.3s ease;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
.sidebar-overlay.active {
|
| 203 |
+
opacity: 1;
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
/* Responsive — Tablet */
|
| 207 |
@media (max-width: 1024px) {
|
| 208 |
.dashboard-wrapper {
|
| 209 |
grid-template-columns: 80px 1fr;
|
|
|
|
| 216 |
align-items: center;
|
| 217 |
}
|
| 218 |
}
|
| 219 |
+
|
| 220 |
+
/* Responsive — Mobile */
|
| 221 |
+
@media (max-width: 768px) {
|
| 222 |
+
.dashboard-wrapper {
|
| 223 |
+
grid-template-columns: 1fr;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
.sidebar {
|
| 227 |
+
position: fixed;
|
| 228 |
+
top: 0;
|
| 229 |
+
left: 0;
|
| 230 |
+
width: 280px;
|
| 231 |
+
height: 100vh;
|
| 232 |
+
z-index: 100;
|
| 233 |
+
transform: translateX(-100%);
|
| 234 |
+
transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
|
| 235 |
+
padding: 2rem 1.5rem;
|
| 236 |
+
align-items: flex-start;
|
| 237 |
+
box-shadow: none;
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
.sidebar.open {
|
| 241 |
+
transform: translateX(0);
|
| 242 |
+
box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
.brand-name, .nav-text {
|
| 246 |
+
display: inline;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
.sidebar-overlay.active {
|
| 250 |
+
display: block;
|
| 251 |
+
opacity: 1;
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
.hamburger-btn {
|
| 255 |
+
display: flex;
|
| 256 |
+
align-items: center;
|
| 257 |
+
justify-content: center;
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
.main-content {
|
| 261 |
+
padding: 1rem;
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
.top-bar {
|
| 265 |
+
margin-bottom: 1.5rem;
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.page-title h1 {
|
| 269 |
+
font-size: 1.4rem;
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
+
.page-title p {
|
| 273 |
+
font-size: 0.85rem;
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
.glass-card {
|
| 277 |
+
padding: 1.25rem;
|
| 278 |
+
border-radius: 12px;
|
| 279 |
+
}
|
| 280 |
+
}
|
static/css/style.css
CHANGED
|
@@ -445,17 +445,50 @@ input[type="range"]::-webkit-slider-thumb {
|
|
| 445 |
}
|
| 446 |
|
| 447 |
/* Responsive */
|
| 448 |
-
@media (max-width:
|
| 449 |
.container {
|
| 450 |
-
padding: 1.5rem;
|
| 451 |
}
|
| 452 |
|
| 453 |
.form-card {
|
| 454 |
padding: 1.5rem;
|
| 455 |
border-radius: 1.5rem;
|
|
|
|
| 456 |
}
|
| 457 |
|
| 458 |
h1 {
|
| 459 |
-
font-size:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 460 |
}
|
| 461 |
}
|
|
|
|
| 445 |
}
|
| 446 |
|
| 447 |
/* Responsive */
|
| 448 |
+
@media (max-width: 768px) {
|
| 449 |
.container {
|
| 450 |
+
padding: 1.5rem 1rem;
|
| 451 |
}
|
| 452 |
|
| 453 |
.form-card {
|
| 454 |
padding: 1.5rem;
|
| 455 |
border-radius: 1.5rem;
|
| 456 |
+
margin: 1.5rem auto;
|
| 457 |
}
|
| 458 |
|
| 459 |
h1 {
|
| 460 |
+
font-size: 2rem;
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
.grid {
|
| 464 |
+
grid-template-columns: 1fr;
|
| 465 |
+
gap: 1.25rem;
|
| 466 |
+
}
|
| 467 |
+
|
| 468 |
+
.card {
|
| 469 |
+
padding: 1.5rem;
|
| 470 |
+
border-radius: 1.5rem;
|
| 471 |
+
}
|
| 472 |
+
|
| 473 |
+
.card h3 {
|
| 474 |
+
font-size: 1.3rem;
|
| 475 |
+
}
|
| 476 |
+
|
| 477 |
+
button {
|
| 478 |
+
padding: 1rem 1.5rem;
|
| 479 |
+
font-size: 1rem;
|
| 480 |
+
}
|
| 481 |
+
|
| 482 |
+
.result-box {
|
| 483 |
+
padding: 1.5rem;
|
| 484 |
+
}
|
| 485 |
+
|
| 486 |
+
.record-btn {
|
| 487 |
+
width: 65px;
|
| 488 |
+
height: 65px;
|
| 489 |
+
}
|
| 490 |
+
|
| 491 |
+
#preview-container {
|
| 492 |
+
height: 220px;
|
| 493 |
}
|
| 494 |
}
|
templates/apriori.html
CHANGED
|
@@ -205,5 +205,30 @@
|
|
| 205 |
border-radius: var(--radius-md);
|
| 206 |
margin: 1rem 0;
|
| 207 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
</style>
|
| 209 |
{% endblock %}
|
|
|
|
| 205 |
border-radius: var(--radius-md);
|
| 206 |
margin: 1rem 0;
|
| 207 |
}
|
| 208 |
+
|
| 209 |
+
@media (max-width: 768px) {
|
| 210 |
+
.service-panel {
|
| 211 |
+
max-width: 100%;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
.settings-grid {
|
| 215 |
+
grid-template-columns: 1fr;
|
| 216 |
+
gap: 1rem;
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
.upload-zone {
|
| 220 |
+
padding: 2rem 1rem;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
.quantum-table th,
|
| 224 |
+
.quantum-table td {
|
| 225 |
+
padding: 0.6rem 0.5rem;
|
| 226 |
+
font-size: 0.75rem;
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
.tag {
|
| 230 |
+
font-size: 0.7rem;
|
| 231 |
+
}
|
| 232 |
+
}
|
| 233 |
</style>
|
| 234 |
{% endblock %}
|
templates/clustering.html
CHANGED
|
@@ -175,6 +175,24 @@
|
|
| 175 |
border-radius: var(--radius-md);
|
| 176 |
margin: 1rem 0;
|
| 177 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
</style>
|
| 179 |
|
| 180 |
<script>
|
|
|
|
| 175 |
border-radius: var(--radius-md);
|
| 176 |
margin: 1rem 0;
|
| 177 |
}
|
| 178 |
+
|
| 179 |
+
@media (max-width: 768px) {
|
| 180 |
+
.service-panel {
|
| 181 |
+
max-width: 100%;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
.upload-zone {
|
| 185 |
+
padding: 2rem 1rem;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
.stats-grid {
|
| 189 |
+
grid-template-columns: 1fr;
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
.visualization-box {
|
| 193 |
+
padding: 0.75rem;
|
| 194 |
+
}
|
| 195 |
+
}
|
| 196 |
</style>
|
| 197 |
|
| 198 |
<script>
|
templates/index.html
CHANGED
|
@@ -143,5 +143,20 @@
|
|
| 143 |
.service-card:hover .btn-quantum-sm {
|
| 144 |
text-decoration: underline;
|
| 145 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
</style>
|
| 147 |
{% endblock %}
|
|
|
|
| 143 |
.service-card:hover .btn-quantum-sm {
|
| 144 |
text-decoration: underline;
|
| 145 |
}
|
| 146 |
+
|
| 147 |
+
@media (max-width: 768px) {
|
| 148 |
+
.services-grid {
|
| 149 |
+
grid-template-columns: 1fr;
|
| 150 |
+
gap: 1rem;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
.service-card h3 {
|
| 154 |
+
font-size: 1.2rem;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
.card-icon {
|
| 158 |
+
font-size: 2rem;
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
</style>
|
| 162 |
{% endblock %}
|
templates/layout.html
CHANGED
|
@@ -14,7 +14,10 @@
|
|
| 14 |
|
| 15 |
<body>
|
| 16 |
<div class="dashboard-wrapper">
|
| 17 |
-
<
|
|
|
|
|
|
|
|
|
|
| 18 |
<div class="brand">
|
| 19 |
<div class="brand-icon">AI</div>
|
| 20 |
<span class="brand-name">Quantum Hub</span>
|
|
@@ -66,6 +69,9 @@
|
|
| 66 |
|
| 67 |
<main class="main-content">
|
| 68 |
<header class="top-bar">
|
|
|
|
|
|
|
|
|
|
| 69 |
<div class="page-title">
|
| 70 |
{% block page_header %}{% endblock %}
|
| 71 |
</div>
|
|
@@ -106,6 +112,23 @@
|
|
| 106 |
</style>
|
| 107 |
|
| 108 |
{% block extra_js %}{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
</body>
|
| 110 |
|
| 111 |
</html>
|
|
|
|
| 14 |
|
| 15 |
<body>
|
| 16 |
<div class="dashboard-wrapper">
|
| 17 |
+
<!-- Mobile Overlay -->
|
| 18 |
+
<div class="sidebar-overlay" id="sidebarOverlay" onclick="closeSidebar()"></div>
|
| 19 |
+
|
| 20 |
+
<aside class="sidebar" id="sidebar">
|
| 21 |
<div class="brand">
|
| 22 |
<div class="brand-icon">AI</div>
|
| 23 |
<span class="brand-name">Quantum Hub</span>
|
|
|
|
| 69 |
|
| 70 |
<main class="main-content">
|
| 71 |
<header class="top-bar">
|
| 72 |
+
<button class="hamburger-btn" id="hamburgerBtn" onclick="openSidebar()">
|
| 73 |
+
<i class="fas fa-bars"></i>
|
| 74 |
+
</button>
|
| 75 |
<div class="page-title">
|
| 76 |
{% block page_header %}{% endblock %}
|
| 77 |
</div>
|
|
|
|
| 112 |
</style>
|
| 113 |
|
| 114 |
{% block extra_js %}{% endblock %}
|
| 115 |
+
|
| 116 |
+
<script>
|
| 117 |
+
function openSidebar() {
|
| 118 |
+
document.getElementById('sidebar').classList.add('open');
|
| 119 |
+
document.getElementById('sidebarOverlay').classList.add('active');
|
| 120 |
+
}
|
| 121 |
+
function closeSidebar() {
|
| 122 |
+
document.getElementById('sidebar').classList.remove('open');
|
| 123 |
+
document.getElementById('sidebarOverlay').classList.remove('active');
|
| 124 |
+
}
|
| 125 |
+
// Close sidebar when a nav link is clicked on mobile
|
| 126 |
+
document.querySelectorAll('.nav-link').forEach(link => {
|
| 127 |
+
link.addEventListener('click', () => {
|
| 128 |
+
if (window.innerWidth <= 768) closeSidebar();
|
| 129 |
+
});
|
| 130 |
+
});
|
| 131 |
+
</script>
|
| 132 |
</body>
|
| 133 |
|
| 134 |
</html>
|
templates/qa.html
CHANGED
|
@@ -258,5 +258,38 @@
|
|
| 258 |
font-size: 0.85rem;
|
| 259 |
font-weight: 600;
|
| 260 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
</style>
|
| 262 |
{% endblock %}
|
|
|
|
| 258 |
font-size: 0.85rem;
|
| 259 |
font-weight: 600;
|
| 260 |
}
|
| 261 |
+
|
| 262 |
+
@media (max-width: 768px) {
|
| 263 |
+
.qa-container {
|
| 264 |
+
max-width: 100%;
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
.answer-box {
|
| 268 |
+
flex-direction: column;
|
| 269 |
+
gap: 1.5rem;
|
| 270 |
+
text-align: center;
|
| 271 |
+
border-left: none;
|
| 272 |
+
border-top: 5px solid var(--accent-blue);
|
| 273 |
+
padding: 1.5rem;
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
.answer-text p {
|
| 277 |
+
font-size: 1.2rem;
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
.tabs {
|
| 281 |
+
flex-direction: column;
|
| 282 |
+
gap: 0.5rem;
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
.tab-btn {
|
| 286 |
+
width: 100%;
|
| 287 |
+
text-align: center;
|
| 288 |
+
}
|
| 289 |
+
|
| 290 |
+
textarea {
|
| 291 |
+
min-height: 150px;
|
| 292 |
+
}
|
| 293 |
+
}
|
| 294 |
</style>
|
| 295 |
{% endblock %}
|
templates/sentiment.html
CHANGED
|
@@ -196,6 +196,36 @@
|
|
| 196 |
color: var(--text-primary);
|
| 197 |
min-height: 150px;
|
| 198 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
</style>
|
| 200 |
|
| 201 |
<script>
|
|
|
|
| 196 |
color: var(--text-primary);
|
| 197 |
min-height: 150px;
|
| 198 |
}
|
| 199 |
+
|
| 200 |
+
@media (max-width: 768px) {
|
| 201 |
+
.sentiment-container {
|
| 202 |
+
max-width: 100%;
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
.sentiment-meter {
|
| 206 |
+
flex-direction: column;
|
| 207 |
+
gap: 1rem;
|
| 208 |
+
text-align: center;
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
.sentiment-value {
|
| 212 |
+
font-size: 1.8rem;
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
.sentiment-score-box {
|
| 216 |
+
font-size: 2.5rem;
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
.tabs {
|
| 220 |
+
flex-direction: column;
|
| 221 |
+
gap: 0.5rem;
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
.tab-btn {
|
| 225 |
+
width: 100%;
|
| 226 |
+
text-align: center;
|
| 227 |
+
}
|
| 228 |
+
}
|
| 229 |
</style>
|
| 230 |
|
| 231 |
<script>
|