Skip to content

Commit

Permalink
docs: tidy up content collections
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 18, 2025
1 parent a4e0758 commit 099c91b
Show file tree
Hide file tree
Showing 7 changed files with 151 additions and 258 deletions.
2 changes: 1 addition & 1 deletion docs/app/pages/blog/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ onMounted(() => {
</UPageBody>

<template #right>
<UContentToc v-if="post.body && post.body.toc" :links="post.body.toc.links" :title="toc.title" />
<UContentToc v-if="post.body && post.body.toc" :links="post.body.toc.links" :title="toc.title" highlight />
</template>
</UPage>
</UPage>
Expand Down
2 changes: 1 addition & 1 deletion docs/app/pages/changelog/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ onMounted(() => {
</UPageBody>

<template #right>
<UContentToc v-if="post.body && post.body.toc" :links="post.body.toc.links" :title="toc.title" />
<UContentToc v-if="post.body && post.body.toc" :links="post.body.toc.links" :title="toc.title" highlight />
</template>
</UPage>
</UPage>
Expand Down
2 changes: 1 addition & 1 deletion docs/app/pages/docs/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ onMounted(() => {
</div>

<template v-if="page.body?.toc" #right>
<UContentToc :title="toc?.title" :links="page.body?.toc?.links" />
<UContentToc :title="toc?.title" :links="page.body?.toc?.links" highlight />
</template>
</UPage>
</template>
28 changes: 14 additions & 14 deletions docs/app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ onMounted(() => {
</UModal>
</UPageHero>
<!-- features section -->
<UPageSection :ui="{ container: 'py-6 pb-12 sm:py-12 lg:py-12' }">
<UPageSection :ui="{ container: 'py-6 pb-12 sm:py-12 lg:py-12 xl:pb-24' }">
<ul class="grid grid-cols-1 gap-x-6 sm:grid-cols-2 lg:grid-cols-3 gap-y-6 lg:gap-x-8 lg:gap-y-8 xl:gap-y-10">
<li
v-for="feature in page?.features"
:key="feature.name"
:key="feature.title"
class="flex items-start gap-x-3 relative group"
:class="{ 'opacity-75': feature.soon }"
>
Expand All @@ -161,7 +161,7 @@ onMounted(() => {
</div>
<div class="flex flex-col">
<h2 class="font-medium text-(--ui-text-highlighted) inline-flex items-center gap-x-1">
{{ feature.name }} <UBadge v-if="feature.soon" color="neutral" variant="subtle" size="sm" class="rounded-full">
{{ feature.title }} <UBadge v-if="feature.soon" color="neutral" variant="subtle" size="sm" class="rounded-full">
Soon
</UBadge>
<UIcon v-if="feature.to" name="i-lucide-arrow-right" class="size-4 flex-shrink-0 opacity-0 group-hover:opacity-100 transition-all duration-200 -translate-x-1 group-hover:translate-x-0" />
Expand All @@ -175,13 +175,13 @@ onMounted(() => {
</UPageSection>

<UPageCTA
:description="page.creator.quote"
:description="page.testimonial.quote"
variant="subtle"
class="rounded-none"
:ui="{ container: 'sm:py-12 lg:py-12 sm:gap-8', description: 'before:content-[open-quote] after:content-[close-quote] !text-base' }"
>
<UUser
v-bind="page.creator.author"
v-bind="page.testimonial.author"
size="xl"
class="justify-center"
/>
Expand All @@ -194,7 +194,7 @@ onMounted(() => {
:key="index"
v-bind="feature"
orientation="vertical"
:ui="{ icon: 'text-(--ui-text-highlighted)' }"
:ui="{ leadingIcon: 'text-(--ui-text-highlighted)' }"
/>
</template>
</UPageSection>
Expand All @@ -210,10 +210,10 @@ onMounted(() => {
<ul class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-10 items-start justify-center">
<li v-for="step in page?.deploy.steps" :key="step.title" class="flex flex-col gap-y-8 justify-center group">
<UColorModeImage
:light="step.img.srcLight"
:dark="step.img.srcDark"
:width="step.img.width"
:height="step.img.height"
:light="step.image.light"
:dark="step.image.dark"
:width="step.image.width"
:height="step.image.height"
:alt="step.title"
lazy
/>
Expand Down Expand Up @@ -267,10 +267,10 @@ onMounted(() => {
/>
</template>
<UColorModeImage
:light="section.img.srcLight"
:dark="section.img.srcDark"
:width="section.img.width"
:height="section.img.height"
:light="section.image.light"
:dark="section.image.dark"
:width="section.image.width"
:height="section.image.height"
:alt="section.title"
/>
</UPageSection>
Expand Down
12 changes: 6 additions & 6 deletions docs/app/pages/pricing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,17 @@ onMounted(() => {
<ul class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-10 items-start justify-center">
<li v-for="step in home?.deploy.steps" :key="step.title" class="flex flex-col gap-y-8 justify-center group">
<NuxtImg
:src="step.img.srcDark"
:width="step.img.width"
:height="step.img.height"
:src="step.image.dark"
:width="step.image.width"
:height="step.image.height"
:alt="step.title"
class="hidden dark:block"
lazy
/>
<NuxtImg
:src="step.img.srcLight"
:width="step.img.width"
:height="step.img.height"
:src="step.image.light"
:width="step.image.width"
:height="step.image.height"
:alt="step.title"
class="block dark:hidden"
lazy
Expand Down
Loading

0 comments on commit 099c91b

Please sign in to comment.