diff --git a/app.vue b/app.vue index cab31dc..ca6197e 100644 --- a/app.vue +++ b/app.vue @@ -16,9 +16,12 @@ type ApiKpType = { type ApiPagesType = { id: number title: string + slug: string content: string } +import '@/assets/main.scss' + const { data: seoData } = await useFetch(`${apiBase}/kp/1`) useSeoMeta({ title: seoData.value?.title, @@ -29,8 +32,8 @@ useSeoMeta({ // twitterCard: 'summary_large_image', }) -const { data: pagesData } = await useFetch(`${apiBase}/pages/`) -import '@/assets/main.scss' +const { data: pagesData } = await useFetch(`${apiBase}/pages/`) +const about = (pagesData.value as ApiPagesType[]).find(el => el.slug == 'about') diff --git a/assets/main.scss b/assets/main.scss index 556a200..a9f7f74 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -9,7 +9,7 @@ body { } .container { - @apply max-w-7xl mx-auto grid grid-cols-12 + @apply max-w-7xl mx-auto grid grid-cols-12 items-center } .header { @@ -25,5 +25,19 @@ body { } a[href^="/#"] { - @apply underline decoration-dotted underline-offset-2 decoration-neutral-500 + @apply underline decoration-dotted underline-offset-4 decoration-neutral-500 +} + +.block { + @apply py-10; + &-content { + @apply col-span-6 + } + &-title { + @apply text-5xl text-black + } + &-image { + @apply col-span-6 bg-slate-400; + min-height: 50vh; + } } \ No newline at end of file