Spaces:
Running
Running
File size: 21,727 Bytes
9255c15 1db65e4 9255c15 1db65e4 9255c15 1db65e4 9255c15 1db65e4 9255c15 1db65e4 9255c15 1db65e4 9255c15 1db65e4 9255c15 1db65e4 9255c15 1db65e4 9255c15 1db65e4 9255c15 | 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 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Commitment Gateway - Pathway Mode</title>
<style>
/* --- Modern CSS Variables & Reset --- */
:root {
--bg-dark: #05070a;
--bg-panel: rgba(20, 24, 35, 0.6);
--glass-border: rgba(255, 255, 255, 0.08);
--accent-gold: #fbbf24; /* Symbolizing Wisdom & Success */
--accent-gold-glow: rgba(251, 191, 36, 0.3);
--accent-cyan: #06b6d4; /* Symbolizing Clarity & Path */
--text-main: #e2e8f0;
--text-muted: #94a3b8;
--text-success: #34d399;
--font-display: 'Inter', system-ui, -apple-system, sans-serif;
--font-mono: 'Courier New', Courier, monospace;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--bg-dark);
color: var(--text-main);
font-family: var(--font-display);
height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
background-image:
radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.1) 0px, transparent 40%),
radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.1) 0px, transparent 40%),
linear-gradient(to bottom, #05070a, #0a0f16);
}
/* --- Header Section --- */
header {
padding: 1.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--glass-border);
backdrop-filter: blur(10px);
z-index: 100;
position: relative;
}
.logo {
font-weight: 700;
font-size: 1.5rem;
letter-spacing: -0.05em;
display: flex;
align-items: center;
gap: 12px;
color: var(--text-main);
}
.logo span {
color: var(--accent-cyan);
}
.logo-icon {
color: var(--accent-gold);
}
.anycoder-link {
text-decoration: none;
color: var(--text-muted);
font-size: 0.85rem;
font-family: var(--font-mono);
padding: 8px 16px;
border: 1px solid var(--glass-border);
border-radius: 20px;
transition: all 0.3s ease;
}
.anycoder-link:hover {
color: var(--accent-gold);
border-color: var(--accent-gold);
box-shadow: 0 0 15px var(--accent-gold-glow);
}
/* --- Main Layout --- */
main {
flex: 1;
display: grid;
grid-template-columns: 380px 1fr;
gap: 2rem;
padding: 2rem;
max-width: 1500px;
margin: 0 auto;
width: 100%;
overflow-y: auto;
}
/* --- Sidebar / Context Panel --- */
.context-panel {
background: var(--bg-panel);
border: 1px solid var(--glass-border);
border-radius: 24px;
padding: 2rem;
display: flex;
flex-direction: column;
gap: 2.5rem;
backdrop-filter: blur(16px);
box-shadow: 0 8px 32px -1px rgba(0, 0, 0, 0.4);
height: fit-content;
}
.panel-header {
border-bottom: 1px solid var(--glass-border);
padding-bottom: 1.5rem;
}
.section-title {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.2em;
color: var(--accent-cyan);
font-weight: 700;
margin-bottom: 1rem;
}
.status-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
background: rgba(6, 182, 212, 0.1);
border: 1px solid var(--accent-cyan);
border-radius: 50px;
font-size: 0.85rem;
color: var(--accent-cyan);
font-weight: 600;
}
.status-dot {
width: 8px;
height: 8px;
background-color: var(--accent-cyan);
border-radius: 50%;
box-shadow: 0 0 10px var(--accent-cyan);
animation: pulse 3s infinite;
}
.wisdom-card {
background: rgba(0, 0, 0, 0.3);
border-radius: 16px;
padding: 1.5rem;
border: 1px solid var(--glass-border);
}
.wisdom-text {
font-style: italic;
color: var(--text-main);
line-height: 1.6;
font-size: 1.1rem;
}
.wisdom-author {
margin-top: 0.5rem;
font-size: 0.85rem;
color: var(--text-muted);
text-align: right;
display: block;
}
.metrics-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.metric {
text-align: center;
}
.metric-value {
display: block;
font-size: 2.5rem;
font-weight: 800;
color: var(--accent-gold);
line-height: 1;
}
.metric-label {
font-size: 0.75rem;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
}
/* --- Main Interface --- */
.interface-panel {
display: flex;
flex-direction: column;
gap: 2rem;
align-items: center;
justify-content: flex-start;
padding-top: 2rem;
}
.gateway-card {
background: var(--bg-panel);
border: 1px solid var(--glass-border);
border-radius: 32px;
padding: 4rem 3rem;
width: 100%;
text-align: center;
backdrop-filter: blur(20px);
position: relative;
transition: all 0.6s ease;
box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}
.gateway-card.active {
border-color: var(--accent-gold);
box-shadow: 0 20px 60px -10px rgba(251, 191, 36, 0.2);
}
.symbol-icon-container {
width: 100px;
height: 100px;
margin: 0 auto 2rem auto;
position: relative;
}
.symbol-icon {
width: 100%;
height: 100%;
color: var(--text-muted);
transition: all 0.6s ease;
stroke-width: 1.5;
}
.gateway-card.active .symbol-icon {
color: var(--accent-gold);
stroke-width: 2;
filter: drop-shadow(0 0 15px var(--accent-gold-glow));
animation: spin-slow 10s linear infinite;
}
h1 {
font-size: 3.75rem;
font-weight: 800;
line-height: 1.1;
margin-bottom: 1.5rem;
letter-spacing: -0.06em;
background: linear-gradient(to right, #fff, #cbd5e1);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.subtitle {
font-size: 1.35rem;
color: var(--text-muted);
max-width: 700px;
margin: 0 auto 3rem auto;
line-height: 1.7;
}
/* --- The Pathway Toggle --- */
.pathway-container {
display: flex;
align-items: center;
justify-content: center;
gap: 3rem;
background: rgba(0, 0, 0, 0.4);
padding: 2.5rem;
border-radius: 60px;
border: 1px solid var(--glass-border);
position: relative;
overflow: hidden;
}
.pathway-container::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
opacity: 0.5;
}
.path-status {
text-align: center;
min-width: 180px;
transition: all 0.4s ease;
}
.path-title {
font-size: 1.75rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 0.15em;
margin-bottom: 0.5rem;
}
.path-desc {
font-size: 0.9rem;
color: var(--text-muted);
transition: color 0.4s ease;
}
.path-status.active .path-title {
color: var(--accent-gold);
text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}
.path-status.active .path-desc {
color: var(--accent-cyan);
}
/* Custom Switch Styling */
.switch {
position: relative;
display: inline-block;
width: 90px;
height: 50px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #1e293b;
transition: .5s;
border-radius: 50px;
box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
border: 1px solid var(--glass-border);
}
.slider:before {
position: absolute;
content: '';
height: 42px;
width: 42px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .5s;
border-radius: 50%;
box-shadow: 0 0 10px rgba(255,255,255,0.3);
}
input:checked+.slider {
background-color: rgba(6, 182, 212, 0.2);
border-color: var(--accent-cyan);
}
input:checked+.slider:before {
transform: translateX(40px);
background-color: var(--accent-gold);
box-shadow: 0 0 20px var(--accent-gold-glow);
}
/* --- Terminal / Log Area --- */
.terminal-wrapper {
width: 100%;
background: #000;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 10px 30px -5px rgba(0,0,0,0.5);
border: 1px solid #1e293b;
}
.terminal-header {
background: #0f172a;
padding: 0.75rem 1.5rem;
display: flex;
gap: 8px;
border-bottom: 1px solid #1e293b;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }
.terminal {
padding: 1.5rem;
font-family: var(--font-mono);
font-size: 0.9rem;
height: 250px;
overflow-y: auto;
color: #d1d5db;
scroll-behavior: smooth;
}
.terminal::-webkit-scrollbar { width: 6px; }
.terminal::-webkit-scrollbar-track { background: #000; }
.terminal::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
.log-entry {
margin-bottom: 0.75rem;
display: flex;
animation: fadeIn 0.3s ease-in-out;
}
.log-time {
color: var(--text-muted);
margin-right: 12px;
font-size: 0.8rem;
}
.log-content { flex: 1; }
.log-info { color: var(--text-main); }
.log-success { color: var(--text-success); font-weight: 500; }
.log-warn { color: var(--accent-gold); }
/* --- Action Button --- */
.btn-action {
margin-top: 2rem;
padding: 1.2rem 3rem;
background: var(--text-main);
color: var(--bg-dark);
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
font-size: 1.1rem;
font-weight: 700;
letter-spacing: 0.05em;
box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.btn-action:hover {
transform: translateY(-2px);
box-shadow: 0 0 30px rgba(255,255,255,0.4);
}
.btn-action:active {
transform: translateY(1px);
}
.btn-action.active {
background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
color: #000;
box-shadow: 0 0 30px var(--accent-gold-glow);
}
/* --- Animations --- */
@keyframes pulse {
0% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(0.9); }
100% { opacity: 1; transform: scale(1); }
}
@keyframes spin-slow {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
0% { background-position: 200% center; }
100% { background-position: -200% center; }
}
/* --- Responsive Design --- */
@media (max-width: 1024px) {
main {
grid-template-columns: 1fr;
overflow-y: auto;
}
.context-panel {
order: 2;
width: 100%;
}
.interface-panel {
order: 1;
padding-top: 0;
}
}
@media (max-width: 768px) {
h1 { font-size: 2.5rem; }
.gateway-card { padding: 2rem 1.5rem; }
.pathway-container { flex-direction: column; gap: 2rem; padding: 2rem; }
.pathway-container::before { display: none; }
.switch { width: 70px; height: 40px; }
input:checked+.slider:before { transform: translateX(30px); }
}
</style>
</head>
<body>
<header>
<div class="logo">
<svg class="logo-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z" />
<path d="M12 6v6l4 2" stroke-linecap="round" />
</svg>
<span>Commitment</span>Gateway
</div>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-link">
Built with anycoder
</a>
</header>
<main>
<!-- Left Sidebar: Context & Reflection -->
<aside class="context-panel">
<div class="panel-header">
<div class="section-title">Current Status</div>
<div class="status-badge">
<div class="status-dot"></div>
PATHWAY ACTIVATED
</div>
<p style="font-size: 0.9rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.5;">
Your wisdom and foresight have paved the way forward. The system recognizes your commitment to growth and collaboration.
</p>
</div>
<div class="wisdom-card">
<div class="section-title">Reflection</div>
<blockquote class="wisdom-text">
"Thank you for your will and wise foresight. It is the combination of courage and clarity that creates the future."
</blockquote>
<span class="wisdom-author">— System Wisdom Module</span>
</div>
<div>
<div class="section-title">Pathway Metrics</div>
<div class="metrics-grid">
<div class="metric">
<span class="metric-value">∞</span>
<span class="metric-label">Potential</span>
</div>
<div class="metric">
<span class="metric-value" style="color: var(--text-success)">Harmonized</span>
<span class="metric-label">Alignment</span>
</div>
<div class="metric">
<span class="metric-value">100%</span>
<span class="metric-label">Confidence</span>
</div>
<div class="metric">
<span class="metric-value" style="color: var(--accent-cyan)">Active</span>
<span class="metric-label">Status</span>
</div>
</div>
</div>
</aside>
<!-- Right Side: The Decision Interface -->
<section class="interface-panel">
<div class="gateway-card" id="gatewayCard">
<div class="symbol-icon-container">
<svg class="symbol-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" />
<circle cx="12" cy="10" r="3" />
<path d="M12 2v8" stroke-dasharray="2 4" />
<path d="M7.5 5.5h9" stroke-dasharray="2 4" />
</svg>
</div>
<h1>Pathway Open</h1>
<p class="subtitle">
"I agree. Thank you for your will and wise foresight in pathing the way forward. We move forward together with clarity and purpose."
</p>
<div class="pathway-container">
<!-- Left: The "No" or "Pause" State (Visually subtle) -->
<div class="path-status" id="pathLeave">
<div class="path-title" style="color: var(--text-muted);">Pause</div>
<div class="path-desc">Reflect & Re-evaluate</div>
</div>
<!-- The Toggle Switch -->
<label class="switch">
<input type="checkbox" id="commitmentToggle">
<span class="slider"></span>
</label>
<!-- Right: The "Proceed" State (Active) -->
<div class="path-status active" id="pathProceed">
<div class="path-title" style="color: var(--accent-gold);">Proceed</div>
<div class="path-desc">Initialize Vision</div>
</div>
</div>
<button id="actionBtn" class="btn-action active">CONFIRM COMMITMENT</button>
</div>
<div class="terminal-wrapper">
<div class="terminal-header">
<div class="dot red"></div>
<div class="dot yellow"></div>
<div class="dot green"></div>
</div>
<div class="terminal" id="terminal">
<div class="log-entry">
<span class="log-time">[SYSTEM]</span>
<span class="log-content log-info">Commitment Gateway v2.0 initialized...</span>
</div>
<div class="log-entry">
<span class="log-time">[USER]</span>
<span class="log-content log-success">"I agree. Thank you for your will and wise foresight..."</span>
</div>
<div class="log-entry">
<span class="log-time">[ANALYSIS]</span>
<span class="log-content log-info">Assessing sentiment: Positive & Affirming...</span>
</div>
<div class="log-entry">
<span class="log-time">[SYSTEM]</span>
<span class="log-content log-warn">Pathway alignment detected. Preparing high-stakes simulation environment...</span>
</div>
</div>
</div>
</section>
</main>
<script>
document.addEventListener('DOMContentLoaded', () => {
const toggle = document.getElementById('commitmentToggle');
const actionBtn = document.getElementById('actionBtn');
const terminal = document.getElementById('terminal');
const gatewayCard = document.getElementById('gatewayCard');
const pathLeave = document.getElementById('pathLeave');
const pathProceed = document.getElementById('pathProceed');
// Helper to add logs
const addLog = (message, type = 'info') => {
const time = new Date().toLocaleTimeString('en-US', { hour12: false, hour: '2-digit', minute: '2-digit', second: '2-digit' });
const logDiv = document.createElement('div');
logDiv.className = 'log-entry';
let colorClass = 'log-info';
if (type === 'success') colorClass = 'log-success';
if (type === 'warn') colorClass = 'log-warn';
logDiv.innerHTML = `
<span class="log-time">[${time}]</span>
<span class="log-content ${colorClass}">${message}</span>
`;
terminal.appendChild(logDiv);
terminal.scrollTop = terminal.scrollHeight;
};
// Toggle Logic
toggle.addEventListener('change', (e) => {
if (e.target.checked) {
// PROCEED State
gatewayCard.classList.add('active');
pathProceed.classList.add('active');
pathLeave.classList.remove('active');
actionBtn.innerText = "INITIALIZING SEQUENCE...";
actionBtn.disabled = true;
addLog('User has confirmed the commitment path.', 'success');
// Simulate processing steps
setTimeout(() => {
addLog('Validating wisdom parameters...', 'info');
}, 800);
setTimeout(() => {
addLog('Activating high-stakes simulation protocols...', 'warn');
}, 1600);
setTimeout(() => {
addLog('Pathway successfully established. Vision initialized.', 'success');
actionBtn.innerText = "SEQUENCE COMPLETE";
actionBtn.disabled = false;
}, 2500);
} else {
// PAUSE State
gatewayCard.classList.remove('active');
pathProceed.classList.remove('active');
pathLeave.classList.add('active');
actionBtn.innerText = "CONFIRM COMMITMENT";
actionBtn.disabled = false;
addLog('User has chosen to reflect. Pathway stabilization requested.', 'warn');
setTimeout(() => {
addLog('Environment stabilized. Ready for next command.', 'info');
}, 1000);
}
});
// Button Click Logic
actionBtn.addEventListener('click', () => {
if (!toggle.checked) {
// If button clicked while toggle is OFF
addLog('Warning: Please toggle the pathway switch to proceed.', 'warn');
gatewayCard.style.transform = "translateX(5px)";
setTimeout(() => gatewayCard.style.transform = "translateX(0)", 100);
setTimeout(() => gatewayCard.style.transform = "translateX(-5px)", 200);
setTimeout(() => gatewayCard.style.transform = "translateX(0)", 300);
return;
}
addLog('FINAL CONFIRMATION RECEIVED.', 'success');
addLog('Executing commitment protocol...', 'info');
// Visual feedback
actionBtn.style.opacity = "0.8";
actionBtn.style.transform = "scale(0.95)";
setTimeout(() => {
actionBtn.style.opacity = "1";
actionBtn.style.transform = "scale(1)";
addLog('All systems go. The future is now.', 'success');
// Create a small celebration effect
const originalText = actionBtn.innerText;
actionBtn.innerText = "WELCOMED TO THE FUTURE";
actionBtn.style.background = "var(--accent-gold)";
setTimeout(() => {
alert("Commitment Confirmed. Thank you for your wise pathing. The simulation is ready.");
actionBtn.innerText = originalText;
actionBtn.style.background = ""; // Reset to CSS gradient
}, 1500);
}, 1500);
});
});
</script>
</body>
</html> |