fix: broken links for nav

This commit is contained in:
zernonia 2023-09-05 15:10:13 +08:00
parent de367c1b34
commit ec68d03463
2 changed files with 8 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import PageHeaderHeading from '../components/PageHeaderHeading.vue'
import PageHeaderDescription from '../components/PageHeaderDescription.vue' import PageHeaderDescription from '../components/PageHeaderDescription.vue'
import ExamplesNav from '../components/ExamplesNav.vue' import ExamplesNav from '../components/ExamplesNav.vue'
import ArrowRightIcon from '~icons/radix-icons/arrow-right' import ArrowRightIcon from '~icons/radix-icons/arrow-right'
import GitHubIcon from '~icons/radix-icons/github-logo'
import { buttonVariants } from '@/lib/registry/default/ui/button' import { buttonVariants } from '@/lib/registry/default/ui/button'
import { Separator } from '@/lib/registry/default/ui/separator' import { Separator } from '@/lib/registry/default/ui/separator'
@ -32,19 +33,21 @@ import DashboardExample from '@/examples/dashboard/Example.vue'
<section class="flex w-full items-center space-x-4 pb-8 pt-4 md:pb-10"> <section class="flex w-full items-center space-x-4 pb-8 pt-4 md:pb-10">
<a <a
href="/docs" href="/docs/introduction"
:class="cn(buttonVariants(), 'rounded-[6px]')" :class="cn(buttonVariants(), 'rounded-[6px]')"
> >
Get Started Get Started
</a> </a>
<a <a
href="/components" href="https://github.com/radix-vue/shadcn-vue"
target="_blank"
:class="cn( :class="cn(
buttonVariants({ variant: 'outline' }), buttonVariants({ variant: 'outline' }),
'rounded-[6px]', 'rounded-[6px]',
)" )"
> >
Components <GitHubIcon class="mr-2 h-4 w-4" />
GitHub
</a> </a>
</section> </section>
</PageHeader> </PageHeader>

View File

@ -37,13 +37,13 @@ import { cn } from '@/lib/utils'
<section class="flex w-full items-center space-x-4 pb-8 pt-4 md:pb-10"> <section class="flex w-full items-center space-x-4 pb-8 pt-4 md:pb-10">
<a <a
href="/docs" href="/docs/introduction"
:class="cn(buttonVariants(), 'rounded-[6px]')" :class="cn(buttonVariants(), 'rounded-[6px]')"
> >
Get Started Get Started
</a> </a>
<a <a
href="/components" href="/docs/components/accordion"
:class="cn( :class="cn(
buttonVariants({ variant: 'outline' }), buttonVariants({ variant: 'outline' }),
'rounded-[6px]', 'rounded-[6px]',