diff --git a/components/Block/Carousel/CarouselCard.vue b/components/Block/Carousel/CarouselCard.vue index b89f0244..180625e7 100644 --- a/components/Block/Carousel/CarouselCard.vue +++ b/components/Block/Carousel/CarouselCard.vue @@ -18,6 +18,7 @@ const { data: cardData } = useAsyncData(`carousel-card-${props.uuid}`, () => 'image', 'external_url', 'button_text', + 'description', { page: ['permalink'] }, { resource: ['slug'] }, ], @@ -46,14 +47,15 @@ const buttonHref = computed(() => {
-
+

{{ cardData?.title }}

+

{{ cardData?.description }}

{ border-radius: var(--rounded-lg); margin-bottom: var(--space-3); } + .card-content { + display: flex; + flex-direction: column; + align-items: center; + } h2 { font-style: normal; font-family: var(--family-display); @@ -87,9 +94,15 @@ const buttonHref = computed(() => { max-width: var(--space-80); word-wrap: break-word; line-height: var(--line-height-2xl); - min-height: calc(var(--line-height-2xl) * 2); + overflow-wrap: break-word; } + .description { + min-height: calc(var(--line-height-2xl) * 1.5); + @media (max-width: 768px) { + max-width: 80%; + } + } .custom-button { margin-top: var(--space-3); } diff --git a/components/Block/MasonryGrid/MasonryGridCard.vue b/components/Block/MasonryGrid/MasonryGridCard.vue index 5275a781..b1396119 100644 --- a/components/Block/MasonryGrid/MasonryGridCard.vue +++ b/components/Block/MasonryGrid/MasonryGridCard.vue @@ -80,16 +80,22 @@ const isExternal = computed(() => !!cardData.value?.external_url); margin: 0 1% 1% 0; } + &:hover { + img { + filter: grayscale(0%) opacity(100%); + } + + .title a { + color: var(--primary-500); + } + } + img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) opacity(40%); transition: filter 0.3s ease-in-out; - - &:hover { - filter: grayscale(0%) opacity(100%); - } } .title { @@ -107,10 +113,6 @@ const isExternal = computed(() => !!cardData.value?.external_url); color: inherit; text-decoration: none; transition: color 0.3s ease; - - &:hover { - color: var(--primary-500); - } } } diff --git a/components/Block/WallOfLove/Testimonial.vue b/components/Block/WallOfLove/Testimonial.vue index cb257697..1996ebf1 100644 --- a/components/Block/WallOfLove/Testimonial.vue +++ b/components/Block/WallOfLove/Testimonial.vue @@ -1,9 +1,9 @@