84 lines
1.6 KiB
Vue
84 lines
1.6 KiB
Vue
<template>
|
|
<div class="send-banner-container">
|
|
<div class="send-banner-wrapper custom-container">
|
|
<p class="banner-paragraph" v-if="leftText">{{ leftText }}</p>
|
|
<p class="banner-paragraph" v-if="rightText">{{ rightText }}</p>
|
|
<p class="banner-paragraph mobile" v-if="mobileText">{{ mobileText }}</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
|
|
export default defineComponent({
|
|
name: 'send-banner',
|
|
props: {
|
|
leftText: {
|
|
type: String,
|
|
default: '',
|
|
required: true,
|
|
},
|
|
rightText: {
|
|
type: String,
|
|
default: '',
|
|
required: true,
|
|
},
|
|
mobileText: {
|
|
type: String,
|
|
default: '',
|
|
required: true,
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.send-banner-container {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 47px;
|
|
width: 100%;
|
|
position: relative;
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background-color: $primary-dark;
|
|
opacity: 0.6;
|
|
backdrop-filter: blur(2px);
|
|
z-index: -1;
|
|
}
|
|
|
|
& .send-banner-wrapper {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: $white;
|
|
& .banner-paragraph {
|
|
color: currentColor;
|
|
|
|
&.mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
@media only screen and (max-width: $med-md) {
|
|
justify-content: center;
|
|
& .banner-paragraph {
|
|
display: none;
|
|
&.mobile {
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: $med-md) {
|
|
&.remove-mobile {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
</style>
|