File tree Expand file tree Collapse file tree 8 files changed +871
-957
lines changed Expand file tree Collapse file tree 8 files changed +871
-957
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,18 @@ export default defineAppConfig({
66 neutral : 'slate' ,
77 } ,
88 } ,
9+ uiPro : {
10+ pageHero : {
11+ slots : {
12+ title : 'font-semibold sm:text-6xl' ,
13+ description : 'sm:text-lg text-[var(--ui-text-toned)] max-w-5xl mx-auto' ,
14+ } ,
15+ } ,
16+ pageSection : {
17+ slots : {
18+ title : 'font-semibold lg:text-4xl' ,
19+ featureLeadingIcon : 'text-[var(--ui-text-highlighted)]' ,
20+ } ,
21+ } ,
22+ } ,
923} )
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ defineShortcuts({
4242 variant =" subtle"
4343 trailing-icon =" i-lucide-chevron-down"
4444 size =" xs"
45- class =" -mb-[3px] font-semibold rounded-full truncate"
45+ class =" -mb-[3px] font-semibold rounded-full truncate hidden sm:flex "
4646 :class =" [open && 'bg-[var(--ui-primary)]/15 ']"
4747 :ui =" {
4848 trailingIcon: ['transition-transform duration-200', open ? 'rotate-180' : undefined].filter(Boolean).join(' '),
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22const siteConfig = useSiteConfig ()
33
4- const { data : page } = await useAsyncData (' index ' , () => queryCollection (' home' ).first ())
4+ const { data : page } = await useAsyncData (' landing ' , () => queryCollection (' home' ).first ())
55if (! page .value ) {
66 throw createError ({ statusCode: 404 , statusMessage: ' Page not found' , fatal: true })
77}
@@ -17,62 +17,8 @@ useSeoMeta({
1717 </script >
1818
1919<template >
20- <div v-if =" page" >
21- <UPageHero
22- v-bind =" page.hero"
23- :ui =" {
24- title: 'font-semibold sm:text-6xl',
25- description: 'sm:text-lg text-[var(--ui-text-toned)] max-w-5xl mx-auto',
26- }"
27- >
28- <template
29- v-if =" page .hero ?.title "
30- #title
31- >
32- <MDC
33- :value =" page.hero.title"
34- unwrap =" p"
35- />
36- </template >
37-
38- <UColorModeImage
39- v-if =" page.hero?.image"
40- v-bind =" page.hero.image"
41- class =" z-[-1]"
42- />
43- </UPageHero >
44-
45- <UPageSection
46- v-for =" (section, index) in page.sections"
47- :key =" index"
48- v-bind =" section"
49- :ui =" {
50- title: 'font-semibold lg:text-4xl',
51- featureLeadingIcon: 'text-[var(--ui-text-highlighted)]',
52- container: section.code ? 'lg:items-start' : '',
53- wrapper: section.code ? 'pt-10' : '',
54- ...(section.ui || {}),
55- }"
56- >
57- <template
58- v-if =" section .title "
59- #title
60- >
61- <MDC
62- :value =" section.title"
63- unwrap =" p"
64- />
65- </template >
66-
67- <MDC
68- v-if =" section.code"
69- :value =" section.code"
70- />
71- <UColorModeImage
72- v-else-if =" section.image"
73- v-bind =" section.image"
74- class =" z-[-1]"
75- />
76- </UPageSection >
77- </div >
20+ <ContentRenderer
21+ v-if =" page"
22+ :value =" page"
23+ />
7824</template >
Original file line number Diff line number Diff line change @@ -19,42 +19,6 @@ export const collections = {
1919 } ) ,
2020 home : defineCollection ( {
2121 type : 'page' ,
22- source : 'index.yml' ,
23- schema : z . object ( {
24- hero : z . object ( {
25- title : z . string ( ) ,
26- description : z . string ( ) ,
27- links : z . array ( z . object ( {
28- label : z . string ( ) ,
29- icon : z . string ( ) ,
30- to : z . string ( ) ,
31- } ) ) . optional ( ) ,
32- image : z . object ( {
33- dark : z . string ( ) ,
34- light : z . string ( ) ,
35- } ) . optional ( ) ,
36- } ) . optional ( ) ,
37- sections : z . array ( z . object ( {
38- title : z . string ( ) ,
39- description : z . string ( ) . optional ( ) ,
40- class : z . string ( ) . optional ( ) ,
41- code : z . string ( ) . optional ( ) ,
42- ui : z . object ( { } ) . optional ( ) ,
43- features : z . array ( z . object ( {
44- icon : z . string ( ) . optional ( ) ,
45- title : z . string ( ) . optional ( ) ,
46- description : z . string ( ) . optional ( ) ,
47- } ) ) . optional ( ) ,
48- links : z . array ( z . object ( {
49- label : z . string ( ) ,
50- icon : z . string ( ) ,
51- to : z . string ( ) ,
52- } ) ) . optional ( ) ,
53- image : z . object ( {
54- dark : z . string ( ) ,
55- light : z . string ( ) ,
56- } ) . optional ( ) ,
57- } ) ) . optional ( ) ,
58- } ) ,
22+ source : 'index.md' ,
5923 } ) ,
6024}
You can’t perform that action at this time.
0 commit comments