From 67c2ada241beb072d37a768b13b82516fc13e41c Mon Sep 17 00:00:00 2001 From: Roland Groza Date: Mon, 13 Jul 2026 10:27:57 +0900 Subject: [PATCH] chore: adopt new logo and docs branding --- README.md | 2 ++ public/favicon.ico | Bin 0 -> 2955 bytes public/favicon.svg | 8 ++++++++ public/fileselector-lockup-dark.svg | 11 +++++++++++ public/fileselector-lockup.svg | 11 +++++++++++ vocs.config.ts | 13 ++++++++++--- 6 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 public/favicon.ico create mode 100644 public/favicon.svg create mode 100644 public/fileselector-lockup-dark.svg create mode 100644 public/fileselector-lockup.svg diff --git a/README.md b/README.md index 0fa873d..79576c5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![file-selector logo](https://raw.githubusercontent.com/react-dropzone/.github/main/brand/assets/logo.png) + # file-selector > A small package for converting a [DragEvent](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent) or [file input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file) to a list of File objects. diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..f4f50b09259e941bc4c0b6e8e2aa52dd44ef5ae0 GIT binary patch literal 2955 zcmaKtX*|^J8pr>bk(tmKBP|ATCi@Z+Ga1=;W~_~UY}vAJWgUf#Elb&XhU{4*31cZF zA!|rODzawF8Xf29&3W;h^WwgLpWk)epX<&2``$MI&;bkp3kI&(b5fI({Nr(80KhN;KrBvQg9Um4dUBLSOHYzr^c&|o2b15jTUKT3_70-tM zkYBjlmJ;*oa{(&EV|xI+!MVRDjGe#!!eZQ?DyxP;_dOgCbhP$*m zOYP-L?Fk`P*tQ7{+uTqtj9r9*d!|jk8%67@Q>to}7GJ4-)1YnZ&)$A{VOhz0=)~vp z6#W7o=IWlI9o^G|-KgnJ13QyiG}2FbJL@J^!C~&^EgLUJo8j$@{P}pfOJ|oYR_luD!gXa0OGZ?j!2}$VgF{IQ|CMeqP+nMN%t@ryZzojlzC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ndv}T#FaqaY_>&nh~9~a1sH6 zkuyg}-L$9w-r(x>oHX#;=`VpJIP9feyj2mu`?bw}Cik-)mgD!+EwJj9r-Bbf8TxgU zqX-r%7qi%4=qiu?AQ=gFkxK1{!R^DNO1+|Tj}r%`%m+h%G9eD%6BcjkA>Gf1;ONC6 zR>%~(T7Um;srMK-y~<;f{@d6Jm9P+W?F88!%J1@Y{H>n*dFQ}SnWdMa2S(|BlWf90 zOrMPaUi#Xl`?4tbk7>zJv^!RND{w{174 z{ABD~@29WNa@x<<#v|IaMu!cj$}DY(h=4om?vSh`2~9=r$2W595+0t9M9o%!_&6KWmm}I9=OE*xRBAv(4dBwQWsnj5{<4;wzRWk ziyVNkF4oi03XY*l>XyY_^!&7ocN}F>BM;AaWElN2l1JK@xG1jZ_0 + dropzone + + + + + + diff --git a/public/fileselector-lockup-dark.svg b/public/fileselector-lockup-dark.svg new file mode 100644 index 0000000..0d58584 --- /dev/null +++ b/public/fileselector-lockup-dark.svg @@ -0,0 +1,11 @@ + + file-selector + + + + + + + + + diff --git a/public/fileselector-lockup.svg b/public/fileselector-lockup.svg new file mode 100644 index 0000000..e9863f3 --- /dev/null +++ b/public/fileselector-lockup.svg @@ -0,0 +1,11 @@ + + file-selector + + + + + + + + + diff --git a/vocs.config.ts b/vocs.config.ts index 4eaf37d..164af06 100644 --- a/vocs.config.ts +++ b/vocs.config.ts @@ -1,5 +1,10 @@ import {defineConfig} from "vocs/config"; +// Project Pages are served from https://react-dropzone.github.io/file-selector/, +// so every asset/route must carry this prefix. Drop it (here and on the +// icon/logo URLs below) if a custom domain is used. +const basePath = "/file-selector"; + export default defineConfig({ // Keep Vite's root at the repo root (default) but move Vocs' sources under // `docs/` so they don't collide with the library's own `src/` and `dist/`. @@ -8,9 +13,11 @@ export default defineConfig({ outDir: "site", // GitHub Pages is static hosting — emit fully pre-rendered HTML for every route. renderStrategy: "full-static", - // Project Pages are served from https://react-dropzone.github.io/file-selector/, - // so every asset/route must be prefixed. Drop this if a custom domain is used. - basePath: "/file-selector", + basePath, + // Favicon + header logo. Vocs uses these URLs verbatim (no basePath prefix), + // so include it explicitly. Assets live in /public, synced from react-dropzone/.github. + iconUrl: `${basePath}/favicon.svg`, + logoUrl: {light: `${basePath}/fileselector-lockup.svg`, dark: `${basePath}/fileselector-lockup-dark.svg`}, title: "file-selector", titleTemplate: "%s · file-selector", description: "Convert a DragEvent or file input into a flat list of File objects.",