|
| 1 | +--- |
| 2 | +// Static mockup of the command palette — not interactive, just a visual preview |
| 3 | +--- |
| 4 | + |
| 5 | +<div class="not-prose my-8 overflow-hidden rounded-xl border border-zinc-200 dark:border-zinc-800"> |
| 6 | + <div class="flex items-center justify-between border-b border-zinc-200 bg-zinc-50 px-5 py-3 dark:border-zinc-800 dark:bg-zinc-900/50"> |
| 7 | + <div class="flex items-center gap-2"> |
| 8 | + <svg class="h-4 w-4 text-zinc-400" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> |
| 9 | + <circle cx="11" cy="11" r="8" /> |
| 10 | + <line x1="21" y1="21" x2="16.65" y2="16.65" /> |
| 11 | + </svg> |
| 12 | + <span class="text-sm font-semibold text-zinc-700 dark:text-zinc-300" style="font-family: var(--font-display);">Command Palette</span> |
| 13 | + </div> |
| 14 | + <span class="inline-flex items-center gap-1 text-xs text-zinc-400 dark:text-zinc-500"> |
| 15 | + Press |
| 16 | + <kbd class="rounded-md border border-zinc-200 bg-zinc-100 px-1.5 py-0.5 text-[10px] font-medium text-zinc-500 dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-400" style="font-family: var(--font-mono);">⌘K</kbd> |
| 17 | + to try it |
| 18 | + </span> |
| 19 | + </div> |
| 20 | + |
| 21 | + <!-- Fake command palette mockup --> |
| 22 | + <div class="bg-white/80 p-1 backdrop-blur dark:bg-[#0f1117]/80"> |
| 23 | + <!-- Search input --> |
| 24 | + <div class="relative"> |
| 25 | + <div class="pointer-events-none absolute left-4 top-1/2 -translate-y-1/2 text-zinc-300 dark:text-zinc-600"> |
| 26 | + <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 27 | + <circle cx="11" cy="11" r="8" /> |
| 28 | + <line x1="21" y1="21" x2="16.65" y2="16.65" /> |
| 29 | + </svg> |
| 30 | + </div> |
| 31 | + <div class="border-b border-zinc-100 px-4 py-3 pl-11 text-sm text-zinc-400 dark:border-zinc-800 dark:text-zinc-600"> |
| 32 | + Search posts, tags, authors... |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + |
| 36 | + <!-- Mock results --> |
| 37 | + <div class="px-2 py-2"> |
| 38 | + <div class="mb-1 px-3 pt-2 text-[11px] font-semibold uppercase tracking-widest text-zinc-400 dark:text-zinc-600" style="font-family: var(--font-display);">Go to</div> |
| 39 | + |
| 40 | + <div class="flex items-center gap-3 rounded-lg bg-[#306998]/[0.06] px-3 py-2.5 dark:bg-[#ffd43b]/[0.06]"> |
| 41 | + <svg class="h-4 w-4 flex-shrink-0 text-[#306998] dark:text-[#ffd43b]" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 42 | + <path d="M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z" /> |
| 43 | + <polyline points="9 22 9 12 15 12 15 22" /> |
| 44 | + </svg> |
| 45 | + <span class="text-sm font-medium text-zinc-800 dark:text-zinc-200">Go to Home</span> |
| 46 | + <span class="ml-auto inline-flex items-center gap-1"> |
| 47 | + <kbd class="inline-flex h-[18px] min-w-[20px] items-center justify-center rounded border border-zinc-200 bg-zinc-100 px-1 text-[10px] text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800/80 dark:text-zinc-500" style="font-family: var(--font-mono);">G</kbd> |
| 48 | + <span class="text-[10px] italic text-zinc-400 dark:text-zinc-600">then</span> |
| 49 | + <kbd class="inline-flex h-[18px] min-w-[20px] items-center justify-center rounded border border-zinc-200 bg-zinc-100 px-1 text-[10px] text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800/80 dark:text-zinc-500" style="font-family: var(--font-mono);">H</kbd> |
| 50 | + </span> |
| 51 | + </div> |
| 52 | + |
| 53 | + <div class="flex items-center gap-3 rounded-lg px-3 py-2.5 transition-colors"> |
| 54 | + <svg class="h-4 w-4 flex-shrink-0 text-zinc-300 dark:text-zinc-600" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 55 | + <path d="M2 3h6a4 4 0 014 4v14a3 3 0 00-3-3H2z" /> |
| 56 | + <path d="M22 3h-6a4 4 0 00-4 4v14a3 3 0 013-3h7z" /> |
| 57 | + </svg> |
| 58 | + <span class="text-sm text-zinc-600 dark:text-zinc-400">Go to Blog</span> |
| 59 | + <span class="ml-auto inline-flex items-center gap-1"> |
| 60 | + <kbd class="inline-flex h-[18px] min-w-[20px] items-center justify-center rounded border border-zinc-200 bg-zinc-100 px-1 text-[10px] text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800/80 dark:text-zinc-500" style="font-family: var(--font-mono);">G</kbd> |
| 61 | + <span class="text-[10px] italic text-zinc-400 dark:text-zinc-600">then</span> |
| 62 | + <kbd class="inline-flex h-[18px] min-w-[20px] items-center justify-center rounded border border-zinc-200 bg-zinc-100 px-1 text-[10px] text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800/80 dark:text-zinc-500" style="font-family: var(--font-mono);">B</kbd> |
| 63 | + </span> |
| 64 | + </div> |
| 65 | + |
| 66 | + <div class="flex items-center gap-3 rounded-lg px-3 py-2.5 transition-colors"> |
| 67 | + <svg class="h-4 w-4 flex-shrink-0 text-zinc-300 dark:text-zinc-600" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 68 | + <path d="M20.59 13.41l-7.17 7.17a2 2 0 01-2.83 0L2 12V2h10l8.59 8.59a2 2 0 010 2.82z" /> |
| 69 | + <line x1="7" y1="7" x2="7.01" y2="7" /> |
| 70 | + </svg> |
| 71 | + <span class="text-sm text-zinc-600 dark:text-zinc-400">Go to Tags</span> |
| 72 | + <span class="ml-auto inline-flex items-center gap-1"> |
| 73 | + <kbd class="inline-flex h-[18px] min-w-[20px] items-center justify-center rounded border border-zinc-200 bg-zinc-100 px-1 text-[10px] text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800/80 dark:text-zinc-500" style="font-family: var(--font-mono);">G</kbd> |
| 74 | + <span class="text-[10px] italic text-zinc-400 dark:text-zinc-600">then</span> |
| 75 | + <kbd class="inline-flex h-[18px] min-w-[20px] items-center justify-center rounded border border-zinc-200 bg-zinc-100 px-1 text-[10px] text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800/80 dark:text-zinc-500" style="font-family: var(--font-mono);">T</kbd> |
| 76 | + </span> |
| 77 | + </div> |
| 78 | + </div> |
| 79 | + |
| 80 | + <!-- Footer --> |
| 81 | + <div class="flex items-center gap-4 border-t border-zinc-100 px-4 py-2 dark:border-zinc-800"> |
| 82 | + <span class="flex items-center gap-1.5 text-[11px] text-zinc-400 dark:text-zinc-600"> |
| 83 | + <kbd class="inline-flex h-[18px] min-w-[20px] items-center justify-center rounded border border-zinc-200 bg-zinc-100 px-1 text-[10px] text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800/80 dark:text-zinc-500" style="font-family: var(--font-mono);">↑↓</kbd> |
| 84 | + Navigate |
| 85 | + </span> |
| 86 | + <span class="flex items-center gap-1.5 text-[11px] text-zinc-400 dark:text-zinc-600"> |
| 87 | + <kbd class="inline-flex h-[18px] min-w-[20px] items-center justify-center rounded border border-zinc-200 bg-zinc-100 px-1 text-[10px] text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800/80 dark:text-zinc-500" style="font-family: var(--font-mono);">↵</kbd> |
| 88 | + Open |
| 89 | + </span> |
| 90 | + <span class="flex items-center gap-1.5 text-[11px] text-zinc-400 dark:text-zinc-600"> |
| 91 | + <kbd class="inline-flex h-[18px] min-w-[20px] items-center justify-center rounded border border-zinc-200 bg-zinc-100 px-1 text-[10px] text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800/80 dark:text-zinc-500" style="font-family: var(--font-mono);">Esc</kbd> |
| 92 | + Close |
| 93 | + </span> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | +</div> |
0 commit comments