command & style tweaks

This commit is contained in:
Cade Scroggins
2022-12-02 22:10:12 -08:00
parent 0129f39542
commit 5b204bb0d2
+50 -29
View File
@@ -32,6 +32,10 @@
b: { b: {
name: 'Dribbble', name: 'Dribbble',
searchTemplate: '/search/{}', searchTemplate: '/search/{}',
suggestions: [
'b/shots/popular/product-design',
'b/shots/popular/web-design',
],
url: 'https://dribbble.com/shots/popular', url: 'https://dribbble.com/shots/popular',
}, },
c: { c: {
@@ -48,24 +52,29 @@
}, },
f: { f: {
name: 'Figma', name: 'Figma',
suggestions: [
'f/file/new',
'f/file/new?editor_type=whiteboard',
'f/community',
],
url: 'https://www.figma.com/files/recent', url: 'https://www.figma.com/files/recent',
}, },
g: { g: {
name: 'GitHub', name: 'GitHub',
searchTemplate: '/search?q={}', searchTemplate: '/search?q={}',
suggestions: ['g/trending', 'g/xvvvyz/tilde', 'gist.github.com'], suggestions: [
'g/trending',
'g/topics',
'gist.github.com',
'g/xvvvyz/tilde',
],
url: 'https://github.com', url: 'https://github.com',
}, },
h: { h: {
name: 'Hypem', name: 'Hypem',
searchTemplate: '/search/{}', searchTemplate: '/search/{}',
suggestions: ['h/popular', 'h/popular/lastweek', 'h/tags'], suggestions: ['h/stack', 'h/popular', 'h/popular/lastweek', 'h/tags'],
url: 'https://hypem.com/latest', url: 'https://hypem.com/popular',
},
i: {
name: 'Inbox',
suggestions: ['i/u/1/inbox', 'i/u/2/inbox'],
url: 'https://mail.proton.me/u/0/inbox',
}, },
k: { k: {
name: 'Keep', name: 'Keep',
@@ -76,16 +85,20 @@
l: { l: {
name: 'LinkedIn', name: 'LinkedIn',
searchTemplate: '/search/results/all/?keywords={}', searchTemplate: '/search/results/all/?keywords={}',
url: 'https://www.linkedin.com', suggestions: ['l/in/me/', 'l/messaging', 'l/jobs'],
url: 'https://www.linkedin.com/feed',
}, },
m: { m: {
name: 'Mail', name: 'Mail',
searchTemplate: '/mail/u/0/#search/{}', suggestions: ['m/u/1/inbox', 'm/u/2/inbox'],
suggestions: ['m/mail/u/1/#inbox', 'm/mail/u/2/#inbox'], url: 'https://mail.proton.me/u/0/inbox',
url: 'https://mail.google.com/mail/u/0/#inbox',
}, },
n: { n: {
name: 'Notion', name: 'Notion',
suggestions: [
'n/03aac6c591aa435b90f5c9b007409af3',
'n/f47d92b8272442f5ad13e4eb3288778f',
],
url: 'https://www.notion.so', url: 'https://www.notion.so',
}, },
o: { o: {
@@ -96,6 +109,12 @@
], ],
url: 'https://discord.com/channels/@me', url: 'https://discord.com/channels/@me',
}, },
p: {
name: 'Product Hunt',
searchTemplate: '/search?q={}',
suggestions: ['p/products', 'p/topics', 'p/time-travel'],
url: 'https://www.producthunt.com',
},
r: { r: {
name: 'Reddit', name: 'Reddit',
searchTemplate: '/search?q={}', searchTemplate: '/search?q={}',
@@ -110,22 +129,29 @@
t: { t: {
name: 'Twitter', name: 'Twitter',
searchTemplate: '/search?q={}', searchTemplate: '/search?q={}',
suggestions: [
't/explore/tabs/trending',
't/hashtag/buildinpublic?f=live',
],
url: 'https://twitter.com/home', url: 'https://twitter.com/home',
}, },
u: { u: {
name: 'Supabase', name: 'Supabase',
suggestions: ['u/project/xrncrutshmuifkzkexwb/editor'], suggestions: [
url: 'https://app.supabase.com', 'u/project/xrncrutshmuifkzkexwb/editor',
'u/project/mmriwtmfzzavgecpsykt/editor',
],
url: 'https://app.supabase.com/projects',
}, },
v: { v: {
name: 'Vercel', name: 'Vercel',
suggestions: ['v/xvvvyz/lliist/deployments'], suggestions: ['v/dashboard/usage', 'v/xvvvyz/llist/deployments'],
url: 'https://vercel.com/dashboard', url: 'https://vercel.com/dashboard',
}, },
y: { y: {
name: 'YouTube', name: 'YouTube',
searchTemplate: '/results?search_query={}', searchTemplate: '/results?search_query={}',
suggestions: ['y/feed/trending'], suggestions: ['y/trending', 'y/music', 'y/gaming', 'y/sports'],
url: 'https://youtube.com/feed/subscriptions', url: 'https://youtube.com/feed/subscriptions',
}, },
'?': { '?': {
@@ -183,16 +209,12 @@
justify-content: center; justify-content: center;
list-style: none; list-style: none;
margin: 0 auto; margin: 0 auto;
max-width: 53rem; max-width: 55rem;
padding: 0; padding: 0;
} }
.commands:hover {
color: var(--color-text-subtle);
}
.command { .command {
color: inherit; color: var(--color-text-subtle);
display: flex; display: flex;
outline: 0; outline: 0;
padding: var(--space-1); padding: var(--space-1);
@@ -200,18 +222,17 @@
transition: color var(--transition-speed); transition: color var(--transition-speed);
} }
.command:hover {
color: var(--color-text);
}
.key { .key {
color: var(--color-text-subtle); text-align: center;
transition: inherit; width: 1ch;
} }
.name { .name {
margin-left: var(--space-1); margin-left: var(--space-1);
transition: inherit;
}
.command:hover :where(.key, .name) {
color: var(--color-text);
} }
</style> </style>
<nav> <nav>