Files
landing_page/qdrant-landing/themes/qdrant-2024/assets/css/partials/_hero.scss
T
trean e70771dde3 Some fixes for new site (#929)
* menu fix

* hybrid cloud partners overlay fix

* pricing adjustment

* email form error message fix

* marketplaces overlay fix

* body's scroll over the mobile menu fix

* pricing fix

* benchmarks plot labels fix
2024-05-30 19:00:38 +02:00

174 lines
3.2 KiB
SCSS

@use '../helpers/functions' as *;
@use 'sass:math';
.hero {
padding-top: $spacer * 2.5;
position: relative;
background: url('/img/stars-pattern.png') $neutral-10;
&__content {
text-align: center;
max-width: 100%;
margin: 0 auto;
width: 100%;
}
&__image {
width: 100%;
min-height: rem(480);
margin: rem(-142) auto 0;
overflow: hidden;
@include media-breakpoint-up(md) {
$height: math.div(-100vw, 2.46); // image's aspect ratio 2.46 / 1
margin-top: calc(#{$height} * 0.34);
}
img {
display: block;
width: 250%;
height: auto;
margin-left: -75%;
@include media-breakpoint-up(md) {
width: 100%;
margin-left: 0;
}
}
}
&__title {
color: $neutral-98;
text-align: center;
width: 100%;
margin-bottom: $spacer;
font-size: map-get($font-sizes, 4);
line-height: rem(48);
}
&__subtitle {
color: $neutral-70;
text-align: center;
font-size: rem(18);
line-height: rem(27);
max-width: 100%;
margin: 0 auto $spacer * 1.5;
}
&__buttons {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: $spacer * 1.5;
margin-bottom: $spacer * 5;
}
&__buttons a {
min-width: rem(200);
}
&__stars {
position: absolute;
right: $spacer;
bottom: $spacer;
border-radius: 8px;
border: none;
outline: none;
display: flex;
align-items: center;
justify-content: center;
padding-top: calc($spacer / 2);
padding-bottom: calc($spacer / 2);
padding-left: rem(20);
padding-right: rem(20);
background-color: $neutral-10;
transition: bottom 1s ease-in-out;
}
&__stars svg {
max-width: rem(24);
max-height: rem(24);
}
&__stars-text {
color: $neutral-98;
margin-right: calc($spacer / 2);
margin-left: calc($spacer / 2);
font-size: map-get($font-sizes-text, 's');
line-height: rem(21);
font-weight: 500;
}
&__stars-count {
border-radius: 6px;
border: 1px solid $neutral-30;
color: $neutral-98;
padding-left: calc($spacer / 2);
padding-right: calc($spacer / 2);
display: flex;
align-items: center;
justify-content: center;
gap: calc($spacer / 4);
height: rem(25);
font-size: map-get($font-sizes-text, 's');
line-height: rem(21);
}
@include media-breakpoint-up(xl) {
padding-top: $spacer * 5;
&__content {
padding: 0;
max-width: rem(920);
}
&__title {
font-size: map-get($font-sizes, 1);
line-height: rem(76);
}
&__subtitle {
font-size: map-get($font-sizes-text, 'xl');
line-height: rem(30);
max-width: rem(640);
margin: 0 auto $spacer * 2;
}
&__buttons {
flex-direction: row;
align-items: flex-start;
}
&__buttons a {
min-width: auto;
}
&__stars {
position: fixed;
right: $spacer * 1.5;
bottom: $spacer * 1.5;
transition: background-color 0.2s;
z-index: 2;
&:hover {
background-color: $neutral-100;
.hero__stars-text,
.hero__stars-count {
color: $neutral-20;
}
& > svg path {
fill: $neutral-20;
}
}
}
}
}