Files
landing_page/qdrant-landing/themes/qdrant-2024/assets/css/partials/_demos.scss
T

141 lines
2.7 KiB
SCSS

@use '../helpers/functions' as *;
.demos {
background-color: $neutral-94;
padding-top: $spacer * 4;
padding-bottom: $spacer * 4;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
&__title {
font-size: pxToRem(40);
line-height: pxToRem(48);
text-align: start;
margin-bottom: $spacer * 1.5;
max-width: 100%;
}
&__subtitle {
font-size: map-get($font-sizes-text, 'l');
line-height: pxToRem(27);
margin: 0;
max-width: 100%;
text-align: start;
}
&__cards {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
min-width: 100%;
row-gap: $spacer * 2;
margin-top: ($spacer * 4);
}
&__card-title {
color: $neutral-20;
margin-top: calc($spacer / 2);
margin-bottom: $spacer * 1.5;
font-size: pxToRem(24);
line-height: pxToRem(34);
}
&__card-description {
color: $neutral-30;
font-size: pxToRem(16);
line-height: pxToRem(24);
margin-bottom: $spacer * 1.5;
}
&__card-description p {
margin-bottom: $spacer * 1.5;
}
&__card-description p:last-of-type {
margin-bottom: 0;
}
&__card-image {
width: 100%;
height: 100%;
margin-top: $spacer * 2.5;
margin-left: auto;
margin-right: auto;
max-width: pxToRem(287);
max-height: pxToRem(197);
aspect-ratio: 1.46;
background-size: contain;
background-color: $neutral-98;
background-repeat: no-repeat;
background-position: center;
box-shadow: 0px 5.13px 10.25px 0px rgba(22, 30, 51, 0.1);
}
@include media-breakpoint-up(xl) {
padding-top: $spacer * 7.5;
padding-bottom: $spacer * 10;
&__header {
display: flex;
justify-content: space-between;
}
&__title {
font-size: map-get($font-sizes, 2);
line-height: pxToRem(67);
max-width: pxToRem(445);
margin-bottom: 0;
}
&__subtitle {
font-size: map-get($font-sizes-text, 'xl');
max-width: pxToRem(540);
line-height: pxToRem(30);
}
&__cards {
margin-top: $spacer * 7.5;
row-gap: $spacer * 2.5;
}
&__card {
flex-direction: row;
padding-top: $spacer * 4;
padding-left: $spacer * 5;
padding-bottom: $spacer * 4;
padding-right: 0;
}
&__card-content {
max-width: pxToRem(400);
display: flex;
flex-direction: column;
justify-content: center;
}
&__card-title {
margin-top: 0;
font-size: pxToRem(32);
line-height: pxToRem(38);
}
&__card-description {
font-size: pxToRem(16);
line-height: pxToRem(24);
}
&__card-image {
margin: 0;
max-width: pxToRem(560);
max-height: pxToRem(384);
}
}
}