chore(Nav): Remove unused Elements + Header Full Size

main
Flycro 2023-11-10 11:18:21 +01:00
parent f2ba1e3565
commit 2191edf6bf
3 changed files with 10 additions and 12 deletions

View File

@ -2,5 +2,8 @@ export default defineAppConfig({
ui: { ui: {
primary: 'sky', primary: 'sky',
gray: 'cool', gray: 'cool',
container: {
constrained: 'max-w-full',
},
}, },
}) })

View File

@ -1,16 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import type { NavItem } from '@nuxt/content/dist/runtime/types'
const navigation = inject<Ref<NavItem[]>>('navigation')
const links = [{ const links = [{
label: 'Documentation', label: 'Documentation',
icon: 'i-heroicons-book-open', icon: 'i-heroicons-book-open',
to: '/getting-started', to: 'https://ui.nuxt.com/getting-started',
}, { }, {
label: 'Pro', label: 'Pro',
icon: 'i-heroicons-square-3-stack-3d', icon: 'i-heroicons-square-3-stack-3d',
to: '/pro', to: 'https://ui.nuxt.com/pro',
}, { }, {
label: 'Releases', label: 'Releases',
icon: 'i-heroicons-rocket-launch', icon: 'i-heroicons-rocket-launch',
@ -27,12 +23,11 @@ const links = [{
<template #right> <template #right>
<UColorModeButton /> <UColorModeButton />
<UButton to="#" target="_blank" icon="i-heroicons-user-solid" color="gray" variant="ghost" />
<UButton to="https://github.com/nuxt/ui" target="_blank" icon="i-simple-icons-github" color="gray" variant="ghost" />
</template> </template>
<template #panel> <template #panel>
<UNavigationTree :links="mapContentNavigation(navigation)" /> <UNavigationTree :links="links" />
</template> </template>
</UHeader> </UHeader>
</template> </template>

View File

@ -6,19 +6,19 @@ const links = [
children: [ children: [
{ {
label: 'Overview', label: 'Overview',
to: '/partner/overview', to: '/login',
icon: 'i-heroicons-eye', icon: 'i-heroicons-eye',
}, },
{ {
label: 'Add Company', label: 'Add Company',
to: '/pro/components/docs/docs-search', to: '/login',
icon: 'i-heroicons-plus-circle', icon: 'i-heroicons-plus-circle',
}, },
], ],
}, },
{ {
label: 'People', label: 'People',
to: '/pro/components/docs/docs-search-button', to: '/login',
icon: 'i-heroicons-user-group', icon: 'i-heroicons-user-group',
}, },
] ]