Dev #12
@@ -1,7 +1,7 @@
|
|||||||
import Main from './main/main';
|
import Main from './main/main';
|
||||||
import Offer from './offer/offer';
|
import Offer from './offer/offer';
|
||||||
import Result from './result/result';
|
import Result from './result/result';
|
||||||
// import License from './license/license';
|
import License from './license/license';
|
||||||
// import Contacts from './contacts/contacts';
|
// import Contacts from './contacts/contacts';
|
||||||
// import Footer from './footer/footer';
|
// import Footer from './footer/footer';
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ export default function HomePage() {
|
|||||||
<Main />
|
<Main />
|
||||||
<Offer />
|
<Offer />
|
||||||
<Result />
|
<Result />
|
||||||
{/*<License />*/}
|
<License />
|
||||||
{/*<Contacts />*/}
|
{/*<Contacts />*/}
|
||||||
{/*<Footer />*/}
|
{/*<Footer />*/}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,32 +1,84 @@
|
|||||||
.License {
|
.License {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
padding: rem(32px) 0 0;
|
||||||
|
|
||||||
|
@include iftablet {
|
||||||
|
margin: 0 auto;
|
||||||
|
width: rem(712px);
|
||||||
|
padding: 0 0 rem(40px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include iflaptop {
|
||||||
|
width: rem(930px);
|
||||||
|
padding: 0 0 rem(60px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include ifdesktop {
|
||||||
width: rem(1340px);
|
width: rem(1340px);
|
||||||
padding: rem(120px) 0 rem(160px);
|
padding: 0 0 rem(160px);
|
||||||
|
}
|
||||||
|
|
||||||
.Header {
|
.Header {
|
||||||
font-family: $font-open-sans;
|
font-family: $font-open-sans;
|
||||||
font-weight: $font-semi-bold;
|
font-weight: $font-semi-bold;
|
||||||
font-size: rem(60px);
|
font-size: rem(28px);
|
||||||
line-height: 100%;
|
line-height: 100%;
|
||||||
color: $color-text;
|
color: $color-text;
|
||||||
|
padding: 0 rem(20px) 0;
|
||||||
|
margin-bottom: rem(40px);
|
||||||
|
|
||||||
|
@include iftablet {
|
||||||
|
padding: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include iflaptop {
|
||||||
|
font-size: rem(36px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include ifdesktop {
|
||||||
|
font-size: rem(60px);
|
||||||
margin-bottom: rem(80px);
|
margin-bottom: rem(80px);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.Slider {
|
.Slider {
|
||||||
|
margin-bottom: rem(40px);
|
||||||
|
padding: 0 rem(20px) 0;
|
||||||
|
|
||||||
|
@include iftablet {
|
||||||
|
padding: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include ifdesktop {
|
||||||
margin-bottom: rem(80px);
|
margin-bottom: rem(80px);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.Form {
|
.Form {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #292E3D;
|
background: #292E3D;
|
||||||
padding: rem(40px) rem(60px);
|
padding: rem(20px) rem(20px);
|
||||||
border-radius: rem(28px);
|
border-radius: rem(28px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: column;
|
||||||
gap: rem(40px);
|
gap: rem(40px);
|
||||||
|
|
||||||
|
@include iftablet {
|
||||||
|
flex-direction: row;
|
||||||
|
padding: rem(40px) rem(40px);
|
||||||
|
gap: rem(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include iflaptop {
|
||||||
|
padding: rem(40px) rem(60px);
|
||||||
|
gap: rem(40px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include ifdesktop {
|
||||||
|
}
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
@@ -54,24 +106,47 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
font-family: $font-open-sans;
|
font-family: $font-open-sans;
|
||||||
font-weight: $font-regular;
|
font-weight: $font-regular;
|
||||||
font-size: rem(48px);
|
font-size: rem(26px);
|
||||||
line-height: 110%;
|
line-height: 110%;
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
|
margin: 0 0 rem(20px);
|
||||||
|
|
||||||
|
@include iftablet {
|
||||||
|
font-size: rem(28px);
|
||||||
|
margin: 0 0 rem(36px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include iflaptop {
|
||||||
|
font-size: rem(32px);
|
||||||
|
margin: 0 0 rem(40px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include ifdesktop {
|
||||||
|
font-size: rem(48px);
|
||||||
margin: 0 0 rem(50px);
|
margin: 0 0 rem(50px);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.SubTitle {
|
.SubTitle {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
font-family: $font-open-sans;
|
font-family: $font-open-sans;
|
||||||
font-weight: $font-light;
|
font-weight: $font-light;
|
||||||
font-size: rem(30px);
|
font-size: rem(16px);
|
||||||
line-height: 100%;
|
line-height: 100%;
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
|
|
||||||
|
@include iftablet {
|
||||||
|
font-size: rem(20px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include ifdesktop {
|
||||||
|
font-size: rem(30px);
|
||||||
margin-bottom: rem(16px);
|
margin-bottom: rem(16px);
|
||||||
max-width: rem(820px);
|
max-width: rem(820px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.Inputs {
|
.Inputs {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -80,8 +155,16 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
align-self: center;
|
||||||
|
gap: rem(16px);
|
||||||
|
|
||||||
|
@include iftablet {
|
||||||
|
}
|
||||||
|
|
||||||
|
@include ifdesktop {
|
||||||
gap: rem(20px);
|
gap: rem(20px);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -105,13 +105,6 @@
|
|||||||
@include iftablet {
|
@include iftablet {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
gap: unset;
|
gap: unset;
|
||||||
}
|
|
||||||
@include iflaptop {
|
|
||||||
}
|
|
||||||
@include ifdesktop {
|
|
||||||
}
|
|
||||||
|
|
||||||
@include iftablet {
|
|
||||||
padding: rem(130px) 0 rem(160px);
|
padding: rem(130px) 0 rem(160px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,7 +113,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include ifdesktop {
|
@include ifdesktop {
|
||||||
padding: rem(160px) 0 rem(200px);
|
padding: rem(160px) 0 rem(120px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.Content {
|
.Content {
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
@include iftablet {
|
@include iftablet {
|
||||||
margin: 0 auto;
|
|
||||||
width: rem(712px);
|
width: rem(712px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,4 +6,5 @@
|
|||||||
|
|
||||||
.Slide {
|
.Slide {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,10 @@ import { StaticImport } from 'next/dist/shared/lib/get-img-props';
|
|||||||
import { clsx } from 'clsx';
|
import { clsx } from 'clsx';
|
||||||
|
|
||||||
import { Swiper, SwiperSlide } from 'swiper/react';
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
||||||
|
import { Grid } from 'swiper/modules';
|
||||||
import 'swiper/css';
|
import 'swiper/css';
|
||||||
|
import 'swiper/css/navigation';
|
||||||
|
import 'swiper/css/grid';
|
||||||
|
|
||||||
type LicenseSliderProps = {
|
type LicenseSliderProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
@@ -20,6 +23,25 @@ type LicenseSliderProps = {
|
|||||||
|
|
||||||
const mockFullSizeImage = 'images/empty-image.jpg';
|
const mockFullSizeImage = 'images/empty-image.jpg';
|
||||||
|
|
||||||
|
const swiperBreakpoints = {
|
||||||
|
360: {
|
||||||
|
slidesPerView: 1,
|
||||||
|
spaceBetween: 10,
|
||||||
|
},
|
||||||
|
768: {
|
||||||
|
slidesPerView: 2,
|
||||||
|
spaceBetween: 30,
|
||||||
|
},
|
||||||
|
1024: {
|
||||||
|
slidesPerView: 3,
|
||||||
|
spaceBetween: 30,
|
||||||
|
},
|
||||||
|
1440: {
|
||||||
|
slidesPerView: 3,
|
||||||
|
spaceBetween: 30,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
export default function LicenseSlider({
|
export default function LicenseSlider({
|
||||||
className,
|
className,
|
||||||
images,
|
images,
|
||||||
@@ -27,9 +49,10 @@ export default function LicenseSlider({
|
|||||||
return (
|
return (
|
||||||
<Swiper
|
<Swiper
|
||||||
className={clsx(s.Slider, className)}
|
className={clsx(s.Slider, className)}
|
||||||
slidesPerView={3}
|
modules={[Grid]}
|
||||||
onSlideChange={() => console.log('slide change')}
|
breakpoints={swiperBreakpoints}
|
||||||
onSwiper={(swiper) => console.log(swiper)}
|
// onSlideChange={() => console.log('slide change')}
|
||||||
|
// onSwiper={(swiper) => console.log(swiper)}
|
||||||
>
|
>
|
||||||
{images.map(({ id, name, image }) => (
|
{images.map(({ id, name, image }) => (
|
||||||
<SwiperSlide key={id}>
|
<SwiperSlide key={id}>
|
||||||
|
|||||||
Reference in New Issue
Block a user