Skip to content

Commit

Permalink
OS2UOL-919: Modal link added to video condtition + styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tutaru99 committed Nov 8, 2024
1 parent e6e1b48 commit e0b4d1e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion components/modals/TheModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,22 @@ onUnmounted(() => {
v-html="modalContent?.video_overlay_text"
></div>
</div>

<div v-if="modalContent?.field_video_url?.url">
<NuxtLink
:to="modalContent?.field_video_url?.url"
target="_blank"
class="the-modal__link"
>
{{ modalContent?.field_video_url?.url }}
</NuxtLink>
</div>
<BaseButton
v-if="modalContent?.field_video_url?.url"
type="button"
:button-data="{
title: 'Se video',
url: modalContent?.field_video_url.url,
url: modalContent?.field_video_url?.url,
target: '_blank',
}"
class="the-modal__button"
Expand Down Expand Up @@ -153,6 +163,16 @@ onUnmounted(() => {
margin: 20px 0;
}
&__link {
color: var(--color-text);
text-decoration: none;
transition: color 0.3s ease-in-out;
&:hover {
color: var(--color-primary);
}
}
svg {
font-size: 30px;
}
Expand Down

0 comments on commit e0b4d1e

Please sign in to comment.