Skip to content

Commit 7d10fd7

Browse files
committed
chore: Add SVG wordmark
1 parent 1850ca6 commit 7d10fd7

File tree

7 files changed

+59
-19
lines changed

7 files changed

+59
-19
lines changed

packages/docs/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"react-dom": "^18.3.1",
3939
"recharts": "^2.12.7",
4040
"remark-smartypants": "^2.1.0",
41+
"res": "workspace:*",
4142
"semver": "^7.6.3",
4243
"server-only": "^0.0.1",
4344
"tailwind-merge": "^2.5.2",

packages/docs/src/components/logo.tsx

+13-19
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
import { cn } from '../lib/utils'
1+
import Image from 'next/image'
2+
import Wordmark from 'res/wordmark.svg'
3+
import { cn } from 'src/lib/utils'
24

3-
export function NuqsWordmark({
4-
className,
5-
...props
6-
}: React.ComponentProps<'span'>) {
5+
export function NuqsWordmark({ className }: React.ComponentProps<'img'>) {
76
return (
8-
<span
9-
aria-label="nuqs"
10-
className={cn('whitespace-nowrap', className)}
11-
{...props}
12-
>
13-
<span className="font-light text-zinc-300 dark:text-zinc-700">?</span>
14-
<span className="font-bold">n</span>
15-
<span className="font-light text-zinc-300 dark:text-zinc-700">=</span>
16-
<span className="font-bold">u</span>
17-
<span className="font-light text-zinc-300 dark:text-zinc-700">&</span>
18-
<span className="font-bold">q</span>
19-
<span className="font-light text-zinc-300 dark:text-zinc-700">=</span>
20-
<span className="font-bold">s</span>
21-
</span>
7+
<>
8+
<Image
9+
src={Wordmark}
10+
role="presentation"
11+
alt="nuqs"
12+
className={cn('h-[1em] w-auto', className)}
13+
/>
14+
<span className="sr-only">nuqs</span>
15+
</>
2216
)
2317
}

packages/res/package.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "res",
3+
"version": "0.0.0-internal",
4+
"private": true,
5+
"files": [
6+
"./wordmark.svg",
7+
"./wordmark.light.svg",
8+
"./wordmark.dark.svg"
9+
]
10+
}

packages/res/wordmark.dark.svg

+10
Loading

packages/res/wordmark.light.svg

+10
Loading

packages/res/wordmark.svg

+13
Loading

pnpm-lock.yaml

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)