File: //var/www/quadcode.com/src/components/blocks/white-label-broker/One.svelte
<script lang="ts">
import { t } from '$lib/translations';
import one from '../../../assets/images/white-label-broker/one/One.webp';
</script>
<div class="block-one">
<picture>
<img src={one} alt="" loading="lazy" />
</picture>
<p class="block-one__title">
{@html $t('white-label-broker.All the opportunities')} <br />
{@html $t('white-label-broker.for your complete brokerage business in one package')}
</p>
</div>
<style lang="scss">
@import 'src/scss/variables';
@import 'src/scss/media';
@import 'src/scss/mixins';
.block-one {
height: 820px;
position: relative;
@include breakpoint-down('deskL') {
height: 700px;
}
@include breakpoint-down('deskS') {
height: 360px;
}
@include breakpoint-down('tabM') {
height: 380px;
}
&:after {
content: '';
left: 0;
top: 0;
right: 0;
bottom: 0;
position: absolute;
background-color: rgba(175, 179, 192, 0.42);
}
img {
height: 100%;
width: 100%;
object-fit: cover;
object-position: center center;
}
&__title {
@include titleXL;
color: $techWhite;
text-shadow: 0 1px 200px #9ca6b4;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
text-align: center;
max-width: 730px;
width: 100%;
z-index: 1;
@include breakpoint-down('deskL') {
max-width: 737px;
}
@include breakpoint-down('deskS') {
max-width: 530px;
}
@include breakpoint-down('tabM') {
max-width: 90%;
}
> span {
color: $redPrimary;
}
}
}
:global(.block-one__title span){
color: $redPrimary;
}
</style>