diff --git a/package.json b/package.json index 661d612675..629de17d51 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "husky": "^9.1.7", "jsdom": "^26.1.0", "lint-staged": "^16.1.4", + "prettier-plugin-astro": "^0.14.1", "prettier-plugin-tailwindcss": "^0.8.0", "tailwindcss": "^4.1.11", "turbo": "^2.5.6", diff --git a/packages/docs/.gitbook/assets/album.png b/packages/docs/.gitbook/assets/album.png new file mode 100644 index 0000000000..57a21d06e9 Binary files /dev/null and b/packages/docs/.gitbook/assets/album.png differ diff --git a/packages/docs/.gitbook/assets/app-layout-overview.png b/packages/docs/.gitbook/assets/app-layout-overview.png index e0034a361b..6daccd0e87 100644 Binary files a/packages/docs/.gitbook/assets/app-layout-overview.png and b/packages/docs/.gitbook/assets/app-layout-overview.png differ diff --git a/packages/docs/.gitbook/assets/dashboard-main.png b/packages/docs/.gitbook/assets/dashboard-main.png index 6c646a139b..d66ab402b3 100644 Binary files a/packages/docs/.gitbook/assets/dashboard-main.png and b/packages/docs/.gitbook/assets/dashboard-main.png differ diff --git a/packages/docs/.gitbook/assets/installed-plugins.png b/packages/docs/.gitbook/assets/installed-plugins.png index 443510ac99..2354488319 100644 Binary files a/packages/docs/.gitbook/assets/installed-plugins.png and b/packages/docs/.gitbook/assets/installed-plugins.png differ diff --git a/packages/docs/.gitbook/assets/log-viewer.png b/packages/docs/.gitbook/assets/log-viewer.png index 917f79cc26..f3d02a5b69 100644 Binary files a/packages/docs/.gitbook/assets/log-viewer.png and b/packages/docs/.gitbook/assets/log-viewer.png differ diff --git a/packages/docs/.gitbook/assets/my-themes.png b/packages/docs/.gitbook/assets/my-themes.png index 57422e8f26..a9a2b6a544 100644 Binary files a/packages/docs/.gitbook/assets/my-themes.png and b/packages/docs/.gitbook/assets/my-themes.png differ diff --git a/packages/docs/.gitbook/assets/playlist-detail-view.png b/packages/docs/.gitbook/assets/playlist-detail-view.png index 459bbe0c53..174587a9cb 100644 Binary files a/packages/docs/.gitbook/assets/playlist-detail-view.png and b/packages/docs/.gitbook/assets/playlist-detail-view.png differ diff --git a/packages/docs/.gitbook/assets/playlists.png b/packages/docs/.gitbook/assets/playlists.png index 83323523e7..29844db428 100644 Binary files a/packages/docs/.gitbook/assets/playlists.png and b/packages/docs/.gitbook/assets/playlists.png differ diff --git a/packages/docs/.gitbook/assets/plugin-store.png b/packages/docs/.gitbook/assets/plugin-store.png index 3d9685ff4f..663aaad9c1 100644 Binary files a/packages/docs/.gitbook/assets/plugin-store.png and b/packages/docs/.gitbook/assets/plugin-store.png differ diff --git a/packages/docs/.gitbook/assets/preferences.png b/packages/docs/.gitbook/assets/preferences.png index 367b378cf7..2bc79ece61 100644 Binary files a/packages/docs/.gitbook/assets/preferences.png and b/packages/docs/.gitbook/assets/preferences.png differ diff --git a/packages/docs/.gitbook/assets/search-albums.png b/packages/docs/.gitbook/assets/search-albums.png index 5d9fe0c751..d0f177f9cd 100644 Binary files a/packages/docs/.gitbook/assets/search-albums.png and b/packages/docs/.gitbook/assets/search-albums.png differ diff --git a/packages/docs/.gitbook/assets/search-artists.png b/packages/docs/.gitbook/assets/search-artists.png index 2d8d0336cf..548a5f25fe 100644 Binary files a/packages/docs/.gitbook/assets/search-artists.png and b/packages/docs/.gitbook/assets/search-artists.png differ diff --git a/packages/docs/.gitbook/assets/search-tracks.png b/packages/docs/.gitbook/assets/search-tracks.png new file mode 100644 index 0000000000..03dc0acaa6 Binary files /dev/null and b/packages/docs/.gitbook/assets/search-tracks.png differ diff --git a/packages/docs/.gitbook/assets/sources-view.png b/packages/docs/.gitbook/assets/sources-view.png index a682288626..91c12c8d3d 100644 Binary files a/packages/docs/.gitbook/assets/sources-view.png and b/packages/docs/.gitbook/assets/sources-view.png differ diff --git a/packages/docs/.gitbook/assets/theme store.png b/packages/docs/.gitbook/assets/theme store.png new file mode 100644 index 0000000000..c5ffb63ca6 Binary files /dev/null and b/packages/docs/.gitbook/assets/theme store.png differ diff --git a/packages/docs/.gitbook/assets/whats-new.png b/packages/docs/.gitbook/assets/whats-new.png index 5c86436982..ab4d8cef54 100644 Binary files a/packages/docs/.gitbook/assets/whats-new.png and b/packages/docs/.gitbook/assets/whats-new.png differ diff --git a/packages/website/package.json b/packages/website/package.json index 96296c6b8a..fd61cc752c 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -16,10 +16,13 @@ "dependencies": { "@astrojs/react": "^5.0.3", "@astrojs/sitemap": "^3.7.0", + "@fontsource-variable/bricolage-grotesque": "^5.2.10", + "@fontsource-variable/dm-sans": "^5.2.8", "@iconify-json/simple-icons": "^1.2.67", - "@lucide/astro": "^0.563.0", "astro": "^6.0.0", "astro-icon": "^1.1.5", + "clsx": "^2.1.1", + "lucide-react": "^0.542.0", "react": "^18.3.1", "react-dom": "^18.3.1" }, diff --git a/packages/website/public/images/nuki-crawling-out.png b/packages/website/public/images/nuki-crawling-out.png new file mode 100644 index 0000000000..021614eaa9 Binary files /dev/null and b/packages/website/public/images/nuki-crawling-out.png differ diff --git a/packages/website/public/images/nuki-hello.png b/packages/website/public/images/nuki-hello.png new file mode 100644 index 0000000000..fa3dd68759 Binary files /dev/null and b/packages/website/public/images/nuki-hello.png differ diff --git a/packages/website/public/images/nuki-listening.png b/packages/website/public/images/nuki-listening.png new file mode 100644 index 0000000000..da6813696f Binary files /dev/null and b/packages/website/public/images/nuki-listening.png differ diff --git a/packages/website/public/images/nuki-ready-to-work.png b/packages/website/public/images/nuki-ready-to-work.png new file mode 100644 index 0000000000..f31e3b9518 Binary files /dev/null and b/packages/website/public/images/nuki-ready-to-work.png differ diff --git a/packages/website/public/images/nuki-studying.png b/packages/website/public/images/nuki-studying.png new file mode 100644 index 0000000000..e3f47f47c3 Binary files /dev/null and b/packages/website/public/images/nuki-studying.png differ diff --git a/packages/website/src/components/Badge.astro b/packages/website/src/components/Badge.astro index f1d6d5ae95..6ca97e4db7 100644 --- a/packages/website/src/components/Badge.astro +++ b/packages/website/src/components/Badge.astro @@ -14,7 +14,7 @@ const sizeClasses = {

& { as?: string; - class?: string; - [key: string]: unknown; }; const { as: Element = 'div', class: className, ...rest } = Astro.props; @@ -10,11 +10,15 @@ const { as: Element = 'div', class: className, ...rest } = Astro.props; - +
+ +
diff --git a/packages/website/src/components/Button.astro b/packages/website/src/components/Button.astro index 438cc1ca2d..7df279c06c 100644 --- a/packages/website/src/components/Button.astro +++ b/packages/website/src/components/Button.astro @@ -18,7 +18,7 @@ const baseClasses = const variantClasses = { default: 'text-foreground bg-primary', - secondary: 'text-foreground bg-background', + secondary: 'text-foreground bg-background-secondary', text: 'text-foreground bg-transparent border-transparent shadow-none hover:translate-x-0 hover:translate-y-0', discord: 'text-foreground bg-(--color-discord) prefers-dark:text-foreground prefers-dark:bg-background prefers-dark:border-(--color-discord)', diff --git a/packages/website/src/components/CopyButton.tsx b/packages/website/src/components/CopyButton.tsx new file mode 100644 index 0000000000..ada857fb0e --- /dev/null +++ b/packages/website/src/components/CopyButton.tsx @@ -0,0 +1,44 @@ +import clsx from 'clsx'; +import { Check, Copy } from 'lucide-react'; +import { ReactNode, useState, type FC } from 'react'; + +type CopyButtonProps = { + text: string; + className?: string; + children?: ReactNode; +}; + +const RESET_DELAY = 2000; + +export const CopyButton: FC = ({ + text, + className, + children, +}) => { + const [copied, setCopied] = useState(false); + + const handleClick = async () => { + await navigator.clipboard.writeText(text); + setCopied(true); + setTimeout(() => setCopied(false), RESET_DELAY); + }; + + return ( + + ); +}; diff --git a/packages/website/src/components/Downloads.astro b/packages/website/src/components/Downloads.astro index 9573714d2d..070fdcb803 100644 --- a/packages/website/src/components/Downloads.astro +++ b/packages/website/src/components/Downloads.astro @@ -2,9 +2,10 @@ import { Icon } from 'astro-icon/components'; import { stars } from '../data/github'; -import { version, releaseUrl } from '../data/version'; +import { releaseUrl, version } from '../data/version'; import Badge from './Badge.astro'; import Box from './Box.astro'; +import { CopyButton } from './CopyButton'; const platforms = [ { @@ -25,33 +26,37 @@ const platforms = [ ]; --- - + Desktop only
{ platforms.map((platform) => ( - - + + {platform.name} )) }
-

Downloads are only available on a desktop device.

+

Downloads are only available on a desktop device.

-