Spaces:
Sleeping
Sleeping
File size: 19,536 Bytes
9f68111 b649f0b 9f68111 b649f0b d1d94fb b649f0b d1d94fb b649f0b d1d94fb b649f0b d1d94fb b649f0b 9f68111 b649f0b d1d94fb b649f0b 9f68111 b649f0b 9f68111 b649f0b 9f68111 b649f0b c96728f b649f0b c96728f b649f0b c96728f b649f0b 9f68111 b649f0b d1d94fb b649f0b 9f68111 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Constellation Predictor{% endblock %}</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>tailwind.config = { theme: { extend: { fontFamily: { 'orbitron': ['Orbitron', 'monospace'] } } } }</script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
<style>
:root {
--bg: #060d1f;
--surface: rgba(255,255,255,0.03);
--border: rgba(255,255,255,0.07);
--accent: #6366f1;
--accent-dim: rgba(99,102,241,0.15);
--text: #dde4f0;
--muted: rgba(221,228,240,0.45);
}
*, *::before, *::after { box-sizing: border-box; }
body {
margin: 0;
font-family: 'Inter', system-ui, sans-serif;
/* vertical depth gradient β lighter at horizon, darker at zenith */
background: linear-gradient(180deg, #0b1630 0%, #060d1f 45%, #040917 100%) fixed;
color: var(--text);
min-height: 100vh;
}
/* ββ starfield layer 1: small stars, slow drift + twinkle ββ */
body::before {
content: '';
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background-image:
radial-gradient(1.5px 1.5px at 40px 60px, rgba(255,255,255,.50), transparent),
radial-gradient(1px 1px at 150px 155px, rgba(255,255,255,.35), transparent),
radial-gradient(1.5px 1.5px at 280px 40px, rgba(200,210,255,.40), transparent),
radial-gradient(1px 1px at 420px 200px, rgba(255,255,255,.45), transparent),
radial-gradient(1px 1px at 520px 90px, rgba(255,255,255,.30), transparent),
radial-gradient(1.5px 1.5px at 90px 300px, rgba(255,255,255,.40), transparent),
radial-gradient(1px 1px at 230px 410px, rgba(200,210,255,.35), transparent),
radial-gradient(1.5px 1.5px at 360px 520px, rgba(255,255,255,.35), transparent),
radial-gradient(1px 1px at 500px 380px, rgba(255,255,255,.40), transparent),
radial-gradient(1px 1px at 50px 480px, rgba(255,255,255,.30), transparent);
background-size: 600px 600px;
animation: starDrift1 240s linear infinite, starTwinkle1 9s ease-in-out infinite;
}
/* ββ starfield layer 2: larger stars, slower drift, offset twinkle ββ */
body::after {
content: '';
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background-image:
radial-gradient(2px 2px at 120px 200px, rgba(255,255,255,.45), transparent),
radial-gradient(1.5px 1.5px at 480px 80px, rgba(200,210,255,.40), transparent),
radial-gradient(2px 2px at 700px 450px, rgba(255,255,255,.35), transparent),
radial-gradient(1.5px 1.5px at 300px 600px, rgba(255,255,255,.40), transparent),
radial-gradient(2px 2px at 820px 720px, rgba(200,210,255,.30), transparent),
radial-gradient(1.5px 1.5px at 600px 280px, rgba(255,255,255,.35), transparent);
background-size: 900px 900px;
animation: starDrift2 380s linear infinite, starTwinkle2 14s ease-in-out infinite;
}
@keyframes starDrift1 { from { background-position: 0 0; } to { background-position: 0 600px; } }
@keyframes starDrift2 { from { background-position: 0 0; } to { background-position: 0 900px; } }
@keyframes starTwinkle1 { 0%, 100% { opacity: .95; } 50% { opacity: .55; } }
@keyframes starTwinkle2 { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
/* ββ nebula glow washes ββ */
.bg-nebula {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
background:
radial-gradient(640px 420px at 12% -5%, rgba(99,102,241,.14), transparent 70%),
radial-gradient(720px 520px at 90% 15%, rgba(139,92,246,.09), transparent 70%),
radial-gradient(900px 640px at 50% 110%, rgba(45,212,191,.055), transparent 70%);
}
@media (prefers-reduced-motion: reduce) {
body::before, body::after { animation: none; }
}
/* ββ layout wrapper ββ */
.page-wrap { position: relative; z-index: 1; }
/* ββ navbar ββ */
.site-header {
position: sticky;
top: 0;
z-index: 50;
border-bottom: 1px solid var(--border);
background: rgba(6,13,31,.88);
backdrop-filter: blur(20px);
}
.nav-inner {
max-width: 1280px;
margin: 0 auto;
padding: 0 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
height: 60px;
}
.nav-logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}
.nav-logo-text {
font-family: 'Orbitron', monospace;
font-size: .75rem;
font-weight: 900;
letter-spacing: .12em;
color: #fff;
}
.nav-links {
display: flex;
align-items: center;
gap: 2rem;
list-style: none;
margin: 0; padding: 0;
}
.nav-links a {
font-size: .8125rem;
font-weight: 500;
color: var(--muted);
text-decoration: none;
letter-spacing: .01em;
transition: color .18s;
position: relative;
padding-bottom: 2px;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: -1px; left: 0;
width: 0; height: 1px;
background: var(--accent);
transition: width .18s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .625rem; }
.btn-ghost {
font-size: .8125rem;
font-weight: 500;
color: var(--muted);
padding: .45rem 1rem;
border-radius: 6px;
border: 1px solid var(--border);
background: transparent;
text-decoration: none;
transition: all .18s;
}
.btn-ghost:hover {
color: #fff;
border-color: rgba(255,255,255,.18);
background: rgba(255,255,255,.05);
}
.btn-accent {
font-size: .8125rem;
font-weight: 600;
color: #fff;
padding: .45rem 1.125rem;
border-radius: 6px;
background: var(--accent);
text-decoration: none;
transition: all .18s;
white-space: nowrap;
}
.btn-accent:hover {
background: #818cf8;
box-shadow: 0 0 20px rgba(99,102,241,.4);
transform: translateY(-1px);
}
.nav-mobile-btn {
display: none;
background: none;
border: none;
cursor: pointer;
color: var(--muted);
padding: .25rem;
}
.nav-mobile-btn:hover { color: #fff; }
.nav-mobile-menu {
display: none;
flex-direction: column;
gap: .25rem;
padding: .75rem 1.5rem 1rem;
border-top: 1px solid var(--border);
}
.nav-mobile-menu a {
font-size: .875rem;
color: var(--muted);
text-decoration: none;
padding: .625rem .75rem;
border-radius: 6px;
transition: all .15s;
}
.nav-mobile-menu a:hover {
color: #fff;
background: rgba(255,255,255,.05);
}
.nav-mobile-menu .mobile-actions {
display: flex;
gap: .5rem;
margin-top: .5rem;
}
.nav-mobile-menu .mobile-actions a {
flex: 1;
text-align: center;
padding: .6rem;
}
@media (max-width: 768px) {
.nav-links, .nav-actions { display: none; }
.nav-mobile-btn { display: block; }
.nav-mobile-menu.open { display: flex; }
}
/* ββ footer ββ */
.site-footer {
margin-top: 6rem;
border-top: 1px solid var(--border);
}
.footer-inner {
max-width: 1280px;
margin: 0 auto;
padding: 3rem 1.5rem 2rem;
}
.footer-grid {
display: grid;
grid-template-columns: 1.4fr 1fr 1fr;
gap: 3rem;
margin-bottom: 2.5rem;
}
@media (max-width: 640px) {
.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-label {
font-size: .6875rem;
font-weight: 600;
letter-spacing: .1em;
text-transform: uppercase;
color: rgba(255,255,255,.25);
margin-bottom: .75rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: .5rem; }
.footer-links a, .footer-links span {
font-size: .8125rem;
color: var(--muted);
text-decoration: none;
transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
border-top: 1px solid var(--border);
padding-top: 1.25rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: .5rem;
}
.footer-bottom span { font-size: .75rem; color: rgba(255,255,255,.2); }
/* ββ utility ββ */
.section { max-width: 1280px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-sm { padding: 3.5rem 1.5rem; }
.section-label {
display: inline-flex;
align-items: center;
gap: .375rem;
font-size: .6875rem;
font-weight: 600;
letter-spacing: .1em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: .875rem;
}
.section-label::before {
content: '';
display: block;
width: 16px; height: 1px;
background: var(--accent);
}
.glass-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
transition: border-color .2s, transform .2s, box-shadow .2s;
}
.glass-card:hover {
border-color: rgba(255,255,255,.14);
transform: translateY(-3px);
box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.tag {
display: inline-block;
font-size: .6875rem;
font-weight: 600;
letter-spacing: .06em;
padding: .25rem .625rem;
border-radius: 4px;
background: var(--accent-dim);
color: #a5b4fc;
}
/* ββ logo constellation line-draw on load ββ */
.nav-logo svg line {
stroke-dasharray: 26;
stroke-dashoffset: 26;
animation: drawline .9s ease forwards;
}
.nav-logo svg line:nth-of-type(1) { animation-delay: .10s; }
.nav-logo svg line:nth-of-type(2) { animation-delay: .25s; }
.nav-logo svg line:nth-of-type(3) { animation-delay: .40s; }
.nav-logo svg line:nth-of-type(4) { animation-delay: .55s; }
.nav-logo svg line:nth-of-type(5) { animation-delay: .70s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
/* ββ scroll reveal ββ */
[data-reveal] {
opacity: 0;
transform: translateY(18px);
transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
[data-reveal] { opacity: 1; transform: none; transition: none; }
.nav-logo svg line { animation: none; stroke-dashoffset: 0; }
}
</style>
{% block extra_css %}{% endblock %}
</head>
<body>
<div class="bg-nebula"></div>
<div class="page-wrap">
<!-- ββββ NAVBAR ββββ -->
<header class="site-header">
<div class="nav-inner">
<!-- Logo -->
<a href="{{ PREDICTOR_BASE_URL }}" class="nav-logo">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="2.5" fill="#6366f1"/>
<circle cx="4" cy="5" r="1.5" fill="rgba(99,102,241,.7)"/>
<circle cx="21" cy="3" r="1" fill="rgba(255,255,255,.5)"/>
<circle cx="19" cy="20" r="1.5" fill="rgba(99,102,241,.6)"/>
<circle cx="5" cy="21" r="1" fill="rgba(255,255,255,.4)"/>
<circle cx="22" cy="13" r="1" fill="rgba(255,255,255,.35)"/>
<line x1="4" y1="5" x2="12" y2="12" stroke="rgba(99,102,241,.35)" stroke-width=".8"/>
<line x1="12" y1="12" x2="21" y2="3" stroke="rgba(99,102,241,.25)" stroke-width=".8"/>
<line x1="12" y1="12" x2="19" y2="20" stroke="rgba(99,102,241,.35)" stroke-width=".8"/>
<line x1="12" y1="12" x2="5" y2="21" stroke="rgba(99,102,241,.25)" stroke-width=".8"/>
<line x1="12" y1="12" x2="22" y2="13" stroke="rgba(99,102,241,.2)" stroke-width=".8"/>
</svg>
<span class="nav-logo-text">CONSTELLAR</span>
</a>
<!-- Desktop links -->
<ul class="nav-links">
<li><a href="{{ PREDICTOR_BASE_URL }}">Home</a></li>
<li><a href="{{ PREDICTOR_BASE_URL }}predict/">Predict</a></li>
<li><a href="{{ PREDICTOR_BASE_URL }}database/">Database</a></li>
<li><a href="{{ CHATBOT_BASE_URL }}">Chatbot</a></li>
<li><a href="{{ LOCATOR_BASE_URL }}">Locator</a></li>
</ul>
<!-- Desktop actions -->
<div class="nav-actions">
<a href="{{ PREDICTOR_BASE_URL }}upload/" class="btn-ghost">Upload Image</a>
<a href="{{ PREDICTOR_BASE_URL }}detect/" class="btn-accent">Live Detection β</a>
</div>
<!-- Mobile toggle -->
<button class="nav-mobile-btn" id="mobileMenuBtn" aria-label="Menu">
<svg width="20" height="20" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"/>
</svg>
</button>
</div>
<!-- Mobile menu -->
<nav class="nav-mobile-menu" id="mobileMenu">
<a href="{{ PREDICTOR_BASE_URL }}">Home</a>
<a href="{{ PREDICTOR_BASE_URL }}predict/">Predict</a>
<a href="{{ PREDICTOR_BASE_URL }}database/">Database</a>
<a href="{{ CHATBOT_BASE_URL }}">Chatbot</a>
<a href="{{ LOCATOR_BASE_URL }}">Locator</a>
<div class="mobile-actions">
<a href="{{ PREDICTOR_BASE_URL }}upload/" class="btn-ghost">Upload</a>
<a href="{{ PREDICTOR_BASE_URL }}detect/" class="btn-accent">Detect</a>
</div>
</nav>
</header>
<!-- ββββ MAIN ββββ -->
<main>{% block content %}{% endblock %}</main>
<!-- ββββ FOOTER ββββ -->
<footer class="site-footer">
<div class="footer-inner">
<div class="footer-grid">
<!-- Brand -->
<div>
<a href="{{ PREDICTOR_BASE_URL }}" class="nav-logo" style="margin-bottom:.75rem; display:inline-flex;">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none">
<circle cx="12" cy="12" r="2.5" fill="#6366f1"/>
<circle cx="4" cy="5" r="1.5" fill="rgba(99,102,241,.7)"/>
<circle cx="21" cy="3" r="1" fill="rgba(255,255,255,.5)"/>
<circle cx="19" cy="20" r="1.5" fill="rgba(99,102,241,.6)"/>
<line x1="4" y1="5" x2="12" y2="12" stroke="rgba(99,102,241,.35)" stroke-width=".8"/>
<line x1="12" y1="12" x2="21" y2="3" stroke="rgba(99,102,241,.25)" stroke-width=".8"/>
<line x1="12" y1="12" x2="19" y2="20" stroke="rgba(99,102,241,.35)" stroke-width=".8"/>
</svg>
<span class="nav-logo-text" style="margin-left:8px;">CONSTELLAR</span>
</a>
<p style="font-size:.8125rem; color:var(--muted); line-height:1.65; max-width:240px; margin-top:.5rem;">
AI-powered constellation recognition. Identify stars, explore mythology, navigate the night sky.
</p>
</div>
<!-- Tools -->
<div>
<p class="footer-label">Tools</p>
<ul class="footer-links">
<li><a href="{{ PREDICTOR_BASE_URL }}upload/">Image Upload</a></li>
<li><a href="{{ PREDICTOR_BASE_URL }}detect/">Live Detection</a></li>
<li><a href="{{ PREDICTOR_BASE_URL }}database/">88 Constellations</a></li>
<li><a href="{{ CHATBOT_BASE_URL }}">AI Chatbot</a></li>
<li><a href="{{ LOCATOR_BASE_URL }}">Sky Locator</a></li>
</ul>
</div>
<!-- Capabilities -->
<div>
<p class="footer-label">Capabilities</p>
<ul class="footer-links">
<li><span>Real-Time Object Detection</span></li>
<li><span>Natural Language Assistant</span></li>
<li><span>Voice Recognition</span></li>
<li><span>Text-to-Speech</span></li>
<li><span>GPS Sky Mapping</span></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<span>Β© 2026 Constellar Β· Constellation Predictor</span>
<span>IAU 88 Official Constellations</span>
</div>
</div>
</footer>
</div><!-- .page-wrap -->
<script>
const btn = document.getElementById('mobileMenuBtn');
const menu = document.getElementById('mobileMenu');
btn.addEventListener('click', () => menu.classList.toggle('open'));
const revealObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('revealed');
revealObserver.unobserve(entry.target);
}
});
}, { threshold: 0.12 });
document.querySelectorAll('[data-reveal]').forEach(el => revealObserver.observe(el));
</script>
{% block extra_js %}{% endblock %}
</body>
</html>
|