From a1cf9b203f6e1ab0c83779816ebee3cdc4bfad81 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 24 Nov 2021 18:37:50 +0100 Subject: [PATCH] docs: improve --- docs/app.vue | 8 ++++- docs/pages/dark.vue | 74 ++++++++++++++++++++++++++++++++++++++++++++ docs/pages/index.vue | 2 +- 3 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 docs/pages/dark.vue diff --git a/docs/app.vue b/docs/app.vue index 2a2eb96d..114d07f4 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -55,7 +55,7 @@ import { UseDark } from '@vueuse/components' const sections = [ - { label: 'Getting Started', links: [{ label: 'Installation', to: '/' }, { label: 'Examples', to: '/examples' }, { label: 'Migration', to: '/migration' }] }, + { label: 'Getting Started', links: [{ label: 'Installation', to: '/' }, { label: 'Examples', to: '/examples' }, { label: 'Migration', to: '/migration' }, { label: 'Dark mode', to: '/dark' }] }, { label: 'Elements', links: [{ label: 'Avatar', to: '/components/Avatar' }, { label: 'AvatarGroup', to: '/components/AvatarGroup' }, { label: 'Badge', to: '/components/Badge' }, { label: 'Button', to: '/components/Button' }, { label: 'Dropdown', to: '/components/Dropdown' }, { label: 'Icon', to: '/components/Icon' }, { label: 'Link', to: '/components/Link' }, { label: 'Toggle', to: '/components/Toggle' }] }, { label: 'Feedback', links: [{ label: 'Alert', to: '/components/Alert' }] }, { label: 'Forms', links: [{ label: 'Checkbox', to: '/components/Checkbox' }, { label: 'Input', to: '/components/Input' }, { label: 'InputGroup', to: '/components/InputGroup' }, { label: 'Radio', to: '/components/Radio' }, { label: 'RadioGroup', to: '/components/RadioGroup' }, { label: 'Select', to: '/components/Select' }, { label: 'SelectCustom', to: '/components/SelectCustom' }, { label: 'Textarea', to: '/components/Textarea' }] }, @@ -64,3 +64,9 @@ const sections = [ { label: 'Overlays', links: [{ label: 'Modal', to: '/components/Modal' }, { label: 'Notification', to: '/components/Notification' }, { label: 'Popover', to: '/components/Popover' }, { label: 'Slideover', to: '/components/Slideover' }, { label: 'Tooltip', to: '/components/Tooltip' }] } ] + + diff --git a/docs/pages/dark.vue b/docs/pages/dark.vue new file mode 100644 index 00000000..6feaadaa --- /dev/null +++ b/docs/pages/dark.vue @@ -0,0 +1,74 @@ + + + diff --git a/docs/pages/index.vue b/docs/pages/index.vue index 92f74216..8c618c9d 100644 --- a/docs/pages/index.vue +++ b/docs/pages/index.vue @@ -8,7 +8,7 @@

- Components library as a Nuxt3 module using UnoCSS. + Components library as a Nuxt3 module using UnoCSS.