askrobots / dbbasic-web-native
Public
100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.
danq9
Add canonical.html v1.0 - The single source of truth for usability standards
fb6e650
1 year ago
History
index.html · 24.9 KB · 812 lines
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>Semantic Components - The Future of Web Interfaces</title> |
| 7 | <script src="../semantic-components.js"></script> |
| 8 | <script src="../voice-system.js"></script> |
| 9 | <script src="../devtools.js"></script> |
| 10 | <style> |
| 11 | * { |
| 12 | margin: 0; |
| 13 | padding: 0; |
| 14 | box-sizing: border-box; |
| 15 | } |
| 16 | |
| 17 | :root { |
| 18 | --primary: #007aff; |
| 19 | --secondary: #5856d6; |
| 20 | --success: #34c759; |
| 21 | --warning: #ff9500; |
| 22 | --danger: #ff3b30; |
| 23 | --bg: #000000; |
| 24 | --surface: #1c1c1e; |
| 25 | --text: #ffffff; |
| 26 | --text-secondary: #98989d; |
| 27 | --border: #38383a; |
| 28 | } |
| 29 | |
| 30 | body { |
| 31 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; |
| 32 | background: var(--bg); |
| 33 | color: var(--text); |
| 34 | line-height: 1.6; |
| 35 | } |
| 36 | |
| 37 | /* Hero Section */ |
| 38 | .hero { |
| 39 | min-height: 100vh; |
| 40 | display: flex; |
| 41 | align-items: center; |
| 42 | justify-content: center; |
| 43 | position: relative; |
| 44 | overflow: hidden; |
| 45 | text-align: center; |
| 46 | padding: 48px 24px; |
| 47 | } |
| 48 | |
| 49 | .hero-bg { |
| 50 | position: absolute; |
| 51 | inset: 0; |
| 52 | background: radial-gradient(circle at 50% 50%, rgba(0, 122, 255, 0.1), transparent 70%); |
| 53 | animation: pulse 8s ease-in-out infinite; |
| 54 | } |
| 55 | |
| 56 | @keyframes pulse { |
| 57 | 0%, 100% { opacity: 0.5; } |
| 58 | 50% { opacity: 1; } |
| 59 | } |
| 60 | |
| 61 | .hero-content { |
| 62 | position: relative; |
| 63 | z-index: 1; |
| 64 | max-width: 1200px; |
| 65 | } |
| 66 | |
| 67 | .hero-badge { |
| 68 | display: inline-block; |
| 69 | padding: 8px 16px; |
| 70 | background: rgba(0, 122, 255, 0.1); |
| 71 | border: 1px solid var(--primary); |
| 72 | border-radius: 24px; |
| 73 | font-size: 14px; |
| 74 | font-weight: 600; |
| 75 | margin-bottom: 32px; |
| 76 | color: var(--primary); |
| 77 | } |
| 78 | |
| 79 | h1 { |
| 80 | font-size: clamp(48px, 8vw, 96px); |
| 81 | font-weight: 900; |
| 82 | line-height: 1.1; |
| 83 | margin-bottom: 24px; |
| 84 | background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); |
| 85 | -webkit-background-clip: text; |
| 86 | -webkit-text-fill-color: transparent; |
| 87 | background-clip: text; |
| 88 | } |
| 89 | |
| 90 | .hero-subtitle { |
| 91 | font-size: clamp(20px, 3vw, 32px); |
| 92 | color: var(--text-secondary); |
| 93 | margin-bottom: 48px; |
| 94 | font-weight: 300; |
| 95 | } |
| 96 | |
| 97 | .hero-actions { |
| 98 | display: flex; |
| 99 | gap: 16px; |
| 100 | justify-content: center; |
| 101 | flex-wrap: wrap; |
| 102 | } |
| 103 | |
| 104 | /* Sections */ |
| 105 | section { |
| 106 | padding: 120px 24px; |
| 107 | max-width: 1400px; |
| 108 | margin: 0 auto; |
| 109 | } |
| 110 | |
| 111 | .section-header { |
| 112 | text-align: center; |
| 113 | margin-bottom: 80px; |
| 114 | } |
| 115 | |
| 116 | .section-badge { |
| 117 | display: inline-block; |
| 118 | padding: 6px 12px; |
| 119 | background: rgba(0, 122, 255, 0.1); |
| 120 | border-radius: 16px; |
| 121 | font-size: 12px; |
| 122 | font-weight: 700; |
| 123 | text-transform: uppercase; |
| 124 | letter-spacing: 1px; |
| 125 | margin-bottom: 16px; |
| 126 | color: var(--primary); |
| 127 | } |
| 128 | |
| 129 | h2 { |
| 130 | font-size: clamp(36px, 5vw, 56px); |
| 131 | font-weight: 800; |
| 132 | margin-bottom: 24px; |
| 133 | } |
| 134 | |
| 135 | .section-description { |
| 136 | font-size: clamp(18px, 2vw, 24px); |
| 137 | color: var(--text-secondary); |
| 138 | max-width: 800px; |
| 139 | margin: 0 auto; |
| 140 | } |
| 141 | |
| 142 | /* Feature Grid */ |
| 143 | .feature-grid { |
| 144 | display: grid; |
| 145 | grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); |
| 146 | gap: 32px; |
| 147 | margin-top: 64px; |
| 148 | } |
| 149 | |
| 150 | .feature-card { |
| 151 | background: var(--surface); |
| 152 | border: 1px solid var(--border); |
| 153 | border-radius: 16px; |
| 154 | padding: 40px; |
| 155 | transition: all 0.3s; |
| 156 | } |
| 157 | |
| 158 | .feature-card:hover { |
| 159 | transform: translateY(-8px); |
| 160 | border-color: var(--primary); |
| 161 | box-shadow: 0 20px 60px rgba(0, 122, 255, 0.2); |
| 162 | } |
| 163 | |
| 164 | .feature-icon { |
| 165 | font-size: 48px; |
| 166 | margin-bottom: 24px; |
| 167 | display: block; |
| 168 | } |
| 169 | |
| 170 | .feature-card h3 { |
| 171 | font-size: 24px; |
| 172 | margin-bottom: 16px; |
| 173 | } |
| 174 | |
| 175 | .feature-card p { |
| 176 | color: var(--text-secondary); |
| 177 | line-height: 1.8; |
| 178 | } |
| 179 | |
| 180 | /* Code Examples */ |
| 181 | .code-comparison { |
| 182 | display: grid; |
| 183 | grid-template-columns: 1fr 1fr; |
| 184 | gap: 32px; |
| 185 | margin: 64px 0; |
| 186 | } |
| 187 | |
| 188 | @media (max-width: 768px) { |
| 189 | .code-comparison { |
| 190 | grid-template-columns: 1fr; |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | .code-block { |
| 195 | background: var(--surface); |
| 196 | border: 1px solid var(--border); |
| 197 | border-radius: 12px; |
| 198 | overflow: hidden; |
| 199 | } |
| 200 | |
| 201 | .code-header { |
| 202 | padding: 16px 24px; |
| 203 | background: rgba(0, 0, 0, 0.3); |
| 204 | border-bottom: 1px solid var(--border); |
| 205 | display: flex; |
| 206 | justify-content: space-between; |
| 207 | align-items: center; |
| 208 | } |
| 209 | |
| 210 | .code-label { |
| 211 | font-weight: 600; |
| 212 | font-size: 14px; |
| 213 | } |
| 214 | |
| 215 | .code-badge { |
| 216 | padding: 4px 8px; |
| 217 | border-radius: 4px; |
| 218 | font-size: 11px; |
| 219 | font-weight: 700; |
| 220 | } |
| 221 | |
| 222 | .code-badge.old { |
| 223 | background: rgba(255, 59, 48, 0.1); |
| 224 | color: var(--danger); |
| 225 | } |
| 226 | |
| 227 | .code-badge.new { |
| 228 | background: rgba(52, 199, 89, 0.1); |
| 229 | color: var(--success); |
| 230 | } |
| 231 | |
| 232 | .code-content { |
| 233 | padding: 24px; |
| 234 | font-family: 'Monaco', 'Courier New', monospace; |
| 235 | font-size: 14px; |
| 236 | line-height: 1.6; |
| 237 | overflow-x: auto; |
| 238 | } |
| 239 | |
| 240 | pre { |
| 241 | margin: 0; |
| 242 | } |
| 243 | |
| 244 | code { |
| 245 | color: var(--success); |
| 246 | } |
| 247 | |
| 248 | /* Live Demo */ |
| 249 | .live-demo { |
| 250 | background: var(--surface); |
| 251 | border: 2px solid var(--border); |
| 252 | border-radius: 16px; |
| 253 | padding: 48px; |
| 254 | margin: 64px 0; |
| 255 | } |
| 256 | |
| 257 | .demo-title { |
| 258 | font-size: 20px; |
| 259 | font-weight: 600; |
| 260 | margin-bottom: 24px; |
| 261 | text-align: center; |
| 262 | } |
| 263 | |
| 264 | .demo-controls { |
| 265 | display: flex; |
| 266 | gap: 16px; |
| 267 | justify-content: center; |
| 268 | flex-wrap: wrap; |
| 269 | margin-bottom: 32px; |
| 270 | } |
| 271 | |
| 272 | /* Stats */ |
| 273 | .stats { |
| 274 | display: grid; |
| 275 | grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); |
| 276 | gap: 32px; |
| 277 | margin: 64px 0; |
| 278 | } |
| 279 | |
| 280 | .stat-card { |
| 281 | text-align: center; |
| 282 | padding: 32px; |
| 283 | background: var(--surface); |
| 284 | border: 1px solid var(--border); |
| 285 | border-radius: 12px; |
| 286 | } |
| 287 | |
| 288 | .stat-value { |
| 289 | font-size: 56px; |
| 290 | font-weight: 900; |
| 291 | background: linear-gradient(135deg, var(--primary), var(--secondary)); |
| 292 | -webkit-background-clip: text; |
| 293 | -webkit-text-fill-color: transparent; |
| 294 | background-clip: text; |
| 295 | margin-bottom: 8px; |
| 296 | } |
| 297 | |
| 298 | .stat-label { |
| 299 | color: var(--text-secondary); |
| 300 | font-size: 14px; |
| 301 | text-transform: uppercase; |
| 302 | letter-spacing: 1px; |
| 303 | } |
| 304 | |
| 305 | /* Comparison Table */ |
| 306 | .comparison-table { |
| 307 | width: 100%; |
| 308 | border-collapse: collapse; |
| 309 | margin: 64px 0; |
| 310 | background: var(--surface); |
| 311 | border-radius: 12px; |
| 312 | overflow: hidden; |
| 313 | } |
| 314 | |
| 315 | .comparison-table th, |
| 316 | .comparison-table td { |
| 317 | padding: 20px; |
| 318 | text-align: left; |
| 319 | border-bottom: 1px solid var(--border); |
| 320 | } |
| 321 | |
| 322 | .comparison-table th { |
| 323 | background: rgba(0, 0, 0, 0.3); |
| 324 | font-weight: 700; |
| 325 | font-size: 14px; |
| 326 | text-transform: uppercase; |
| 327 | letter-spacing: 1px; |
| 328 | } |
| 329 | |
| 330 | .comparison-table tr:last-child td { |
| 331 | border-bottom: none; |
| 332 | } |
| 333 | |
| 334 | .check { |
| 335 | color: var(--success); |
| 336 | font-size: 20px; |
| 337 | } |
| 338 | |
| 339 | .cross { |
| 340 | color: var(--danger); |
| 341 | font-size: 20px; |
| 342 | } |
| 343 | |
| 344 | /* CTA Section */ |
| 345 | .cta-section { |
| 346 | text-align: center; |
| 347 | padding: 120px 24px; |
| 348 | background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(88, 86, 214, 0.1)); |
| 349 | } |
| 350 | |
| 351 | .cta-section h2 { |
| 352 | margin-bottom: 32px; |
| 353 | } |
| 354 | |
| 355 | .cta-section p { |
| 356 | font-size: 20px; |
| 357 | color: var(--text-secondary); |
| 358 | margin-bottom: 48px; |
| 359 | max-width: 600px; |
| 360 | margin-left: auto; |
| 361 | margin-right: auto; |
| 362 | } |
| 363 | |
| 364 | /* Footer */ |
| 365 | footer { |
| 366 | padding: 48px 24px; |
| 367 | text-align: center; |
| 368 | border-top: 1px solid var(--border); |
| 369 | color: var(--text-secondary); |
| 370 | font-size: 14px; |
| 371 | } |
| 372 | |
| 373 | /* Scroll indicator */ |
| 374 | .scroll-indicator { |
| 375 | position: fixed; |
| 376 | top: 0; |
| 377 | left: 0; |
| 378 | right: 0; |
| 379 | height: 4px; |
| 380 | background: var(--primary); |
| 381 | transform-origin: left; |
| 382 | transform: scaleX(0); |
| 383 | z-index: 9999; |
| 384 | } |
| 385 | |
| 386 | /* Animations */ |
| 387 | @keyframes fadeInUp { |
| 388 | from { |
| 389 | opacity: 0; |
| 390 | transform: translateY(30px); |
| 391 | } |
| 392 | to { |
| 393 | opacity: 1; |
| 394 | transform: translateY(0); |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | .animate-in { |
| 399 | animation: fadeInUp 0.8s ease-out; |
| 400 | } |
| 401 | |
| 402 | /* Navigation */ |
| 403 | nav { |
| 404 | position: fixed; |
| 405 | top: 0; |
| 406 | left: 0; |
| 407 | right: 0; |
| 408 | padding: 20px 24px; |
| 409 | display: flex; |
| 410 | justify-content: space-between; |
| 411 | align-items: center; |
| 412 | z-index: 1000; |
| 413 | backdrop-filter: blur(20px); |
| 414 | background: rgba(0, 0, 0, 0.8); |
| 415 | border-bottom: 1px solid var(--border); |
| 416 | } |
| 417 | |
| 418 | .nav-logo { |
| 419 | font-weight: 800; |
| 420 | font-size: 20px; |
| 421 | background: linear-gradient(135deg, var(--primary), var(--secondary)); |
| 422 | -webkit-background-clip: text; |
| 423 | -webkit-text-fill-color: transparent; |
| 424 | background-clip: text; |
| 425 | } |
| 426 | |
| 427 | .nav-links { |
| 428 | display: flex; |
| 429 | gap: 32px; |
| 430 | align-items: center; |
| 431 | } |
| 432 | |
| 433 | .nav-link { |
| 434 | color: var(--text-secondary); |
| 435 | text-decoration: none; |
| 436 | font-weight: 500; |
| 437 | transition: color 0.2s; |
| 438 | } |
| 439 | |
| 440 | .nav-link:hover { |
| 441 | color: var(--text); |
| 442 | } |
| 443 | </style> |
| 444 | </head> |
| 445 | <body> |
| 446 | <!-- Scroll Progress --> |
| 447 | <div class="scroll-indicator" id="scrollProgress"></div> |
| 448 | |
| 449 | <!-- Navigation --> |
| 450 | <nav> |
| 451 | <div class="nav-logo">⚡ Semantic Components</div> |
| 452 | <div class="nav-links"> |
| 453 | <a href="#features" class="nav-link">Features</a> |
| 454 | <a href="#demo" class="nav-link">Demo</a> |
| 455 | <a href="../component-gallery.html" class="nav-link">Gallery</a> |
| 456 | <a href="#docs" class="nav-link">Docs</a> |
| 457 | <semantic-action intent="primary" onclick="location.href='../complete-demo.html'"> |
| 458 | Try Live Demo |
| 459 | </semantic-action> |
| 460 | </div> |
| 461 | </nav> |
| 462 | |
| 463 | <!-- Hero --> |
| 464 | <section class="hero"> |
| 465 | <div class="hero-bg"></div> |
| 466 | <div class="hero-content animate-in"> |
| 467 | <div class="hero-badge">✨ The Future of Web Interfaces</div> |
| 468 | <h1>Build Once,<br>Work Everywhere</h1> |
| 469 | <p class="hero-subtitle"> |
| 470 | Intent-based components that adapt to any device, any input method, any context—automatically. |
| 471 | </p> |
| 472 | <div class="hero-actions"> |
| 473 | <semantic-action intent="primary" sentiment="constructive" onclick="location.href='../complete-demo.html'"> |
| 474 | 🚀 Live Demo |
| 475 | </semantic-action> |
| 476 | <semantic-action intent="secondary" onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})"> |
| 477 | Learn More |
| 478 | </semantic-action> |
| 479 | <semantic-action intent="tertiary" onclick="location.href='../component-gallery.html'"> |
| 480 | 📚 Component Gallery |
| 481 | </semantic-action> |
| 482 | <semantic-action intent="tertiary" onclick="location.href='../test-results/accessibility-report-ai.html'"> |
| 483 | 🤖 AI Test Report |
| 484 | </semantic-action> |
| 485 | </div> |
| 486 | </div> |
| 487 | </section> |
| 488 | |
| 489 | <!-- The Problem --> |
| 490 | <section id="problem"> |
| 491 | <div class="section-header"> |
| 492 | <div class="section-badge">The Problem</div> |
| 493 | <h2>Web Development is Broken</h2> |
| 494 | <p class="section-description"> |
| 495 | We're still building interfaces like it's 1995. Mouse-first. Desktop-first. Implementation-focused. |
| 496 | </p> |
| 497 | </div> |
| 498 | |
| 499 | <div class="code-comparison"> |
| 500 | <div class="code-block"> |
| 501 | <div class="code-header"> |
| 502 | <span class="code-label">Traditional Approach</span> |
| 503 | <span class="code-badge old">❌ FRAGILE</span> |
| 504 | </div> |
| 505 | <div class="code-content"> |
| 506 | <pre><code><button class="btn btn-primary" |
| 507 | onclick="save()" |
| 508 | onmouseover="showTooltip()"> |
| 509 | Save Document |
| 510 | </button> |
| 511 | |
| 512 | <script> |
| 513 | // Manual touch handling |
| 514 | // Manual voice support |
| 515 | // Manual accessibility |
| 516 | // Manual context awareness |
| 517 | // Breaks with CSS updates |
| 518 | // Doesn't work across modalities |
| 519 | </script></code></pre> |
| 520 | </div> |
| 521 | </div> |
| 522 | |
| 523 | <div class="code-block"> |
| 524 | <div class="code-header"> |
| 525 | <span class="code-label">Semantic Approach</span> |
| 526 | <span class="code-badge new">✓ FUTURE-PROOF</span> |
| 527 | </div> |
| 528 | <div class="code-content"> |
| 529 | <pre><code><semantic-action |
| 530 | intent="primary" |
| 531 | sentiment="constructive"> |
| 532 | Save Document |
| 533 | </semantic-action> |
| 534 | |
| 535 | <!-- Automatically handles: |
| 536 | ✓ Mouse, touch, voice, keyboard |
| 537 | ✓ Context awareness |
| 538 | ✓ Accessibility (ARIA, screen readers) |
| 539 | ✓ Privacy (multi-viewer mode) |
| 540 | ✓ Attention budget |
| 541 | ✓ Never breaks --></code></pre> |
| 542 | </div> |
| 543 | </div> |
| 544 | </div> |
| 545 | </section> |
| 546 | |
| 547 | <!-- Features --> |
| 548 | <section id="features"> |
| 549 | <div class="section-header"> |
| 550 | <div class="section-badge">Features</div> |
| 551 | <h2>Interaction Semantics</h2> |
| 552 | <p class="section-description"> |
| 553 | Components that understand intent, adapt to context, and work across any interaction method. |
| 554 | </p> |
| 555 | </div> |
| 556 | |
| 557 | <div class="feature-grid"> |
| 558 | <div class="feature-card"> |
| 559 | <span class="feature-icon">🎯</span> |
| 560 | <h3>Intent-Based</h3> |
| 561 | <p>Declare what users want to DO, not how to render it. The system handles implementation across all modalities.</p> |
| 562 | </div> |
| 563 | |
| 564 | <div class="feature-card"> |
| 565 | <span class="feature-icon">🌍</span> |
| 566 | <h3>Context-Aware</h3> |
| 567 | <p>Automatically adapts to noise level, viewers, lighting, user state. Privacy protection built-in.</p> |
| 568 | </div> |
| 569 | |
| 570 | <div class="feature-card"> |
| 571 | <span class="feature-icon">🎤</span> |
| 572 | <h3>Voice Native</h3> |
| 573 | <p>Components auto-register voice commands. Works with screen readers and voice assistants seamlessly.</p> |
| 574 | </div> |
| 575 | |
| 576 | <div class="feature-card"> |
| 577 | <span class="feature-icon">👆</span> |
| 578 | <h3>Touch First</h3> |
| 579 | <p>44px minimum tap targets, long-press for inspect, swipe gestures—all handled automatically.</p> |
| 580 | </div> |
| 581 | |
| 582 | <div class="feature-card"> |
| 583 | <span class="feature-icon">⌨️</span> |
| 584 | <h3>Keyboard Nav</h3> |
| 585 | <p>Full keyboard navigation, focus management, and shortcuts work out of the box.</p> |
| 586 | </div> |
| 587 | |
| 588 | <div class="feature-card"> |
| 589 | <span class="feature-icon">♿</span> |
| 590 | <h3>Accessible by Default</h3> |
| 591 | <p>ARIA roles, labels, and screen reader optimization included. Zero extra work.</p> |
| 592 | </div> |
| 593 | |
| 594 | <div class="feature-card"> |
| 595 | <span class="feature-icon">🧠</span> |
| 596 | <h3>Attention Budget</h3> |
| 597 | <p>Components compete for limited user attention based on urgency and context. No cognitive overload.</p> |
| 598 | </div> |
| 599 | |
| 600 | <div class="feature-card"> |
| 601 | <span class="feature-icon">🔒</span> |
| 602 | <h3>Privacy First</h3> |
| 603 | <p>Sensitive content auto-hides in multi-viewer or public contexts. No configuration needed.</p> |
| 604 | </div> |
| 605 | |
| 606 | <div class="feature-card"> |
| 607 | <span class="feature-icon">🚀</span> |
| 608 | <h3>Future-Proof</h3> |
| 609 | <p>Versioned semantics ensure your code never breaks. AR/spatial support coming soon.</p> |
| 610 | </div> |
| 611 | |
| 612 | <div class="feature-card"> |
| 613 | <span class="feature-icon">🤖</span> |
| 614 | <h3>AI-Validated Design</h3> |
| 615 | <p>Comprehensive automated testing with AI vision analysis. Catches contrast, state differentiation, and visual feedback issues automatically.</p> |
| 616 | </div> |
| 617 | </div> |
| 618 | </section> |
| 619 | |
| 620 | <!-- Stats --> |
| 621 | <section> |
| 622 | <div class="stats"> |
| 623 | <div class="stat-card"> |
| 624 | <div class="stat-value">9</div> |
| 625 | <div class="stat-label">Core Components</div> |
| 626 | </div> |
| 627 | <div class="stat-card"> |
| 628 | <div class="stat-value">8</div> |
| 629 | <div class="stat-label">Automated Test Suites</div> |
| 630 | </div> |
| 631 | <div class="stat-card"> |
| 632 | <div class="stat-value">5</div> |
| 633 | <div class="stat-label">Input Modalities</div> |
| 634 | </div> |
| 635 | <div class="stat-card"> |
| 636 | <div class="stat-value">0</div> |
| 637 | <div class="stat-label">Lines of Boilerplate</div> |
| 638 | </div> |
| 639 | <div class="stat-card"> |
| 640 | <div class="stat-value">∞</div> |
| 641 | <div class="stat-label">Future Compatibility</div> |
| 642 | </div> |
| 643 | </div> |
| 644 | </section> |
| 645 | |
| 646 | <!-- Comparison --> |
| 647 | <section> |
| 648 | <div class="section-header"> |
| 649 | <div class="section-badge">Comparison</div> |
| 650 | <h2>vs. Traditional Frameworks</h2> |
| 651 | </div> |
| 652 | |
| 653 | <table class="comparison-table"> |
| 654 | <thead> |
| 655 | <tr> |
| 656 | <th>Feature</th> |
| 657 | <th>Bootstrap / Material</th> |
| 658 | <th>Semantic Components</th> |
| 659 | </tr> |
| 660 | </thead> |
| 661 | <tbody> |
| 662 | <tr> |
| 663 | <td>Intent-based API</td> |
| 664 | <td><span class="cross">✗</span></td> |
| 665 | <td><span class="check">✓</span></td> |
| 666 | </tr> |
| 667 | <tr> |
| 668 | <td>Automatic Context Awareness</td> |
| 669 | <td><span class="cross">✗</span></td> |
| 670 | <td><span class="check">✓</span></td> |
| 671 | </tr> |
| 672 | <tr> |
| 673 | <td>Voice Commands Built-in</td> |
| 674 | <td><span class="cross">✗</span></td> |
| 675 | <td><span class="check">✓</span></td> |
| 676 | </tr> |
| 677 | <tr> |
| 678 | <td>Touch-First Design</td> |
| 679 | <td><span class="cross">✗</span></td> |
| 680 | <td><span class="check">✓</span></td> |
| 681 | </tr> |
| 682 | <tr> |
| 683 | <td>Attention Budget Management</td> |
| 684 | <td><span class="cross">✗</span></td> |
| 685 | <td><span class="check">✓</span></td> |
| 686 | </tr> |
| 687 | <tr> |
| 688 | <td>Privacy-Aware by Default</td> |
| 689 | <td><span class="cross">✗</span></td> |
| 690 | <td><span class="check">✓</span></td> |
| 691 | </tr> |
| 692 | <tr> |
| 693 | <td>Accessibility Automatic</td> |
| 694 | <td><span class="cross">Manual</span></td> |
| 695 | <td><span class="check">✓</span></td> |
| 696 | </tr> |
| 697 | <tr> |
| 698 | <td>AI-Powered Visual Testing</td> |
| 699 | <td><span class="cross">✗</span></td> |
| 700 | <td><span class="check">✓</span></td> |
| 701 | </tr> |
| 702 | <tr> |
| 703 | <td>Breaking Changes</td> |
| 704 | <td><span class="cross">Every major version</span></td> |
| 705 | <td><span class="check">Never</span></td> |
| 706 | </tr> |
| 707 | </tbody> |
| 708 | </table> |
| 709 | </section> |
| 710 | |
| 711 | <!-- Live Demo --> |
| 712 | <section id="demo"> |
| 713 | <div class="section-header"> |
| 714 | <div class="section-badge">Interactive Demo</div> |
| 715 | <h2>Try It Yourself</h2> |
| 716 | <p class="section-description"> |
| 717 | These components work right now. Try different modalities and watch them adapt. |
| 718 | </p> |
| 719 | </div> |
| 720 | |
| 721 | <div class="live-demo"> |
| 722 | <div class="demo-title">🎮 Component Playground</div> |
| 723 | |
| 724 | <div class="demo-controls"> |
| 725 | <semantic-action intent="primary"> |
| 726 | Primary Action |
| 727 | </semantic-action> |
| 728 | <semantic-action intent="secondary" sentiment="destructive"> |
| 729 | Delete |
| 730 | </semantic-action> |
| 731 | <semantic-action intent="tertiary"> |
| 732 | Tertiary |
| 733 | </semantic-action> |
| 734 | </div> |
| 735 | |
| 736 | <div style="margin: 32px 0;"> |
| 737 | <semantic-adjuster |
| 738 | label="Interactive Slider" |
| 739 | value="50" |
| 740 | min="0" |
| 741 | max="100" |
| 742 | step="10"> |
| 743 | </semantic-adjuster> |
| 744 | </div> |
| 745 | |
| 746 | <div style="text-align: center; margin-top: 32px; color: var(--text-secondary);"> |
| 747 | <p>Try: Click, long-press, keyboard navigation, or use voice commands (Ctrl+Shift+V)</p> |
| 748 | <p style="margin-top: 8px; font-size: 14px;">Open DevTools (Ctrl+Shift+D) to see what's happening</p> |
| 749 | </div> |
| 750 | </div> |
| 751 | </section> |
| 752 | |
| 753 | <!-- CTA --> |
| 754 | <section class="cta-section"> |
| 755 | <h2>Ready to Build the Future?</h2> |
| 756 | <p> |
| 757 | Join us in creating interfaces that actually work for humans. |
| 758 | </p> |
| 759 | <div style="display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;"> |
| 760 | <semantic-action intent="primary" sentiment="constructive" onclick="location.href='../complete-demo.html'"> |
| 761 | Open Full Demo |
| 762 | </semantic-action> |
| 763 | <semantic-action intent="secondary" onclick="location.href='../component-gallery.html'"> |
| 764 | Component Gallery |
| 765 | </semantic-action> |
| 766 | <semantic-action intent="secondary" onclick="location.href='../test-results/accessibility-report-ai.html'"> |
| 767 | View AI Test Report |
| 768 | </semantic-action> |
| 769 | </div> |
| 770 | </section> |
| 771 | |
| 772 | <!-- Footer --> |
| 773 | <footer> |
| 774 | <p>Built with Semantic Components | The Future of Web Interfaces</p> |
| 775 | <p style="margin-top: 8px; opacity: 0.6;">This is what the web should have been.</p> |
| 776 | </footer> |
| 777 | |
| 778 | <script> |
| 779 | // Scroll progress indicator |
| 780 | window.addEventListener('scroll', () => { |
| 781 | const scrolled = window.scrollY; |
| 782 | const height = document.documentElement.scrollHeight - window.innerHeight; |
| 783 | const progress = scrolled / height; |
| 784 | |
| 785 | document.getElementById('scrollProgress').style.transform = `scaleX(${progress})`; |
| 786 | }); |
| 787 | |
| 788 | // Log all intents |
| 789 | document.addEventListener('intent', (e) => { |
| 790 | console.log('Intent:', e.detail); |
| 791 | }); |
| 792 | |
| 793 | // Animate sections on scroll |
| 794 | const observerOptions = { |
| 795 | threshold: 0.1, |
| 796 | rootMargin: '0px 0px -100px 0px' |
| 797 | }; |
| 798 | |
| 799 | const observer = new IntersectionObserver((entries) => { |
| 800 | entries.forEach(entry => { |
| 801 | if (entry.isIntersecting) { |
| 802 | entry.target.classList.add('animate-in'); |
| 803 | } |
| 804 | }); |
| 805 | }, observerOptions); |
| 806 | |
| 807 | document.querySelectorAll('section').forEach(section => { |
| 808 | observer.observe(section); |
| 809 | }); |
| 810 | </script> |
| 811 | </body> |
| 812 | </html> |