Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
94 lines (89 loc) · 4.28 KB
/
Copy pathindex.html
File metadata and controls
94 lines (89 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Cmdlette - Command Palette Micro-Interaction</title>
<meta
name="description"
content="Cmdlette is a polished command palette micro-interaction with fast search, smooth filtering, and keyboard-led navigation."
/>
<meta name="theme-color" content="#f4f4f5" />
<link rel="canonical" href="https://cmdlette.vercel.app/" />
<link rel="icon" href="/assets/favicon.svg" type="image/svg+xml" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://cmdlette.vercel.app/" />
<meta property="og:title" content="Cmdlette - Command Palette Micro-Interaction" />
<meta
property="og:description"
content="A polished command palette micro-interaction with fast search, smooth filtering, and keyboard-led flow."
/>
<meta property="og:image" content="https://cmdlette.vercel.app/assets/thumbnail.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Cmdlette command palette preview" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Cmdlette - Command Palette Micro-Interaction" />
<meta
name="twitter:description"
content="A polished command palette micro-interaction with fast search, smooth filtering, and keyboard-led flow."
/>
<meta name="twitter:image" content="https://cmdlette.vercel.app/assets/thumbnail.png" />
<meta name="twitter:image:alt" content="Cmdlette command palette preview" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main class="stage" aria-label="Command palette demo">
<section id="closed-screen" class="closed-screen" aria-label="Command palette closed">
<button id="closed-trigger" class="closed-trigger" type="button" aria-label="Open command palette with Shift F">
<span class="icon closed-trigger__icon" data-icon="arrow-big-up" aria-hidden="true"></span>
<span class="closed-trigger__letter">F</span>
</button>
<p class="closed-hint">
Press <strong>Shift + F</strong> to begin a new search
</p>
</section>
<section class="palette" aria-label="Command palette">
<div class="palette__header">
<span class="icon icon--search" data-icon="search" aria-hidden="true"></span>
<input
id="command-search"
class="search-input"
type="search"
autocomplete="off"
spellcheck="false"
placeholder="Start typing here..."
aria-label="Search commands"
/>
<button id="clear-search" class="search-clear" type="button" aria-label="Clear search" hidden>
<span class="icon" data-icon="x" aria-hidden="true"></span>
</button>
</div>
<div id="results" class="palette__results" role="listbox" aria-label="Command results"></div>
<div class="palette__footer" aria-hidden="true">
<div class="helper-group">
<span class="keycap"><span class="icon" data-icon="arrow-down-up"></span></span>
<span>Select</span>
</div>
<div class="helper-group">
<span class="keycap"><span class="icon" data-icon="corner-down-left"></span></span>
<span>Open</span>
</div>
<div class="helper-group">
<span class="keycap keycap--wide"><span class="icon" data-icon="option"></span><strong>L</strong></span>
<span>Copy link</span>
</div>
<div class="helper-group">
<span class="keycap keycap--text"><strong>ESC</strong></span>
<span>Close</span>
</div>
</div>
</section>
<div id="toast-region" class="toast-region" aria-live="polite" aria-atomic="true"></div>
</main>
<script src="script.js"></script>
</body>
</html>