diff --git a/app.vue b/app.vue index 7a5d6a6..5b3bf8a 100644 --- a/app.vue +++ b/app.vue @@ -20,6 +20,7 @@ type ApiPagesType = { title: string menu_title: string slug: string + external_link: string content: string image: string } @@ -31,6 +32,12 @@ type ApiReviewsType = { comment: string } +type ApiFooterType = { + id: number + text: string + small_text: boolean +} + import '@/assets/main.scss' const { data: seoData } = await useFetch(`${apiBase}/kp/1`) @@ -43,13 +50,16 @@ useSeoMeta({ // twitterCard: 'summary_large_image', }) -const { data: pagesData } = await useFetch(`${apiBase}/pages/`) +const { data: pagesData } = await useFetch(`${apiBase}/pages/?ordering=order`) const { data: reviewsData } = await useFetch(`${apiBase}/review/`) const about = (pagesData.value as ApiPagesType[]).find(el => el.slug == 'about') const reviews = (pagesData.value as ApiPagesType[]).find(el => el.slug == 'clients') const delivery = (pagesData.value as ApiPagesType[]).find(el => el.slug == 'delivery') + +const { data: footerData } = await useFetch(`${apiBase}/footer/`) + -
+
diff --git a/assets/main.scss b/assets/main.scss index c47a792..4559483 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -32,7 +32,7 @@ a[href^="/#"]:not([class*="btn"]) { @apply px-2 py-4 bg-slate-200; .k-logo { - @apply col-span-2 text-9xl text-orange-400; + @apply col-span-2 row-span-2 text-9xl text-orange-400; svg { @apply my-0 mx-auto; @@ -40,10 +40,10 @@ a[href^="/#"]:not([class*="btn"]) { } &-text { - @apply col-span-4 prose prose-p:text-sm; + @apply col-span-5 text-sm prose; &-small { - @apply col-span-8 col-start-3 prose prose-p:text-xs; + @apply col-span-10 col-start-3 text-xs prose; } } }