From 7d10fd78b83c467b6300be222d14b2e9b66da9ac Mon Sep 17 00:00:00 2001 From: Francois Best Date: Tue, 3 Sep 2024 10:59:17 +0200 Subject: [PATCH 1/2] chore: Add SVG wordmark --- packages/docs/package.json | 1 + packages/docs/src/components/logo.tsx | 32 +++++++++++---------------- packages/res/package.json | 10 +++++++++ packages/res/wordmark.dark.svg | 10 +++++++++ packages/res/wordmark.light.svg | 10 +++++++++ packages/res/wordmark.svg | 13 +++++++++++ pnpm-lock.yaml | 2 ++ 7 files changed, 59 insertions(+), 19 deletions(-) create mode 100644 packages/res/package.json create mode 100644 packages/res/wordmark.dark.svg create mode 100644 packages/res/wordmark.light.svg create mode 100644 packages/res/wordmark.svg diff --git a/packages/docs/package.json b/packages/docs/package.json index 1448b1fe5..b8df4f4c1 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -38,6 +38,7 @@ "react-dom": "^18.3.1", "recharts": "^2.12.7", "remark-smartypants": "^2.1.0", + "res": "workspace:*", "semver": "^7.6.3", "server-only": "^0.0.1", "tailwind-merge": "^2.5.2", diff --git a/packages/docs/src/components/logo.tsx b/packages/docs/src/components/logo.tsx index 5e05df7b7..2c49bd12f 100644 --- a/packages/docs/src/components/logo.tsx +++ b/packages/docs/src/components/logo.tsx @@ -1,23 +1,17 @@ -import { cn } from '../lib/utils' +import Image from 'next/image' +import Wordmark from 'res/wordmark.svg' +import { cn } from 'src/lib/utils' -export function NuqsWordmark({ - className, - ...props -}: React.ComponentProps<'span'>) { +export function NuqsWordmark({ className }: React.ComponentProps<'img'>) { return ( - - ? - n - = - u - & - q - = - s - + <> + nuqs + nuqs + ) } diff --git a/packages/res/package.json b/packages/res/package.json new file mode 100644 index 000000000..0e8c0eea4 --- /dev/null +++ b/packages/res/package.json @@ -0,0 +1,10 @@ +{ + "name": "res", + "version": "0.0.0-internal", + "private": true, + "files": [ + "./wordmark.svg", + "./wordmark.light.svg", + "./wordmark.dark.svg" + ] +} diff --git a/packages/res/wordmark.dark.svg b/packages/res/wordmark.dark.svg new file mode 100644 index 000000000..8e53bef64 --- /dev/null +++ b/packages/res/wordmark.dark.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/packages/res/wordmark.light.svg b/packages/res/wordmark.light.svg new file mode 100644 index 000000000..0ebf2b5c2 --- /dev/null +++ b/packages/res/wordmark.light.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/packages/res/wordmark.svg b/packages/res/wordmark.svg new file mode 100644 index 000000000..b3f40d6d6 --- /dev/null +++ b/packages/res/wordmark.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cf01edda6..6497db731 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -264,6 +264,8 @@ importers: specifier: ^1.6.0 version: 1.6.0(@types/node@20.16.3)(terser@5.31.6) + packages/res: {} + packages/scripts: dependencies: '@mailpace/mailpace.js': From a6c6426bf8aa62e4a47b87484f1d9dc40e33e63c Mon Sep 17 00:00:00 2001 From: Francois Best Date: Tue, 3 Sep 2024 11:01:38 +0200 Subject: [PATCH 2/2] chore: Fix lockfile --- pnpm-lock.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6497db731..06dea00fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,6 +122,9 @@ importers: remark-smartypants: specifier: ^2.1.0 version: 2.1.0 + res: + specifier: workspace:* + version: link:../res semver: specifier: ^7.6.3 version: 7.6.3