Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,15 @@ provide('navigation', navigation)
</ClientOnly>
</UApp>
</template>

<style>
.blur-enter-active,
.blur-leave-active {
transition: all 0.4s;
}
.blur-enter-from,
.blur-leave-to {
opacity: 0;
filter: blur(1rem);
}
</style>
34 changes: 0 additions & 34 deletions app/layouts/docs.vue

This file was deleted.

4 changes: 3 additions & 1 deletion app/pages/blog.vue
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<template>
<NuxtPage />
<div>
<NuxtPage />
</div>
</template>
100 changes: 51 additions & 49 deletions app/pages/blog/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,59 +34,61 @@ if (post.value.image?.src) {
</script>

<template>
<UContainer v-if="post">
<UPageHeader
:title="post.title"
:description="post.description"
>
<template #headline>
<UBadge
v-bind="post.badge"
variant="subtle"
/>
<span class="text-muted">&middot;</span>
<time class="text-muted">{{ new Date(post.date).toLocaleDateString('en', { year: 'numeric', month: 'short', day: 'numeric' }) }}</time>
</template>

<div class="flex flex-wrap items-center gap-3 mt-4">
<UButton
v-for="(author, index) in post.authors"
:key="index"
:to="author.to"
color="neutral"
variant="subtle"
target="_blank"
size="sm"
>
<UAvatar
v-bind="author.avatar"
alt="Author avatar"
size="2xs"
<div v-if="post">
<UContainer>
<UPageHeader
:title="post.title"
:description="post.description"
>
<template #headline>
<UBadge
v-bind="post.badge"
variant="subtle"
/>
<span class="text-muted">&middot;</span>
<time class="text-muted">{{ new Date(post.date).toLocaleDateString('en', { year: 'numeric', month: 'short', day: 'numeric' }) }}</time>
</template>

{{ author.name }}
</UButton>
</div>
</UPageHeader>
<div class="flex flex-wrap items-center gap-3 mt-4">
<UButton
v-for="(author, index) in post.authors"
:key="index"
:to="author.to"
color="neutral"
variant="subtle"
target="_blank"
size="sm"
>
<UAvatar
v-bind="author.avatar"
alt="Author avatar"
size="2xs"
/>

<UPage>
<UPageBody>
<ContentRenderer
v-if="post"
:value="post"
/>
{{ author.name }}
</UButton>
</div>
</UPageHeader>

<USeparator v-if="surround?.length" />
<UPage>
<UPageBody>
<ContentRenderer
v-if="post"
:value="post"
/>

<UContentSurround :surround="surround" />
</UPageBody>
<USeparator v-if="surround?.length" />

<template
v-if="post?.body?.toc?.links?.length"
#right
>
<UContentToc :links="post.body.toc.links" />
</template>
</UPage>
</UContainer>
<UContentSurround :surround="surround" />
</UPageBody>

<template
v-if="post?.body?.toc?.links?.length"
#right
>
<UContentToc :links="post.body.toc.links" />
</template>
</UPage>
</UContainer>
</div>
</template>
56 changes: 29 additions & 27 deletions app/pages/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,34 @@ defineOgImageComponent('Saas')
</script>

<template>
<UContainer>
<UPageHeader
v-bind="page"
class="py-[50px]"
/>
<div v-if="page">
<UContainer>
<UPageHeader
v-bind="page"
class="py-[50px]"
/>

<UPageBody>
<UBlogPosts>
<UBlogPost
v-for="(post, index) in posts"
:key="index"
:to="post.path"
:title="post.title"
:description="post.description"
:image="post.image"
:date="new Date(post.date).toLocaleDateString('en', { year: 'numeric', month: 'short', day: 'numeric' })"
:authors="post.authors"
:badge="post.badge"
:orientation="index === 0 ? 'horizontal' : 'vertical'"
:class="[index === 0 && 'col-span-full']"
variant="naked"
:ui="{
description: 'line-clamp-2'
}"
/>
</UBlogPosts>
</UPageBody>
</UContainer>
<UPageBody>
<UBlogPosts>
<UBlogPost
v-for="(post, index) in posts"
:key="index"
:to="post.path"
:title="post.title"
:description="post.description"
:image="post.image"
:date="new Date(post.date).toLocaleDateString('en', { year: 'numeric', month: 'short', day: 'numeric' })"
:authors="post.authors"
:badge="post.badge"
:orientation="index === 0 ? 'horizontal' : 'vertical'"
:class="[index === 0 && 'col-span-full']"
variant="naked"
:ui="{
description: 'line-clamp-2'
}"
/>
</UBlogPosts>
</UPageBody>
</UContainer>
</div>
</template>
40 changes: 21 additions & 19 deletions app/pages/changelog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,26 @@ defineOgImageComponent('Saas')
</script>

<template>
<UContainer>
<UPageHeader
v-bind="page"
class="py-[50px]"
/>
<div v-if="page">
<UContainer>
<UPageHeader
v-bind="page"
class="py-[50px]"
/>

<UPageBody>
<UChangelogVersions>
<UChangelogVersion
v-for="(version, index) in versions"
:key="index"
v-bind="version"
>
<template #body>
<ContentRenderer :value="version.body" />
</template>
</UChangelogVersion>
</UChangelogVersions>
</UPageBody>
</UContainer>
<UPageBody>
<UChangelogVersions>
<UChangelogVersion
v-for="(version, index) in versions"
:key="index"
v-bind="version"
>
<template #body>
<ContentRenderer :value="version.body" />
</template>
</UChangelogVersion>
</UChangelogVersions>
</UPageBody>
</UContainer>
</div>
</template>
28 changes: 28 additions & 0 deletions app/pages/docs.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<script setup lang="ts">
import type { ContentNavigationItem } from '@nuxt/content'

const navigation = inject<Ref<ContentNavigationItem[]>>('navigation')
</script>

<template>
<div>
<UContainer>
<UPage>
<template #left>
<UPageAside>
<template #top>
<UContentSearchButton :collapsed="false" />
</template>

<UContentNavigation
:navigation="navigation"
highlight
/>
</UPageAside>
</template>

<NuxtPage />
</UPage>
</UContainer>
</div>
</template>
48 changes: 25 additions & 23 deletions app/pages/docs/[...slug].vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
definePageMeta({
layout: 'docs'
layout: 'default'
})

const route = useRoute()
Expand Down Expand Up @@ -30,28 +30,30 @@ defineOgImageComponent('Saas')
</script>

<template>
<UPage v-if="page">
<UPageHeader
:title="page.title"
:description="page.description"
/>

<UPageBody>
<ContentRenderer
v-if="page.body"
:value="page"
<div v-if="page">
<UPage>
<UPageHeader
:title="page.title"
:description="page.description"
/>

<USeparator v-if="surround?.length" />

<UContentSurround :surround="surround" />
</UPageBody>

<template
v-if="page?.body?.toc?.links?.length"
#right
>
<UContentToc :links="page.body.toc.links" />
</template>
</UPage>
<UPageBody>
<ContentRenderer
v-if="page.body"
:value="page"
/>

<USeparator v-if="surround?.length" />

<UContentSurround :surround="surround" />
</UPageBody>

<template
v-if="page?.body?.toc?.links?.length"
#right
>
<UContentToc :links="page.body.toc.links" />
</template>
</UPage>
</div>
</template>
Loading