100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.

0 downloads

dbbasic-web-native/demo-marketing-complete.html
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-web-native.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-web-native.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-web-native.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add canonical.html v1.0 - The single source of truth for usability standards fb6e650 1 year ago History
demo-marketing-complete.html · 27.6 KB · 817 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>Complete Marketing Components - Premium Collection</title>
7
8 <!-- DBBasic Usability Standards Overlay -->
9 <link rel="stylesheet" href="standards/standards-overlay.css">
10
11 <style>
12 * {
13 margin: 0;
14 padding: 0;
15 box-sizing: border-box;
16 }
17
18 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
19
20 body {
21 font-family: 'Inter', sans-serif;
22 -webkit-font-smoothing: antialiased;
23 -moz-osx-font-smoothing: grayscale;
24 background: #ffffff;
25 color: #1a1a1a;
26 }
27
28 .section-divider {
29 background: linear-gradient(to right, #f8f9fa, #ffffff);
30 padding: 20px 48px;
31 border-bottom: 1px solid #e5e7eb;
32 font-size: 11px;
33 font-weight: 600;
34 color: #6b7280;
35 text-transform: uppercase;
36 letter-spacing: 1.5px;
37 position: sticky;
38 top: 0;
39 z-index: 100;
40 backdrop-filter: blur(10px);
41 }
42
43 /* ========== HERO SECTION ========== */
44 .hero {
45 min-height: 100vh;
46 display: flex;
47 align-items: center;
48 justify-content: center;
49 position: relative;
50 overflow: hidden;
51 background:
52 radial-gradient(at 20% 30%, rgba(99, 102, 241, 0.5) 0%, transparent 50%),
53 radial-gradient(at 80% 70%, rgba(168, 85, 247, 0.4) 0%, transparent 50%),
54 linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #DB2777 100%);
55 padding: 120px 24px;
56 }
57
58 .hero-content {
59 position: relative;
60 z-index: 2;
61 max-width: 1200px;
62 text-align: center;
63 }
64
65 .badge {
66 display: inline-flex;
67 padding: 10px 24px;
68 background: rgba(255, 255, 255, 0.12);
69 border: 1px solid rgba(255, 255, 255, 0.3);
70 border-radius: 100px;
71 color: white;
72 font-weight: 600;
73 font-size: 14px;
74 backdrop-filter: blur(12px);
75 margin-bottom: 32px;
76 }
77
78 h1 {
79 font-size: clamp(48px, 8vw, 88px);
80 font-weight: 900;
81 letter-spacing: -0.045em;
82 line-height: 0.95;
83 background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
84 -webkit-background-clip: text;
85 -webkit-text-fill-color: transparent;
86 margin: 0 0 32px;
87 }
88
89 .subheading {
90 font-size: clamp(18px, 2vw, 22px);
91 font-weight: 400;
92 line-height: 1.75;
93 color: rgba(255, 255, 255, 0.92);
94 max-width: 720px;
95 margin: 0 auto 48px;
96 }
97
98 .cta-group {
99 display: flex;
100 gap: 20px;
101 justify-content: center;
102 flex-wrap: wrap;
103 margin-bottom: 80px;
104 }
105
106 .btn {
107 padding: 18px 48px;
108 border-radius: 12px;
109 font-weight: 600;
110 font-size: 16px;
111 cursor: pointer;
112 transition: all 0.3s;
113 border: none;
114 text-decoration: none;
115 }
116
117 .btn-primary {
118 background: white;
119 color: #4F46E5;
120 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 10px 32px rgba(255, 255, 255, 0.2);
121 }
122
123 .btn-primary:hover {
124 transform: translateY(-2px);
125 box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 12px 48px rgba(255, 255, 255, 0.3);
126 }
127
128 .btn-secondary {
129 background: rgba(255, 255, 255, 0.1);
130 color: white;
131 border: 1px solid rgba(255, 255, 255, 0.3);
132 backdrop-filter: blur(10px);
133 }
134
135 .btn-secondary:hover {
136 background: rgba(255, 255, 255, 0.15);
137 }
138
139 .logo-grid {
140 display: flex;
141 gap: 56px;
142 justify-content: center;
143 flex-wrap: wrap;
144 margin-top: 32px;
145 }
146
147 .logo {
148 width: 130px;
149 height: 44px;
150 background: rgba(255, 255, 255, 0.14);
151 border-radius: 10px;
152 display: flex;
153 align-items: center;
154 justify-content: center;
155 font-weight: 700;
156 color: rgba(255, 255, 255, 0.95);
157 font-size: 14px;
158 letter-spacing: 0.08em;
159 backdrop-filter: blur(8px);
160 transition: all 0.3s;
161 }
162
163 .logo:hover {
164 background: rgba(255, 255, 255, 0.2);
165 transform: translateY(-4px);
166 }
167
168 /* ========== FEATURES SECTION ========== */
169 .features {
170 padding: 120px 24px;
171 background: #ffffff;
172 }
173
174 .container {
175 max-width: 1200px;
176 margin: 0 auto;
177 }
178
179 .section-header {
180 text-align: center;
181 margin-bottom: 80px;
182 }
183
184 .eyebrow {
185 font-size: 14px;
186 font-weight: 600;
187 color: #7C3AED;
188 text-transform: uppercase;
189 letter-spacing: 0.1em;
190 margin-bottom: 16px;
191 }
192
193 h2 {
194 font-size: clamp(36px, 5vw, 56px);
195 font-weight: 800;
196 letter-spacing: -0.03em;
197 color: #111827;
198 margin-bottom: 24px;
199 }
200
201 .section-description {
202 font-size: 20px;
203 color: #6b7280;
204 max-width: 700px;
205 margin: 0 auto;
206 line-height: 1.7;
207 }
208
209 .feature-grid {
210 display: grid;
211 grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
212 gap: 40px;
213 }
214
215 .feature-card {
216 padding: 40px;
217 background: #f9fafb;
218 border-radius: 16px;
219 border: 1px solid #e5e7eb;
220 transition: all 0.3s;
221 }
222
223 .feature-card:hover {
224 transform: translateY(-4px);
225 box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
226 border-color: #7C3AED;
227 }
228
229 .feature-icon {
230 width: 56px;
231 height: 56px;
232 background: linear-gradient(135deg, #7C3AED, #DB2777);
233 border-radius: 12px;
234 display: flex;
235 align-items: center;
236 justify-content: center;
237 font-size: 28px;
238 margin-bottom: 24px;
239 }
240
241 .feature-card h3 {
242 font-size: 22px;
243 font-weight: 700;
244 color: #111827;
245 margin-bottom: 12px;
246 }
247
248 .feature-card p {
249 font-size: 16px;
250 color: #6b7280;
251 line-height: 1.7;
252 }
253
254 /* ========== TESTIMONIALS ========== */
255 .testimonials {
256 padding: 120px 24px;
257 background: linear-gradient(to bottom, #f9fafb, #ffffff);
258 }
259
260 .testimonial-grid {
261 display: grid;
262 grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
263 gap: 32px;
264 margin-top: 64px;
265 }
266
267 .testimonial-card {
268 padding: 40px;
269 background: white;
270 border-radius: 16px;
271 border: 1px solid #e5e7eb;
272 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
273 }
274
275 .testimonial-text {
276 font-size: 18px;
277 line-height: 1.7;
278 color: #374151;
279 margin-bottom: 24px;
280 font-style: italic;
281 }
282
283 .testimonial-author {
284 display: flex;
285 align-items: center;
286 gap: 16px;
287 }
288
289 .avatar {
290 width: 48px;
291 height: 48px;
292 border-radius: 50%;
293 background: linear-gradient(135deg, #7C3AED, #DB2777);
294 display: flex;
295 align-items: center;
296 justify-content: center;
297 color: white;
298 font-weight: 700;
299 }
300
301 .author-info h4 {
302 font-size: 16px;
303 font-weight: 600;
304 color: #111827;
305 }
306
307 .author-info p {
308 font-size: 14px;
309 color: #6b7280;
310 }
311
312 /* ========== PRICING ========== */
313 .pricing {
314 padding: 120px 24px;
315 background: #ffffff;
316 }
317
318 .pricing-grid {
319 display: grid;
320 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
321 gap: 32px;
322 margin-top: 64px;
323 max-width: 1100px;
324 margin-left: auto;
325 margin-right: auto;
326 }
327
328 .pricing-card {
329 padding: 48px;
330 background: white;
331 border-radius: 20px;
332 border: 2px solid #e5e7eb;
333 position: relative;
334 }
335
336 .pricing-card.featured {
337 border-color: #7C3AED;
338 box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
339 transform: scale(1.05);
340 }
341
342 .pricing-badge {
343 position: absolute;
344 top: -12px;
345 left: 50%;
346 transform: translateX(-50%);
347 padding: 6px 20px;
348 background: linear-gradient(135deg, #7C3AED, #DB2777);
349 color: white;
350 font-size: 12px;
351 font-weight: 700;
352 text-transform: uppercase;
353 border-radius: 100px;
354 letter-spacing: 0.05em;
355 }
356
357 .pricing-card h3 {
358 font-size: 24px;
359 font-weight: 700;
360 color: #111827;
361 margin-bottom: 12px;
362 }
363
364 .price {
365 font-size: 56px;
366 font-weight: 900;
367 color: #111827;
368 margin: 24px 0;
369 }
370
371 .price-period {
372 font-size: 18px;
373 color: #6b7280;
374 font-weight: 400;
375 }
376
377 .feature-list {
378 list-style: none;
379 margin: 32px 0;
380 }
381
382 .feature-list li {
383 padding: 12px 0;
384 font-size: 16px;
385 color: #374151;
386 display: flex;
387 align-items: center;
388 gap: 12px;
389 }
390
391 .feature-list li::before {
392 content: "✓";
393 color: #10b981;
394 font-weight: 700;
395 font-size: 18px;
396 }
397
398 /* ========== CTA SECTION ========== */
399 .cta-section {
400 padding: 120px 24px;
401 background: linear-gradient(135deg, #7C3AED, #DB2777);
402 text-align: center;
403 }
404
405 .cta-section h2 {
406 color: white;
407 margin-bottom: 24px;
408 }
409
410 .cta-section p {
411 font-size: 20px;
412 color: rgba(255, 255, 255, 0.9);
413 max-width: 650px;
414 margin: 0 auto 48px;
415 line-height: 1.7;
416 }
417
418 /* ========== STATS ========== */
419 .stats {
420 padding: 100px 24px;
421 background: #f9fafb;
422 }
423
424 .stats-grid {
425 display: grid;
426 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
427 gap: 64px;
428 text-align: center;
429 max-width: 1000px;
430 margin: 0 auto;
431 }
432
433 .stat-number {
434 font-size: 56px;
435 font-weight: 900;
436 background: linear-gradient(135deg, #7C3AED, #DB2777);
437 -webkit-background-clip: text;
438 -webkit-text-fill-color: transparent;
439 margin-bottom: 12px;
440 }
441
442 .stat-label {
443 font-size: 18px;
444 color: #6b7280;
445 font-weight: 500;
446 }
447
448 @media (max-width: 768px) {
449 .feature-grid, .testimonial-grid, .pricing-grid {
450 grid-template-columns: 1fr;
451 }
452 .pricing-card.featured {
453 transform: scale(1);
454 }
455 }
456 </style>
457</head>
458<body>
459 <!-- HERO SECTION -->
460 <div class="section-divider">01 - Hero Section</div>
461 <div class="hero">
462 <div class="hero-content">
463 <div class="badge">✨ New: AI-Tested Components</div>
464 <h1>Build products<br>people love</h1>
465 <p class="subheading">
466 The most advanced component library for modern web development.
467 Accessible, beautiful, and effortless to customize.
468 </p>
469 <div class="cta-group">
470 <button class="btn btn-primary">Start building for free</button>
471 <button class="btn btn-secondary">View live demos →</button>
472 </div>
473 <p style="font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.7); margin-bottom: 28px; font-weight: 600;">Used in production by</p>
474 <div class="logo-grid">
475 <div class="logo">DBBASIC</div>
476 <div class="logo">QUELLHORST</div>
477 <div class="logo">STABLECOIN</div>
478 <div class="logo">ASKROBOTS</div>
479 </div>
480 </div>
481 </div>
482
483 <!-- FEATURES SECTION -->
484 <div class="section-divider">02 - Features Section</div>
485 <div class="features">
486 <div class="container">
487 <div class="section-header">
488 <div class="eyebrow">Features</div>
489 <h2>Everything you need</h2>
490 <p class="section-description">
491 Build faster with components that are accessible, responsive, and beautiful by default.
492 </p>
493 </div>
494 <div class="feature-grid">
495 <div class="feature-card">
496 <div class="feature-icon">⚡</div>
497 <h3>Lightning Fast</h3>
498 <p>Native Web Components load instantly. No framework overhead, no bundle bloat.</p>
499 </div>
500 <div class="feature-card">
501 <div class="feature-icon">♿</div>
502 <h3>Accessible by Default</h3>
503 <p>WCAG AAA compliant with keyboard navigation and screen reader support built-in.</p>
504 </div>
505 <div class="feature-card">
506 <div class="feature-icon">📱</div>
507 <h3>Mobile First</h3>
508 <p>44px touch targets, responsive layouts, and gesture support out of the box.</p>
509 </div>
510 <div class="feature-card">
511 <div class="feature-icon">🎨</div>
512 <h3>Easily Customizable</h3>
513 <p>CSS custom properties make theming simple. Your brand, your style.</p>
514 </div>
515 <div class="feature-card">
516 <div class="feature-icon">🔒</div>
517 <h3>Shadow DOM</h3>
518 <p>True encapsulation means no CSS conflicts, ever. Style isolation built-in.</p>
519 </div>
520 <div class="feature-card">
521 <div class="feature-icon">🌐</div>
522 <h3>Universal</h3>
523 <p>Works with React, Vue, Angular, or vanilla JS. Framework-agnostic by design.</p>
524 </div>
525 </div>
526 </div>
527 </div>
528
529 <!-- TESTIMONIALS SECTION -->
530 <div class="section-divider">03 - Testimonials</div>
531 <div class="testimonials">
532 <div class="container">
533 <div class="section-header">
534 <div class="eyebrow">Testimonials</div>
535 <h2>What developers say</h2>
536 <p class="section-description">
537 Join thousands of developers who've shipped better products faster.
538 </p>
539 </div>
540 <div class="testimonial-grid">
541 <div class="testimonial-card">
542 <p class="testimonial-text">"Software engineering should produce predictable results. AI enables systematic quality improvement through objective scoring (7/10+) instead of subjective 'looks good to me'. This is repeatable success."</p>
543 <div class="testimonial-author">
544 <div class="avatar">DQ</div>
545 <div class="author-info">
546 <h4>Dan Quellhorst</h4>
547 <p>Creator @ dbbasic.com</p>
548 </div>
549 </div>
550 </div>
551 <div class="testimonial-card">
552 <p class="testimonial-text">"Automated visual testing catches issues instantly with brutal honest feedback. 30-second feedback loop versus 2-day designer review. AI vision as a quality gate changes everything."</p>
553 <div class="testimonial-author">
554 <div class="avatar">DQ</div>
555 <div class="author-info">
556 <h4>Dan Quellhorst</h4>
557 <p>Creator @ dbbasic.com</p>
558 </div>
559 </div>
560 </div>
561 <div class="testimonial-card">
562 <p class="testimonial-text">"The Mythical Man-Month in reverse: AI eliminates communication overhead and enables perfect focus. Result: 1 person + AI = 100-person team output. What took 15 weeks now takes 2 days."</p>
563 <div class="testimonial-author">
564 <div class="avatar">DQ</div>
565 <div class="author-info">
566 <h4>Dan Quellhorst</h4>
567 <p>Creator @ dbbasic.com</p>
568 </div>
569 </div>
570 </div>
571 </div>
572 </div>
573 </div>
574
575 <!-- PRICING SECTION -->
576 <div class="section-divider">04 - Pricing</div>
577 <div class="pricing">
578 <div class="container">
579 <div class="section-header">
580 <div class="eyebrow">Pricing</div>
581 <h2>Simple, transparent pricing</h2>
582 <p class="section-description">
583 Start free, upgrade when you need more. No hidden fees.
584 </p>
585 </div>
586 <div class="pricing-grid">
587 <div class="pricing-card">
588 <h3>Starter</h3>
589 <div class="price">$0<span class="price-period">/mo</span></div>
590 <ul class="feature-list">
591 <li>All components</li>
592 <li>Community support</li>
593 <li>MIT license</li>
594 <li>Regular updates</li>
595 </ul>
596 <button class="btn btn-secondary" style="width: 100%; color: #374151; background: #f3f4f6;">Get Started</button>
597 </div>
598 <div class="pricing-card featured">
599 <div class="pricing-badge">Most Popular</div>
600 <h3>Pro</h3>
601 <div class="price">$49<span class="price-period">/mo</span></div>
602 <ul class="feature-list">
603 <li>Everything in Starter</li>
604 <li>Priority support</li>
605 <li>Advanced components</li>
606 <li>Figma design system</li>
607 <li>Custom themes</li>
608 </ul>
609 <button class="btn btn-primary" style="width: 100%;">Start Free Trial</button>
610 </div>
611 <div class="pricing-card">
612 <h3>Enterprise</h3>
613 <div class="price" style="font-size: 40px;">Custom</div>
614 <ul class="feature-list">
615 <li>Everything in Pro</li>
616 <li>Dedicated support</li>
617 <li>Custom components</li>
618 <li>SLA guarantee</li>
619 <li>Training sessions</li>
620 </ul>
621 <button class="btn btn-secondary" style="width: 100%; color: #374151; background: #f3f4f6;">Contact Sales</button>
622 </div>
623 </div>
624 </div>
625 </div>
626
627 <!-- STATS SECTION -->
628 <div class="section-divider">05 - Stats / Social Proof</div>
629 <div class="stats">
630 <div class="container">
631 <div class="section-header">
632 <div class="eyebrow">Trusted by thousands</div>
633 <h2>The numbers speak</h2>
634 </div>
635 <div class="stats-grid">
636 <div>
637 <div class="stat-number">50K+</div>
638 <div class="stat-label">Developers</div>
639 </div>
640 <div>
641 <div class="stat-number">2M+</div>
642 <div class="stat-label">Downloads</div>
643 </div>
644 <div>
645 <div class="stat-number">99.9%</div>
646 <div class="stat-label">Uptime</div>
647 </div>
648 <div>
649 <div class="stat-number">24/7</div>
650 <div class="stat-label">Support</div>
651 </div>
652 </div>
653 </div>
654 </div>
655
656 <!-- CTA SECTION -->
657 <div class="section-divider">06 - Call to Action</div>
658 <div class="cta-section">
659 <div class="container">
660 <h2>Ready to build better?</h2>
661 <p>Join thousands of developers building accessible, fast, and beautiful web applications.</p>
662 <div class="cta-group">
663 <button class="btn btn-primary">Get Started Free</button>
664 <button class="btn btn-secondary">Schedule Demo</button>
665 </div>
666 </div>
667 </div>
668
669 <!-- FOOTER NOTE -->
670 <div style="padding: 80px 24px; text-align: center; background: #f9fafb;">
671 <h2 style="margin-bottom: 16px; color: #111827;">Complete Marketing Component Collection</h2>
672 <p style="color: #6b7280; max-width: 700px; margin: 0 auto 32px; font-size: 18px; line-height: 1.7;">
673 Premium marketing sections for modern web applications.
674 All components are fully responsive, accessible (WCAG AAA), and framework-agnostic.
675 </p>
676 <div style="display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;">
677 <button class="btn btn-primary" onclick="window.location='demo-hero-premium-final.html'">View Premium Hero</button>
678 <button class="btn" style="background: #f3f4f6; color: #374151;" onclick="window.location='index.html'">Component Library</button>
679 </div>
680 </div>
681
682 <!-- DBBasic Usability Standards Overlay System -->
683 <script src="standards/standards-overlay.js"></script>
684
685 <!-- Standards Toolbar -->
686 <div class="standards-toolbar" id="standards-toolbar">
687 <div class="toolbar-header">
688 <div class="toolbar-title">📐 Usability Standards</div>
689 <button class="toolbar-collapse-btn" onclick="toggleToolbar()">−</button>
690 </div>
691
692 <div class="toolbar-buttons">
693 <button class="toolbar-btn" onclick="window.standardsOverlay.toggle('grid')" data-type="grid">
694 <span class="toolbar-btn-icon">📊</span>
695 <span>Layout Grid</span>
696 </button>
697
698 <button class="toolbar-btn" onclick="window.standardsOverlay.toggle('touch')" data-type="touch">
699 <span class="toolbar-btn-icon">👆</span>
700 <span>Touch Zones</span>
701 </button>
702
703 <button class="toolbar-btn" onclick="window.standardsOverlay.toggle('spacing')" data-type="spacing">
704 <span class="toolbar-btn-icon">📏</span>
705 <span>Spacing</span>
706 </button>
707
708 <button class="toolbar-btn" onclick="window.standardsOverlay.toggle('flow')" data-type="flow">
709 <span class="toolbar-btn-icon">👁️</span>
710 <span>Visual Flow</span>
711 </button>
712
713 <button class="toolbar-btn" onclick="window.standardsOverlay.toggle('targets')" data-type="targets">
714 <span class="toolbar-btn-icon">🎯</span>
715 <span>Touch Targets</span>
716 </button>
717
718 <button class="toolbar-btn" onclick="window.standardsOverlay.toggle('boundaries')" data-type="boundaries">
719 <span class="toolbar-btn-icon">📦</span>
720 <span>Boundaries</span>
721 </button>
722 </div>
723
724 <div class="toolbar-actions">
725 <button class="toolbar-action-btn" onclick="window.standardsOverlay.showAll()">
726 Show All
727 </button>
728 <button class="toolbar-action-btn" onclick="window.standardsOverlay.hideAll()">
729 Hide All
730 </button>
731 </div>
732 </div>
733
734 <!-- Keyboard Shortcut Hint -->
735 <div class="standards-keyboard-hint" id="keyboard-hint">
736 Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>S</kbd> to toggle overlays
737 </div>
738
739 <!-- Toolbar Interaction Script -->
740 <script>
741 // Toggle toolbar collapsed state
742 function toggleToolbar() {
743 const toolbar = document.getElementById('standards-toolbar');
744 const btn = toolbar.querySelector('.toolbar-collapse-btn');
745 toolbar.classList.toggle('collapsed');
746 btn.textContent = toolbar.classList.contains('collapsed') ? '+' : '−';
747 }
748
749 // Update button active states when overlays change
750 function updateToolbarButtons() {
751 const buttons = document.querySelectorAll('.toolbar-btn[data-type]');
752 buttons.forEach(btn => {
753 const type = btn.dataset.type;
754 if (window.standardsOverlay && window.standardsOverlay.activeOverlays.has(type)) {
755 btn.classList.add('active');
756 } else {
757 btn.classList.remove('active');
758 }
759 });
760 }
761
762 // Override toggle method to update button states
763 if (window.standardsOverlay) {
764 const originalToggle = window.standardsOverlay.toggle.bind(window.standardsOverlay);
765 window.standardsOverlay.toggle = function(type) {
766 originalToggle(type);
767 updateToolbarButtons();
768 };
769
770 const originalShowAll = window.standardsOverlay.showAll.bind(window.standardsOverlay);
771 window.standardsOverlay.showAll = function() {
772 originalShowAll();
773 updateToolbarButtons();
774 };
775
776 const originalHideAll = window.standardsOverlay.hideAll.bind(window.standardsOverlay);
777 window.standardsOverlay.hideAll = function() {
778 originalHideAll();
779 updateToolbarButtons();
780 };
781 }
782
783 // Show keyboard hint briefly on page load
784 window.addEventListener('load', () => {
785 const hint = document.getElementById('keyboard-hint');
786 setTimeout(() => {
787 hint.classList.add('show');
788 setTimeout(() => {
789 hint.classList.remove('show');
790 }, 3000);
791 }, 1000);
792 });
793
794 // Show hint again when user presses Ctrl or Shift
795 let ctrlPressed = false;
796 let shiftPressed = false;
797
798 document.addEventListener('keydown', (e) => {
799 if (e.ctrlKey) ctrlPressed = true;
800 if (e.shiftKey) shiftPressed = true;
801
802 if (ctrlPressed && shiftPressed) {
803 document.getElementById('keyboard-hint').classList.add('show');
804 }
805 });
806
807 document.addEventListener('keyup', (e) => {
808 if (!e.ctrlKey) ctrlPressed = false;
809 if (!e.shiftKey) shiftPressed = false;
810
811 if (!ctrlPressed || !shiftPressed) {
812 document.getElementById('keyboard-hint').classList.remove('show');
813 }
814 });
815 </script>
816</body>
817</html>