diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 8fdd954df..000000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -22 \ No newline at end of file diff --git a/apps/web/content/docs/dev/passkeys/index.mdx b/apps/web/content/docs/dev/passkeys/index.mdx index 4108bf0d9..547d133c3 100644 --- a/apps/web/content/docs/dev/passkeys/index.mdx +++ b/apps/web/content/docs/dev/passkeys/index.mdx @@ -1,7 +1,7 @@ --- title: Passkeys (WebAuthn) description: Let members sign in with Face ID, Touch ID, Windows Hello or a security key. Configure the RP ID and origins, run the migration, and learn how the WebAuthn ceremonies work in VitNode. -icon: Fingerprint +icon: FingerprintPattern --- import { Tab, Tabs } from "fumadocs-ui/components/tabs" diff --git a/apps/web/content/docs/dev/passkeys/meta.json b/apps/web/content/docs/dev/passkeys/meta.json index f6761fcec..f350bca0e 100644 --- a/apps/web/content/docs/dev/passkeys/meta.json +++ b/apps/web/content/docs/dev/passkeys/meta.json @@ -1,6 +1,6 @@ { "title": "Passkeys", "description": "Passwordless sign-in with WebAuthn passkeys - Face ID, Touch ID, Windows Hello or a security key", - "icon": "Fingerprint", + "icon": "FingerprintPattern", "pages": ["index", "using-passkeys", "admincp"] } diff --git a/apps/web/content/docs/dev/performance.mdx b/apps/web/content/docs/dev/performance.mdx index fdb65e648..92728897d 100644 --- a/apps/web/content/docs/dev/performance.mdx +++ b/apps/web/content/docs/dev/performance.mdx @@ -65,7 +65,7 @@ Heavy editors (like Tiptap) or complex modals should be lazy-loaded with `React. ```tsx title="plugins/blog/src/views/admin/article-editor.tsx" import React, { Suspense } from 'react' -import { Loader } from '@vitnode/core/components/ui/loader' +import { Spinner } from '@vitnode/core/components/ui/spinner' // [!code ++:6] const RichEditor = React.lazy(async () => @@ -75,7 +75,7 @@ const RichEditor = React.lazy(async () => ) export const ArticleEditor = (props) => ( - }> + }> ) diff --git a/apps/web/content/docs/ui/accordion.mdx b/apps/web/content/docs/ui/accordion.mdx index 75d60cf12..3050bf2e0 100644 --- a/apps/web/content/docs/ui/accordion.mdx +++ b/apps/web/content/docs/ui/accordion.mdx @@ -1,6 +1,7 @@ --- title: Accordion description: A component that allows users to expand and collapse sections of content. +icon: Rows3 --- ## Preview diff --git a/apps/web/content/docs/ui/alert-dialog.mdx b/apps/web/content/docs/ui/alert-dialog.mdx index 0b70f474d..69d6535ca 100644 --- a/apps/web/content/docs/ui/alert-dialog.mdx +++ b/apps/web/content/docs/ui/alert-dialog.mdx @@ -1,6 +1,7 @@ --- title: Alert Dialog description: Display important messages to users in a modal dialog. +icon: MessageSquareWarning --- A modal dialog that interrupts the user with important content and expects a @@ -30,10 +31,10 @@ import { Button } from '@vitnode/core/components/ui/button'; ```tsx - Show Dialog} /> + Delete account} /> - Are you absolutely sure? + Delete your account? This action cannot be undone. This will permanently delete your account and remove your data from our servers. @@ -41,7 +42,7 @@ import { Button } from '@vitnode/core/components/ui/button'; Cancel - Continue + Delete account diff --git a/apps/web/content/docs/ui/alert.mdx b/apps/web/content/docs/ui/alert.mdx index 9cf761fb7..7cd4b260c 100644 --- a/apps/web/content/docs/ui/alert.mdx +++ b/apps/web/content/docs/ui/alert.mdx @@ -1,6 +1,7 @@ --- title: Alert description: Display a short, important message to users. +icon: CircleAlert --- ## Preview diff --git a/apps/web/content/docs/ui/aspect-ratio.mdx b/apps/web/content/docs/ui/aspect-ratio.mdx new file mode 100644 index 000000000..d1a9f4ef9 --- /dev/null +++ b/apps/web/content/docs/ui/aspect-ratio.mdx @@ -0,0 +1,67 @@ +--- +title: Aspect Ratio +description: Keep images, videos and embeds at the right shape, whatever the width. +icon: Ratio +--- + +## Preview + + + +## Usage + +```ts +import { AspectRatio } from '@vitnode/core/components/ui/aspect-ratio' +``` + +```tsx + + A mountain at sunrise + +``` + +The box takes the full width it is given and works out its height from +`ratio`, so the page doesn't jump around while the image loads. Give the child +`size-full` and `object-cover` to fill the box without stretching. + +## Common ratios + +| Ratio | Good for | +| -------- | ------------------------------ | +| `16 / 9` | Videos, hero images, banners | +| `4 / 3` | Photos, product shots | +| `1` | Avatars, thumbnails, galleries | +| `9 / 16` | Phone screenshots, stories | + +## Video embed + +```tsx + +