Config-gated “Press X → Modal” demo for the landing page.
Location: src/components/ui/ShortcutDemo.tsx
Behaviour
- Renders nothing when
config.demoShortcut.enabledisfalse - Fixed hint chip (desktop): Press
Sto see the Security stack - Keydown toggles the modal; ignored while typing in inputs; ignores modifiers
- Modal body: honest 7-layer security checklist (not a fake leaderboard)
- ESC / Close / press
Sagain closes
Config
demoShortcut: {
enabled: true,
key: "s",
hintLabel: "Security stack",
modalTitle: "ShipSafe security stack",
},
Customise
- Change
key/ labels inconfig.ts - Replace the modal body in
ShortcutDemo.tsxwith your product content - Or set
enabled: falseand mountKeyboardHint+Modalyourself