Spaces:
Running
Running
File size: 17,522 Bytes
ed178f8 c977f11 ed178f8 c3ef8ca 2d9b70d af47599 2d9b70d af47599 a032d1d af47599 c3ef8ca af47599 16a0507 35e5e52 ca810fd af47599 ca810fd 8893fd2 ca810fd af47599 ed178f8 c879790 6ab8b38 c879790 35e5e52 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 2ca817d 6ab8b38 c879790 6ab8b38 51555f5 c879790 51555f5 c879790 6ab8b38 c879790 51555f5 c879790 ccaf897 c879790 74d8c20 ccaf897 c879790 ccaf897 086051c ccaf897 5311d88 ccaf897 d1e07e6 91eb788 c879790 5311d88 d1e07e6 91eb788 5311d88 91eb788 c879790 ccaf897 c879790 ccaf897 c879790 ccaf897 c879790 ccaf897 6ab8b38 c879790 2e2b513 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 8651f9f c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 41eeebf 6ab8b38 c94b21c 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 afb4594 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 6ab8b38 c879790 afb4594 c879790 6ab8b38 afb4594 c879790 6ab8b38 c879790 29305fb 527bce5 6ab8b38 c879790 65d823e c879790 6ab8b38 c879790 6ab8b38 c879790 deb8abf ef857b9 deb8abf ef857b9 deb8abf d211d8b deb8abf ef857b9 deb8abf ef857b9 6ab8b38 d297a12 c879790 93e4419 c879790 93e4419 c879790 93e4419 c879790 8651f9f 93e4419 c60218e 93e4419 8651f9f 93e4419 6ab8b38 8651f9f c879790 93e4419 8651f9f 93e4419 6ab8b38 35e5e52 c879790 ed178f8 51555f5 e225fc9 c879790 8c689b4 0f92239 cc9ca36 0f92239 36bac29 6d20503 cc9ca36 0f92239 cc9ca36 8c689b4 cc9ca36 0f92239 5311d88 b618b4b 17c1289 7328622 b618b4b 7328622 b618b4b a20bccc b618b4b 17c1289 7328622 51555f5 c879790 0c53b7c 65d823e 0c53b7c c879790 11b392f 0c53b7c 592acd0 51555f5 8651f9f c3ef8ca 8651f9f a3808d4 41eeebf fa3d865 a3808d4 41eeebf ed178f8 | 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 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>{% block title %}QuantVAT - Crypto Volume Analysis Toolkit{% endblock %}</title>
<meta name="description" content="{% block description %}Quantitative Crypto Volume Analysis Toolkit for cross-market Spot/Futures analysis, tracking & automated data-driven PDF reporting.{% endblock %}">
<meta name="keywords" content="{% block keywords %}crypto, volume analysis, spot, cryptoquant, volume anomaly, futures, trading tool, VTMR, open interest, coinalyze, heisbuba{% endblock %}">
<meta name="author" content="Buba">
<meta name="robots" content="index, follow">
<meta property="og:title" content="{% block og_title %}QuantVAT - Professional Volume Analysis{% endblock %}">
<meta property="og:description" content="{% block og_description %}Track Spot & Futures volume like a pro. Detect whale movements and track VTMR data.{% endblock %}">
<meta property="og:url" content="https://quantvat.hf.space{{ request.path }}">
<meta property="og:type" content="website">
<meta property="og:site_name" content="QuantVAT">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@heisbuba">
<meta name="twitter:creator" content="@heisbuba">
<meta name="twitter:title" content="{% block twitter_title %}{{ self.og_title() }}{% endblock %}">
<meta name="twitter:description" content="{% block twitter_description %}{{ self.og_description() }}{% endblock %}">
<link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='logo.svg') }}">
<link rel="apple-touch-icon" href="{{ url_for('static', filename='icons/icon-512.png') }}">
<link rel="manifest" href="/manifest.json">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="theme-color" content="#151a1e">
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/sw.js')
.then(reg => console.log('QuantVAT: Service Worker Active'))
.catch(err => console.error('PWA Registration Error', err));
});
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "QuantVAT",
"operatingSystem": "Web",
"applicationCategory": "FinanceApplication",
"description": "Quantitative Crypto Volume Analysis Toolkit for cross-market Spot/Futures analysis.",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"author": {
"@type": "Person",
"name": "Buba",
"url": "https://x.com/heisbuba"
}
}
</script>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;500;600;800&display=swap" rel="stylesheet">
<style>
/* --- CSS VARIABLES --- */
:root {
/* Backgrounds */
--pwa-bg: #151a1e;
--bg-dark: #151a1e;
--bg-card: #1e252a;
--bg-glass: rgba(21, 26, 30, 0.90);
/* Text */
--text-main: #ffffff;
--text-dim: #848e9c;
/* Accents */
--accent-green: #10b981;
--accent-blue: #3b82f6;
--accent-orange: #f59e0b;
--accent-red: #ef4444;
--accent-purple: #9333ea;
/* UI Elements */
--border: #2b3139;
--input-bg: #111827;
--radius: 12px;
}
/* --- BASE & LAYOUT --- */
body {
margin: 0;
background-color: var(--bg-dark);
color: var(--text-main);
font-family: 'Inter', sans-serif;
display: flex;
flex-direction: column;
min-height: 100vh;
/* THE MODERN VIBE */
background-image: radial-gradient(circle at top right, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
background-attachment: fixed;
-webkit-font-smoothing: antialiased;
}
main {
flex: 1;
width: 100%;
padding-top: 80px;
}
a { text-decoration: none; transition: 0.2s; }
/* --- GLOBAL HEADER (Glassmorphism) --- */
.header {
position: fixed;
top: 0;
width: 100%;
height: 70px;
padding: 0 20px;
box-sizing: border-box;
background: var(--bg-glass);
backdrop-filter: blur(12px);
border-bottom: 1px solid var(--border);
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
}
.header h1 {
margin: 0;
font-size: 1.5rem;
font-weight: 900;
letter-spacing: -0.8px;
line-height: 1;
display: flex;
align-items: center;
}
.header h1 > a {
color: #fff;
text-decoration: none;
transition: opacity 0.2s ease;
}
.header h1 > a span {
color: var(--accent-green, #10b981);
}
.header h1 > a:hover {
opacity: 0.8;
}
/* Icons */
.icon-btn {
color: var(--text-dim);
font-size: 1.2rem;
padding: 0 10px;
transition: color 0.2s;
}
.icon-btn:hover { color: var(--text-main); }
.logout-btn {
color: var(--accent-red);
font-size: 1.2rem;
padding: 0 10px;
font-weight: bold;
}
.logout-btn:hover { opacity: 0.8; }
/* --- CONTAINER & CARDS --- */
.container {
width: 100%;
max-width: 600px;
margin: 0 auto;
padding: 0 20px 20px 20px;
box-sizing: border-box;
}
.container.wide { max-width: 1000px; }
.card {
background: var(--bg-card);
padding: 30px;
border-radius: var(--radius);
border: 1px solid var(--border);
margin-bottom: 20px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Subtle shadow */
}
/* --- TYPOGRAPHY --- */
h1 { color: var(--accent-green); text-align: center; font-size: 1.5rem; margin-bottom: 20px; }
h2 { color: var(--accent-blue); font-size: 1.2rem; margin-top: 25px; }
/* --- FORM ELEMENTS --- */
input[type="text"],
input[type="email"],
input[type="password"] {
width: 100%;
padding: 14px;
background: var(--input-bg);
border: 1px solid var(--border);
color: #fff;
border-radius: 8px;
font-family: 'Inter', sans-serif;
margin-top: 8px;
box-sizing: border-box;
font-size: 0.95rem;
}
input:focus { outline: none; border-color: var(--accent-green); }
/* --- PASSWORD TOGGLE --- */
.password-wrapper {
position: relative;
width: 100%;
display: flex;
align-items: center;
}
.password-wrapper input {
width: 100%;
padding-right: 45px;
}
.toggle-btn {
position: absolute;
right: 15px;
background: none;
border: none;
cursor: pointer;
color: var(--text-dim);
padding: 0;
display: flex;
align-items: center;
transition: color 0.2s;
}
.toggle-btn:hover {
color: var(--accent-green);
}
.toggle-btn:focus {
outline: none;
}
/* --- BUTTONS --- */
.btn, .help-btn {
display: block;
width: 100%;
padding: 15px;
border: none;
border-radius: 8px;
font-weight: 700;
cursor: pointer;
text-align: center;
margin-top: 15px;
font-size: 0.95rem;
transition: all 0.2s ease;
box-sizing: border-box;
}
.btn:hover, .help-btn:hover { transform: translateY(-2px); opacity: 0.95; }
/* Variants */
.btn-green { background: var(--accent-green); color: #000; }
.btn-green:hover { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn-blue {
background: transparent;
border: 1px solid var(--accent-blue);
color: var(--accent-blue);
width: 100%;
}
.btn-blue:hover {
background: rgba(59, 130, 246, 0.1);
}
.btn-links {
background: transparent;
border: 1px solid var(--accent-blue);
color: var(--accent-blue);
width: auto;
display: inline-block;
padding: 10px 25px;
}
.btn-links:hover {
border-color: var(--text-main);
color: var(--text-main);
background: rgba(59,130,246,0.1);
}
.btn-red {
background: rgba(239, 68, 68, 0.1);
border: 1px solid var(--accent-red);
color: var(--accent-red);
width: 100%;
}
.btn-red:hover { background: rgba(239, 68, 68, 0.2); }
/* Navigation Buttons (Back Buttons) */
.help-nav-btn {
background: transparent;
border: 1px solid var(--border);
color: var(--text-dim);
width: auto;
display: inline-block;
padding: 10px 25px;
}
.help-nav-btn:hover {
border-color: var(--text-main);
color: var(--text-main);
background: rgba(255,255,255,0.05);
}
/* --- UTILITIES --- */
.link { color: var(--accent-blue); font-size: 0.9rem; float: right; margin-top: 5px;}
.get-key-link { color: var(--accent-green); font-size: 0.9rem; float: right; margin-top: 5px;}
.link:hover, .get-key-link:hover { text-decoration: underline; }
.grid-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
/* Messages */
.error-message {
color: #fee2e2;
padding: 15px;
background: rgba(239, 68, 68, 0.15);
border: 1px solid var(--accent-red);
border-radius: 8px;
margin: 15px 0;
text-align: center;
}
.success-message {
color: #d1fae5;
padding: 15px;
background: rgba(16, 185, 129, 0.15);
border: 1px solid var(--accent-green);
border-radius: 8px;
margin: 15px 0;
text-align: center;
}
/* --- GLOBAL NAV BUTTON AREA --- */
.back-nav-container {
margin: 0px;
padding: 30px 0 30px 0;
text-align: center;
width: 100%;
box-sizing: border-box;
}
.back-nav-container:empty {
display: none;
padding: 0;
margin: 0;
border: none;
}
.back-nav-btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: transparent !important;
border: 1px solid var(--text-dim) !important;
color: var(--text-dim) !important;
padding: 10px 20px;
border-radius: 8px;
text-decoration: none;
font-weight: 800;
font-size: 0.9rem;
transition: all 0.2s ease;
margin-bottom: 5px;
}
.back-nav-btn:hover {
background: rgba(255, 255, 255, 0.05) !important;
border-color: #eaecef !important;
color: #eaecef !important;
transform: translateY(-2px);
}
/* PWA Progress Bar */
#pwa-progress {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 3px;
background: var(--accent-green);
z-index: 9999;
transition: width 0.3s ease;
display: none;
}
.main-content {
transition: opacity 0.15s ease-in-out;
}
.content-faded {
opacity: 0.3;
}
/* --- GLOBAL FOOTER --- */
.footer {
background: transparent;
border-top: 1px solid var(--border);
padding: 40px 5%;
margin-top: auto;
text-align: center;
font-size: 0.9rem;
color: var(--text-dim);
font-weight: 500;
}
.footer p {
margin: 0;
}
.footer a {
color: var(--accent-green);
font-weight: 600;
text-decoration: none;
transition: opacity 0.2s;
}
.footer a:hover {
opacity: 0.8;
}
@media (max-width: 600px) {
.footer {
padding: 30px 20px;
}
}
@media (display-mode: standalone) {
body { background-color: var(--pwa-bg); }
}
</style>
{% block extra_css %}{% endblock %}
</head>
<body>
<div class="header">
<h1>
<a href="{{ url_for('main.home') if session.get('user_id') else url_for('main.index') }}"
style="display: flex; align-items: center; gap: 0; text-decoration: none;">
<svg width="28" height="28" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg"
style="margin-bottom: 2px; margin-right: -2px; flex-shrink: 0; forced-color-adjust: none;">
<rect width="512" height="512" rx="120" fill="#151a1e"/>
<path d="M380 380L430 430" stroke="#ffffff" stroke-width="32" stroke-linecap="round"/>
<circle cx="256" cy="256" r="160" stroke="#ffffff" stroke-width="32"/>
<rect x="190" y="270" width="30" height="60" rx="4" fill="var(--accent-green)"/>
<rect x="241" y="230" width="30" height="100" rx="4" fill="var(--accent-green)"/>
<rect x="292" y="190" width="30" height="140" rx="4" fill="var(--accent-green)"/>
</svg>
<span style="font-weight: 800; font-size: 1.4rem; letter-spacing: -1px; color: #fff; line-height: 1;">
uant<span style="color: var(--accent-green);">VAT</span>
</span>
</a>
</h1>
<div style="display: flex; align-items: center; gap: 5px;">
<a href="{{ url_for('main.help_page') }}" class="icon-btn" title="Help">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
</a>
{% if session.get('user_id') %}
{% if request.endpoint != 'main.setup' %}
<a href="{{ url_for('main.settings') }}" class="icon-btn" title="Settings">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
</a>
{% endif %}
<a href="{{ url_for('auth.logout') }}" class="logout-btn" title="Logout" style="display: flex; align-items: center;">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>
</a>
{% endif %}
</div>
</div>
<main>
{% block content %}{% endblock %}
<div class="back-nav-container">
{%- if session.get('user_id') and request.endpoint not in ['main.home', 'main.setup', 'auth.login', 'auth.register', 'auth.reset_password', 'main.help_page'] -%}
<a href="{{ url_for('main.home') }}" class="btn btn-links back-nav-btn">
β BACK TO DASHBOARD
</a>
{%- if request.endpoint == 'main.admin_dashboard' and server_time -%}
<p style="color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.5px; margin-top: 15px; margin-bottom: 0; font-family: 'JetBrains Mono', monospace;">
SERVER TIMESTAMP: {{ server_time }}
</p>
{%- endif -%}
{%- elif request.endpoint == 'main.help_page' -%}
{%- if session.get('user_id') -%}
{%- if is_setup_complete -%}
<a href="{{ url_for('main.home') }}" class="help-btn help-nav-btn back-nav-btn">β BACK TO DASHBOARD</a>
{%- else -%}
<a href="{{ url_for('main.setup') }}" class="help-btn help-nav-btn back-nav-btn">β BACK TO SETUP WIZARD</a>
{%- endif -%}
{%- else -%}
{%- if request.referrer and 'register' in request.referrer -%}
<a href="{{ url_for('auth.register') }}" class="help-btn help-nav-btn back-nav-btn">β BACK TO REGISTER</a>
{%- elif request.referrer and 'reset-password' in request.referrer -%}
<a href="{{ url_for('auth.reset_password') }}" class="help-btn help-nav-btn back-nav-btn">β BACK TO RESET PASSWORD</a>
{%- else -%}
<a href="{{ url_for('auth.login') }}" class="help-btn help-nav-btn back-nav-btn">β BACK TO LOGIN</a>
{%- endif -%}
{%- endif -%}
{%- endif -%}
</div>
</main>
<footer class="footer">
<p>
© <span id="year"></span>
<a href="{{ url_for('main.index') }}" title="Quantitative Crypto Volume Analysis Toolkit">QuantVAT</a>.
Created by <a href="https://x.com/heisbuba" title="X @heisbuba" target="_blank">Buba</a> with Data curiosity. MIT Licensed.
</p>
</footer>
<script>
// Update year automically
document.getElementById('year').textContent = new Date().getFullYear();
// Password toggle function
function togglePassword(inputId, btn) {
const input = document.getElementById(inputId);
const iconEye = btn.querySelector('.icon-eye');
const iconEyeOff = btn.querySelector('.icon-eye-off');
if (input.type === "password") {
input.type = "text";
iconEye.style.display = "none";
iconEyeOff.style.display = "block";
} else {
input.type = "password";
iconEye.style.display = "block";
iconEyeOff.style.display = "none";
}
}
</script>
</body>
</html> |