From f6b2f6d7faae498e50e64425064f149c20688fd2 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Thu, 11 Jul 2024 11:58:03 +0300 Subject: [PATCH 1/4] footer text --- assets/main.scss | 43 ++++++++++++++++++++++++++------ components/footer.vue | 57 +++++++++++++++++++++++++++++++------------ 2 files changed, 78 insertions(+), 22 deletions(-) diff --git a/assets/main.scss b/assets/main.scss index 45156b9..e152edd 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -50,12 +50,13 @@ body { @apply col-span-10 flex justify-end; a { - @apply hover:text-ioprim-900 transition-colors; + @apply text-zinc-800 hover:text-ioprim-900 transition-colors; &:before { content: ''; - @apply inline-block w-[2px] h-5 mx-4 align-middle bg-gradient-to-t from-transparent via-[#333333] via-50% to-transparent; + @apply inline-block w-[2px] h-5 mx-4 align-middle bg-gradient-to-t from-transparent via-zinc-800 via-50% to-transparent; } + &:first-child::before { content: none; } @@ -76,14 +77,14 @@ a[href^="#"] { } .footer { - @apply px-2 py-4 bg-slate-200; + @apply px-2 py-4 bg-slate-200 text-zinc-800; .container { @apply gap-4 } .k-logo { - @apply col-span-12 xl:col-span-2 row-span-3 text-9xl; + @apply col-span-12 xl:col-span-2 row-span-3 text-9xl text-ioprim; svg { @apply my-0 mx-auto; @@ -91,16 +92,44 @@ a[href^="#"] { } &-text { - @apply col-span-12 xl:col-span-5 text-sm prose; + @apply col-span-12 xl:col-span-5 text-sm mb-2; &-small { - @apply col-span-12 xl:col-span-10 text-xs min-w-full prose; + @apply col-span-12 xl:col-span-10 text-xs min-w-full; } &-social { - @apply col-span-12 xl:col-span-10 flex gap-4 + @apply col-span-12 xl:col-span-10 flex gap-4 flex-wrap justify-center; } } + + &-icon { + @apply order-2 flex justify-center items-center gap-2; + + &:hover { + .footer-icon-text { + @apply no-underline; + } + } + + svg { + @apply mb-0; + } + + &-big { + @apply text-3xl order-1 w-full text-center; + .footer-icon-text { + @apply no-underline; + } + } + + &-text { + @apply underline; + } + } + &_two { + @apply xl:bg-slate-200 py-16 text-sm text-zinc-500; + } } .siteblock { diff --git a/components/footer.vue b/components/footer.vue index 2efc357..c618299 100644 --- a/components/footer.vue +++ b/components/footer.vue @@ -15,22 +15,49 @@ const { data: footerData } = await apiFetch(`footer/?ordering=s const { data: social_networkData } = await apiFetch(`social_network/`)