mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 04:29:37 +01:00
docs: update
This commit is contained in:
11
docs/app.vue
11
docs/app.vue
@@ -1,5 +1,5 @@
|
||||
<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">
|
||||
<UContainer padded>
|
||||
<div class="flex items-center justify-between h-16">
|
||||
@@ -58,6 +58,15 @@
|
||||
<script setup>
|
||||
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 = [
|
||||
{ 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' }] },
|
||||
|
||||
@@ -12,17 +12,14 @@ export default defineNuxtConfig({
|
||||
],
|
||||
link: [
|
||||
{ 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: [
|
||||
module
|
||||
],
|
||||
components: {
|
||||
global: true
|
||||
},
|
||||
ui: {
|
||||
colors: {
|
||||
primary: 'blue'
|
||||
|
||||
Reference in New Issue
Block a user