mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +01:00
docs: update
This commit is contained in:
11
docs/app.vue
11
docs/app.vue
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="antialiased font-sans">
|
<div>
|
||||||
<nav class="u-bg-white border-b u-border-gray-200 fixed top-0 inset-x-0 z-20">
|
<nav class="u-bg-white border-b u-border-gray-200 fixed top-0 inset-x-0 z-20">
|
||||||
<UContainer padded>
|
<UContainer padded>
|
||||||
<div class="flex items-center justify-between h-16">
|
<div class="flex items-center justify-between h-16">
|
||||||
@@ -58,6 +58,15 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { UseDark } from '@vueuse/components'
|
import { UseDark } from '@vueuse/components'
|
||||||
|
|
||||||
|
useMeta({
|
||||||
|
htmlAttrs: {
|
||||||
|
class: 'bg-white dark:bg-black'
|
||||||
|
},
|
||||||
|
bodyAttrs: {
|
||||||
|
class: 'antialiased font-sans text-gray-700 bg-gray-50 dark:bg-gray-900 dark:text-gray-200'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const sections = [
|
const sections = [
|
||||||
{ label: 'Getting Started', links: [{ label: 'Usage', to: '/' }, { label: 'Examples', to: '/examples' }, { label: 'Migration', to: '/migration' }, { label: 'Dark mode', to: '/dark' }] },
|
{ label: 'Getting Started', links: [{ label: 'Usage', 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: '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' }] },
|
||||||
|
|||||||
@@ -12,17 +12,14 @@ export default defineNuxtConfig({
|
|||||||
],
|
],
|
||||||
link: [
|
link: [
|
||||||
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' }
|
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' }
|
||||||
],
|
]
|
||||||
htmlAttrs: {
|
|
||||||
class: 'u-bg-white'
|
|
||||||
},
|
|
||||||
bodyAttrs: {
|
|
||||||
class: 'u-bg-gray-50 u-text-gray-700'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
buildModules: [
|
buildModules: [
|
||||||
module
|
module
|
||||||
],
|
],
|
||||||
|
components: {
|
||||||
|
global: true
|
||||||
|
},
|
||||||
ui: {
|
ui: {
|
||||||
colors: {
|
colors: {
|
||||||
primary: 'blue'
|
primary: 'blue'
|
||||||
|
|||||||
Reference in New Issue
Block a user