|
17 | 17 | <link rel="stylesheet" href="https://assets.21no.de/css/buttons.css" /> |
18 | 18 | <link rel="stylesheet" href="https://assets.21no.de/css/cards.css" /> |
19 | 19 | <link rel="stylesheet" href="https://assets.21no.de/css/footer.css" /> |
| 20 | + <style> |
| 21 | + /* === go-vector specific styles === */ |
| 22 | + |
| 23 | + /* Nav: icon badge */ |
| 24 | + .icon { |
| 25 | + display: inline-flex; align-items: center; justify-content: center; |
| 26 | + width: 28px; height: 28px; border-radius: var(--radius-sm); |
| 27 | + background: var(--accent-subtle); color: var(--accent); |
| 28 | + font-family: var(--font-mono); font-size: 13px; font-weight: 700; |
| 29 | + } |
| 30 | + |
| 31 | + /* Stats bar */ |
| 32 | + .stats { display: flex; gap: 32px; justify-content: center; margin-top: 40px; flex-wrap: wrap; } |
| 33 | + .stat { text-align: center; } |
| 34 | + .stat .num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--text-primary); } |
| 35 | + .stat .label { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; } |
| 36 | + |
| 37 | + /* Grid */ |
| 38 | + .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } |
| 39 | + @media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } } |
| 40 | + |
| 41 | + /* Card icon colors */ |
| 42 | + .card-icon.blue { background: var(--accent-subtle); color: var(--accent); } |
| 43 | + .card-icon.orange { background: rgba(251,146,60,0.1); color: #fb923c; } |
| 44 | + |
| 45 | + /* Use case sections */ |
| 46 | + .usecase { |
| 47 | + display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; |
| 48 | + margin-top: 48px; |
| 49 | + } |
| 50 | + .usecase:first-child { margin-top: 0; } |
| 51 | + @media (max-width: 768px) { .usecase { grid-template-columns: 1fr; gap: 24px; } } |
| 52 | + .code-mini { |
| 53 | + background: var(--bg-code); border: 1px solid var(--border-card); |
| 54 | + border-radius: var(--radius-lg); overflow: auto; padding: 20px; |
| 55 | + font-size: 13px; line-height: 1.6; |
| 56 | + } |
| 57 | + .code-mini pre { font-family: var(--font-mono); } |
| 58 | + |
| 59 | + /* Performance table */ |
| 60 | + .perf-table { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 14px; } |
| 61 | + .perf-table th { |
| 62 | + text-align: left; padding: 12px 16px; |
| 63 | + font-family: var(--font-mono); font-size: 11px; font-weight: 500; |
| 64 | + color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px; |
| 65 | + border-bottom: 1px solid var(--border-subtle); |
| 66 | + } |
| 67 | + .perf-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); } |
| 68 | + .perf-table .name { font-family: var(--font-mono); color: var(--text-primary); font-size: 13px; } |
| 69 | + .perf-table .time { color: var(--text-primary); } |
| 70 | + .perf-table .alloc { color: var(--green); } |
| 71 | + |
| 72 | + /* Security card */ |
| 73 | + .security-row { |
| 74 | + display: flex; align-items: center; gap: 12px; |
| 75 | + padding: 12px 0; border-bottom: 1px solid var(--border-subtle); |
| 76 | + font-size: 14px; |
| 77 | + } |
| 78 | + .security-row:last-child { border-bottom: none; } |
| 79 | + .badge { |
| 80 | + display: inline-flex; align-items: center; |
| 81 | + font-family: var(--font-mono); font-size: 10px; font-weight: 600; |
| 82 | + padding: 2px 8px; border-radius: 4px; letter-spacing: 0.3px; |
| 83 | + flex-shrink: 0; |
| 84 | + } |
| 85 | + .badge.g { background: var(--green-subtle); color: var(--green); } |
| 86 | + .badge.y { background: rgba(245,217,10,0.1); color: #f5d90a; } |
| 87 | + |
| 88 | + /* Install box */ |
| 89 | + .install-box { |
| 90 | + display: inline-flex; align-items: center; gap: 12px; |
| 91 | + background: var(--bg-card); border: 1px solid var(--border-card); |
| 92 | + border-radius: var(--radius-lg); padding: 16px 24px; |
| 93 | + font-size: 15px; font-family: var(--font-mono); |
| 94 | + } |
| 95 | + .install-box .prompt { color: var(--green); font-weight: 600; } |
| 96 | + .install-box code { color: var(--text-primary); } |
| 97 | + |
| 98 | + /* Syntax highlighting */ |
| 99 | + .kw { color: #c084fc; } |
| 100 | + .fn { color: #38bdf8; } |
| 101 | + .str { color: #3dd68c; } |
| 102 | + .type { color: #f472b6; } |
| 103 | + .pkg { color: #9b9ba3; } |
| 104 | + .cmt { color: #6b6b75; font-style: italic; } |
| 105 | + |
| 106 | + /* Code blocks */ |
| 107 | + .code-block pre { |
| 108 | + padding: 20px; overflow-x: auto; font-size: 13px; line-height: 1.7; |
| 109 | + color: var(--text-primary); |
| 110 | + } |
| 111 | + </style> |
20 | 112 | </head> |
21 | 113 | <body> |
22 | 114 |
|
|
0 commit comments