|
60 | 60 | <a href="/" class="header-logo">OpenBoot</a> |
61 | 61 | <div class="header-right"> |
62 | 62 | <ThemeToggle /> |
63 | | - {#if $auth.loading} |
64 | | - <span class="loading-text">...</span> |
65 | | - {:else if $auth.user} |
66 | | - <Button href="/dashboard" variant="secondary"> |
67 | | - <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> |
68 | | - <rect x="3" y="3" width="7" height="7" /><rect x="14" y="3" width="7" height="7" /> |
69 | | - <rect x="14" y="14" width="7" height="7" /><rect x="3" y="14" width="7" height="7" /> |
70 | | - </svg> |
71 | | - Dashboard |
72 | | - </Button> |
73 | | - {:else} |
74 | | - <Button href="/api/auth/login" variant="secondary"> |
75 | | - <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"> |
76 | | - <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" /> |
77 | | - </svg> |
78 | | - Login |
79 | | - </Button> |
80 | | - {/if} |
81 | 63 | </div> |
82 | 64 | </div> |
83 | 65 | </header> |
|
116 | 98 | </div> |
117 | 99 |
|
118 | 100 | <div class="cta-buttons"> |
119 | | - <a href="#install" class="btn-get-started" onclick={(e) => { e.preventDefault(); document.getElementById('install')?.scrollIntoView({ behavior: 'smooth' }); }}> |
120 | | - Get Started |
| 101 | + {#if $auth.loading} |
| 102 | + <span class="btn-outlined btn-placeholder">...</span> |
| 103 | + {:else if $auth.user} |
| 104 | + <a href="/dashboard" class="btn-outlined"> |
| 105 | + <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> |
| 106 | + <rect x="3" y="3" width="7" height="7" /><rect x="14" y="3" width="7" height="7" /> |
| 107 | + <rect x="14" y="14" width="7" height="7" /><rect x="3" y="14" width="7" height="7" /> |
| 108 | + </svg> |
| 109 | + Dashboard |
| 110 | + </a> |
| 111 | + {:else} |
| 112 | + <a href="/api/auth/login" class="btn-outlined"> |
| 113 | + <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"> |
| 114 | + <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" /> |
| 115 | + </svg> |
| 116 | + Sign in |
| 117 | + </a> |
| 118 | + {/if} |
| 119 | + <a href="/docs" class="btn-outlined"> |
| 120 | + <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> |
| 121 | + <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/><polyline points="10 9 9 9 8 9"/> |
| 122 | + </svg> |
| 123 | + Docs |
121 | 124 | </a> |
122 | | - <a href="https://github.com/openbootdotdev/openboot" class="btn-github" target="_blank" rel="noopener"> |
123 | | - <svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"> |
| 125 | + <a href="https://github.com/openbootdotdev/openboot" class="btn-outlined" target="_blank" rel="noopener"> |
| 126 | + <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"> |
124 | 127 | <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" /> |
125 | 128 | </svg> |
126 | 129 | View on GitHub |
|
472 | 475 | margin-bottom: 16px; |
473 | 476 | } |
474 | 477 |
|
475 | | - .btn-get-started { |
| 478 | + .btn-outlined { |
476 | 479 | display: inline-flex; |
477 | 480 | align-items: center; |
478 | 481 | gap: 8px; |
479 | | - padding: 10px 24px; |
480 | | - border-radius: 8px; |
481 | | - font-size: 0.9rem; |
482 | | - font-weight: 600; |
483 | | - cursor: pointer; |
484 | | - text-decoration: none; |
485 | | - transition: all 0.2s; |
486 | | - background: var(--accent); |
487 | | - color: #000; |
488 | | - border: none; |
489 | | - } |
490 | | -
|
491 | | - .btn-get-started:hover { |
492 | | - background: var(--accent-hover); |
493 | | - transform: translateY(-1px); |
494 | | - box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); |
495 | | - } |
496 | | -
|
497 | | - .btn-github { |
498 | | - display: inline-flex; |
499 | | - align-items: center; |
500 | | - gap: 8px; |
501 | | - padding: 10px 20px; |
| 482 | + padding: 10px 22px; |
502 | 483 | border-radius: 8px; |
503 | 484 | font-size: 0.9rem; |
504 | 485 | font-weight: 500; |
|
510 | 491 | border: 1px solid var(--border); |
511 | 492 | } |
512 | 493 |
|
513 | | - .btn-github:hover { |
| 494 | + .btn-outlined:hover { |
514 | 495 | color: var(--text-primary); |
515 | 496 | border-color: var(--border-hover); |
516 | 497 | background: var(--bg-tertiary); |
517 | 498 | } |
518 | 499 |
|
| 500 | + .btn-placeholder { |
| 501 | + cursor: default; |
| 502 | + opacity: 0.5; |
| 503 | + } |
| 504 | +
|
519 | 505 | .star-badge { |
520 | 506 | display: inline-flex; |
521 | 507 | align-items: center; |
|
0 commit comments