DigitalConsumer.FixMyGlass/src/layouts/quote/promo-banner/promo-banner.vue
2026-07-17 14:10:44 -04:00

59 lines
1.3 KiB
Vue

<template>
<div class="promo-banner" role="note">
<img class="promo-banner__icon" :src="promoTagIcon" alt="" width="31" height="36" />
<p class="promo-banner__copy mb-0" v-html="promoBannerBodyText"></p>
</div>
</template>
<script>
export default {
name: "promo-banner",
props: {
cmsWidgetName: String,
},
computed: {
promoTagIcon() {
return this.getCmsContent(this.cmsWidgetName, "Image");
},
promoBannerBodyText() {
return this.getCmsContent(this.cmsWidgetName, "BodyText");
},
},
};
</script>
<style lang="scss" scoped>
.promo-banner {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 1rem;
width: 100%;
padding: 1rem 1.25rem;
background-color: $gray-100;
border-radius: 1rem;
text-align: left;
@include media-breakpoint-up(md) {
justify-content: center;
text-align: center;
}
&__icon {
flex-shrink: 0;
width: 31px;
height: 36px;
}
&__copy {
color: $gray-650;
font-size: $font-size-14;
line-height: 1.5;
:deep(strong) {
font-family: UrbanistSemibold, Arial, Helvetica, sans-serif;
color: $black;
}
}
}
</style>