chore: cleanup
This commit is contained in:
parent
e57d25e8db
commit
c138160e3a
18
apps/www/.vitepress/theme/components/Announcement.vue
Normal file
18
apps/www/.vitepress/theme/components/Announcement.vue
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { announcementConfig } from '../config/site'
|
||||||
|
import ArrowRightIcon from '~icons/radix-icons/arrow-right'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<a
|
||||||
|
:href="announcementConfig.link"
|
||||||
|
class="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium"
|
||||||
|
>
|
||||||
|
{{ announcementConfig.icon }} <Separator class="mx-2 h-4" orientation="vertical" />
|
||||||
|
<span class="sm:hidden">{{ announcementConfig.title }}</span>
|
||||||
|
<span class="hidden sm:inline">
|
||||||
|
{{ announcementConfig.title }}
|
||||||
|
</span>
|
||||||
|
<ArrowRightIcon class="ml-1 h-4 w-4" />
|
||||||
|
</a>
|
||||||
|
</template>
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import PageHeader from '../components/PageHeader.vue'
|
import PageHeader from '../components/PageHeader.vue'
|
||||||
import PageHeaderHeading from '../components/PageHeaderHeading.vue'
|
import PageHeaderHeading from '../components/PageHeaderHeading.vue'
|
||||||
import PageHeaderDescription from '../components/PageHeaderDescription.vue'
|
import PageHeaderDescription from '../components/PageHeaderDescription.vue'
|
||||||
import PageAction from '../components/PageAction.vue'
|
import PageAction from '../components/PageAction.vue'
|
||||||
import { announcementConfig } from '../config/site'
|
import Announcement from '../components/Announcement.vue'
|
||||||
import BlockPreview from './BlockPreview.vue'
|
import BlockPreview from './BlockPreview.vue'
|
||||||
import GitHubIcon from '~icons/radix-icons/github-logo'
|
import GitHubIcon from '~icons/radix-icons/github-logo'
|
||||||
|
|
||||||
import { buttonVariants } from '@/lib/registry/new-york/ui/button'
|
import { buttonVariants } from '@/lib/registry/new-york/ui/button'
|
||||||
import { Separator } from '@/lib/registry/new-york/ui/separator'
|
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
|
|
||||||
const blocks = ref<string[]>([])
|
const blocks = ref<string[]>([])
|
||||||
|
|
@ -21,16 +20,7 @@ import('../../../__registry__/index').then((res) => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<PageHeader class="page-header pb-8">
|
<PageHeader class="page-header pb-8">
|
||||||
<a
|
<Announcement />
|
||||||
:href="announcementConfig.link"
|
|
||||||
class="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium"
|
|
||||||
>
|
|
||||||
{{ announcementConfig.icon }} <Separator class="mx-2 h-4" orientation="vertical" />
|
|
||||||
<span class="sm:hidden">{{ announcementConfig.title }}</span>
|
|
||||||
<span class="hidden sm:inline">{{ announcementConfig.title }}
|
|
||||||
</span>
|
|
||||||
<!-- <ArrowRightIcon class="ml-1 h-4 w-4" /> -->
|
|
||||||
</a>
|
|
||||||
<PageHeaderHeading>Building Blocks for the Web</PageHeaderHeading>
|
<PageHeaderHeading>Building Blocks for the Web</PageHeaderHeading>
|
||||||
<PageHeaderDescription>
|
<PageHeaderDescription>
|
||||||
Beautifully designed. Copy and paste into your apps. Open Source.
|
Beautifully designed. Copy and paste into your apps. Open Source.
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import PageHeaderHeading from '../components/PageHeaderHeading.vue'
|
||||||
import PageHeaderDescription from '../components/PageHeaderDescription.vue'
|
import PageHeaderDescription from '../components/PageHeaderDescription.vue'
|
||||||
import PageAction from '../components/PageAction.vue'
|
import PageAction from '../components/PageAction.vue'
|
||||||
import ExamplesNav from '../components/ExamplesNav.vue'
|
import ExamplesNav from '../components/ExamplesNav.vue'
|
||||||
import { announcementConfig } from '../config/site'
|
import Announcement from '../components/Announcement.vue'
|
||||||
import GitHubIcon from '~icons/radix-icons/github-logo'
|
import GitHubIcon from '~icons/radix-icons/github-logo'
|
||||||
|
|
||||||
import { buttonVariants } from '@/lib/registry/new-york/ui/button'
|
import { buttonVariants } from '@/lib/registry/new-york/ui/button'
|
||||||
|
|
@ -16,16 +16,7 @@ import MailExample from '@/examples/mail/Example.vue'
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<PageHeader class="page-header pb-8">
|
<PageHeader class="page-header pb-8">
|
||||||
<a
|
<Announcement />
|
||||||
:href="announcementConfig.link"
|
|
||||||
class="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium"
|
|
||||||
>
|
|
||||||
{{ announcementConfig.icon }} <Separator class="mx-2 h-4" orientation="vertical" />
|
|
||||||
<span class="sm:hidden">{{ announcementConfig.title }}</span>
|
|
||||||
<span class="hidden sm:inline">{{ announcementConfig.title }}
|
|
||||||
</span>
|
|
||||||
<!-- <ArrowRightIcon class="ml-1 h-4 w-4" /> -->
|
|
||||||
</a>
|
|
||||||
<PageHeaderHeading>Build your component library.</PageHeaderHeading>
|
<PageHeaderHeading>Build your component library.</PageHeaderHeading>
|
||||||
<PageHeaderDescription>
|
<PageHeaderDescription>
|
||||||
Beautifully designed components that you can copy and paste into your
|
Beautifully designed components that you can copy and paste into your
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@ export const siteConfig = {
|
||||||
|
|
||||||
export const announcementConfig = {
|
export const announcementConfig = {
|
||||||
icon: '✨',
|
icon: '✨',
|
||||||
title: 'New components!',
|
title: 'Introducing Blocks!',
|
||||||
link: '/docs/components/carousel.html',
|
link: '/blocks',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,7 @@ import PageHeaderHeading from '../components/PageHeaderHeading.vue'
|
||||||
import PageHeaderDescription from '../components/PageHeaderDescription.vue'
|
import PageHeaderDescription from '../components/PageHeaderDescription.vue'
|
||||||
import PageAction from '../components/PageAction.vue'
|
import PageAction from '../components/PageAction.vue'
|
||||||
import ExamplesNav from '../components/ExamplesNav.vue'
|
import ExamplesNav from '../components/ExamplesNav.vue'
|
||||||
import { announcementConfig } from '../config/site'
|
import Announcement from '../components/Announcement.vue'
|
||||||
import ArrowRightIcon from '~icons/radix-icons/arrow-right'
|
|
||||||
|
|
||||||
import { buttonVariants } from '@/lib/registry/new-york/ui/button'
|
import { buttonVariants } from '@/lib/registry/new-york/ui/button'
|
||||||
import { Separator } from '@/lib/registry/new-york/ui/separator'
|
import { Separator } from '@/lib/registry/new-york/ui/separator'
|
||||||
|
|
@ -15,17 +14,7 @@ import { cn } from '@/lib/utils'
|
||||||
<template>
|
<template>
|
||||||
<div class="container relative">
|
<div class="container relative">
|
||||||
<PageHeader class="page-header pb-8">
|
<PageHeader class="page-header pb-8">
|
||||||
<a
|
<Announcement />
|
||||||
:href="announcementConfig.link"
|
|
||||||
class="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium"
|
|
||||||
>
|
|
||||||
{{ announcementConfig.icon }} <Separator class="mx-2 h-4" orientation="vertical" />
|
|
||||||
<span class="sm:hidden">{{ announcementConfig.title }}</span>
|
|
||||||
<span class="hidden sm:inline">
|
|
||||||
{{ announcementConfig.title }}
|
|
||||||
</span>
|
|
||||||
<ArrowRightIcon class="ml-1 h-4 w-4" />
|
|
||||||
</a>
|
|
||||||
<PageHeaderHeading class="hidden md:block">
|
<PageHeaderHeading class="hidden md:block">
|
||||||
Check out some examples.
|
Check out some examples.
|
||||||
</PageHeaderHeading>
|
</PageHeaderHeading>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: Blocks - shadcn-vue
|
title: Building Blocks
|
||||||
---
|
---
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user