Skip to content

Commit 809f73a

Browse files
committed
fix: add cmd palette demo video and screenshots
1 parent 6a6a879 commit 809f73a

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

app/pages/blog/release/0.8.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,22 @@ Today we continue to improve [npmx.dev](https://npmx.dev). npmx 0.8 includes new
2424

2525
npmx now has a rich command palette for efficient, keyboard-driven access to every page, toggle, and action across the website. Open it by hitting ⌘ K on macOS or Ctrl+K on Windows/Linux, or by clicking the new “jump to…” item in the header.
2626

27-
TODO: demo
27+
<figure>
28+
<video
29+
src="/blog/release/0.8/cmd-palette-demo.mp4"
30+
poster="/blog/release/0.8/cmd-palette-demo-cover.png"
31+
controls
32+
autoplay
33+
loop
34+
muted
35+
playsinline
36+
preload="metadata"
37+
aria-label="Screen recording of npmx's command palette in action: opening it with Cmd+K, toggling dark/light theme, switching languages, navigating to a package page, browsing source files, switching package versions, and searching for a new package, all without leaving the keyboard."
38+
/>
39+
<figcaption>
40+
A screen recording demonstrating npmx's command palette. The video shows: the npmx home page in dark mode; opening the command palette with Cmd+K to reveal navigation, connections, and settings sections; using the palette to toggle to light mode, then back to dark mode; using the palette to switch the interface language to Vietnamese and back to English; navigating to the Vue package page and using the palette to access package actions like "download tarball" and "copy package name"; browsing into the package's source files in the built-in code viewer; using the palette to switch between Vue versions from a list filtered by a semantic versioning specifier; and finally typing "tinyexec" into the palette to search for a different package. Throughout, individual key presses are shown in an on-screen overlay.
41+
</figcaption>
42+
</figure>
2843

2944
There are already 68 total commands across the website, but you’ll always see just what’s relevant to your current view:
3045

@@ -35,13 +50,15 @@ There are already 68 total commands across the website, but you’ll always see
3550

3651
You’ll always see a fallback option to submit your input as a search:
3752

38-
![command palette fallback showing search for a package name](/blog/command-palette-fallback.png)
53+
![Light-themed command palette interface with a title ‘command palette’ and subtitle about
54+
navigating npm packages. A focused input field contains ‘tinylibs’. Below it, a single option
55+
appears with a magnifying glass icon and the text ‘search for “tinylibs”](/blog/release/0.8/cmd-palette-search-fallback.png)
3956

4057
Oh, and one more thing.
4158

4259
On a package page, type or paste any version or [SemVer range specifier](https://docs.npmx.dev/guide/semver-ranges) and you’ll immediately see matching versions of that package.
4360

44-
![command palette showing package versions](/blog/command-palette-versions.png)
61+
![Dark-themed command palette modal titled ‘command palette’ with a subtitle about navigating npm packages. A search input contains ‘~1.0.1’. Below, a list labeled ‘Versions of tinyexec’ shows selectable versions: 1.0.4, 1.0.3, 1.0.2, and 1.0.1.](/blog/release/0.8/cmd-palette-semver.png)
4562

4663
The command palette is intended to be accessible to everyone, with a full, rich experience on mobile and desktop, keyboard, mouse, touch screens, and screen readers. This wasn't a regular tech conference. We were very impressed by the quality of the talks and conversations.
4764

0 commit comments

Comments
 (0)