File: /var/www/quadcode.com/src/components/blocks/trading-platform/NotEnough.svelte
<script lang="ts">
import { t } from '$lib/translations';
</script>
<div class="block-not-enough">
<div class="container">
<div class="block-not-enough__wrapper">
<div class="block-not-enough__animation">
<div id="block-not-enough__animation_container">
<canvas id="block-not-enough__canvas" width="680" height="280" />
<div id="block-not-enough__dom_overlay_container" />
</div>
</div>
<div class="block-not-enough__content">
<p class="block-not-enough__title">{$t('trading-platform.Not enough?')}</p>
<p class="block-not-enough__text">
{$t('trading-platform.Quadcode Scripts allows clients to create custom tech analysis tools themselves.')}
<br />
{$t('trading-platform.Using QCS, the Lua-based language for creating tech analysis instruments, traders can innovate and model the market themselves.')}
</p>
</div>
</div>
</div>
</div>
<style lang="scss">
@import 'src/scss/variables';
@import 'src/scss/media';
@import 'src/scss/mixins';
@import 'src/scss/trading-platform/mixins';
.block-not-enough {
background: #040E22;
color: $techWhite;
border-radius: 0 0 40px 40px;
padding-top: 64px;
padding-bottom: 156px;
@include breakpoint-down('deskL') {
padding-top: 57px;
padding-bottom: 88px;
border-radius: 0 0 20px 20px;
}
@include breakpoint-down('deskS') {
padding-top: 24px;
padding-bottom: 70px;
}
@include breakpoint-down('tabM') {
padding-bottom: 28px;
}
.container {
max-width: 62%;
@include breakpoint-down('deskL') {
max-width: 930px;
}
@include breakpoint-down('tabL') {
max-width: 100%;
padding: 0 17px;
}
}
&__wrapper {
display: flex;
align-items: center;
gap: 82px;
@include breakpoint-down('deskL') {
gap: 40px;
}
@include breakpoint-down('deskS') {
align-items: flex-start;
}
@include breakpoint-down('tabM') {
gap: 20px;
flex-direction: column;
}
}
&__content {
@include breakpoint-down('deskS') {
padding-top: 5.75px;
}
@include breakpoint-down('tabM') {
padding-inline: 20px;
padding-top: 0;
display: flex;
flex-direction: column;
align-items: center;
}
}
&__animation {
width: 551px;
min-width: 551px;
height: 267px;
@include breakpoint-down('deskL') {
width: 407px;
min-width: 407px;
height: 198px;
}
@include breakpoint-down('deskS') {
width: 337px;
min-width: 337px;
height: 164px;
}
@include breakpoint-down('tabM') {
width: 100%;
min-width: 280px;
max-width: 435px;
min-height: 143px;
}
}
#block-not-enough__animation_container {
background-color: rgba(248, 251, 253, 1);
position: relative;
width: 100% !important;
height: 100% !important;
max-width: 680px;
}
#block-not-enough__canvas {
position: absolute;
display: block;
background-color: rgba(248, 251, 253, 1);
width: 100% !important;
height: 100% !important;
}
#block-not-enough__dom_overlay_container {
pointer-events: none;
overflow: hidden;
width: 100% !important;
height: 100% !important;
position: absolute;
left: 0;
top: 0;
display: block;
}
&__title {
font-size: 42px;
line-height: 42px;
color: $redPrimary;
margin-bottom: 35.5px;
font-weight: 700;
width: 320px;
@include breakpoint-down('deskL') {
font-size: 24px;
line-height: 29.23px;
margin-bottom: 10px;
}
@include breakpoint-down('deskS') {
font-size: 18px;
line-height: 19.8px;
margin-bottom: 18.5px;
}
@include breakpoint-down('tabM') {
width: 131px;
margin-bottom: 12px;
}
}
&__text {
@include text;
@include breakpoint-down('tabM') {
text-align: center;
}
}
}
:global(._locale) {
.block-not-enough__title {
@include breakpoint-down('tabM') {}
width: 100%;
text-align: center;
}
}
</style>