Skip to content

Commit

Permalink
Slider
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaSamtash committed Dec 24, 2023
1 parent e3f0d5a commit 5c390fb
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 233 deletions.
129 changes: 125 additions & 4 deletions src/css/js.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,129 @@
.slide>.slick-prev:before,
.slide>.slick-next:before {
color: #4d5ae5;
.slider {
display: none;
}

.slick-initialized .slick-track .slick-slide {
.slider-item {
height: 282px;
border-radius: 24px;
background: #FBFBFB;
flex-shrink: 1;
padding: 32px 8px;
margin-right: 2px;
margin-left: 2px;
}

.reviews-form-label-file {
display: block;
width: 100%;
}

.review-form-text {
text-align: center;
font-size: 18px;
font-weight: 500;
line-height: 1.1;
letter-spacing: -0.02em;
color: #040306;
margin-bottom: 12px;
}

.reviews-list-item-form {
padding: 16px 8px;
border-radius: 24px;
background: #FBFBFB;
height: 282px;
}

.reviews-form-file {
z-index: 2;
margin-bottom: 8px;
width: 56px;
height: 56px;
margin-left: 130px;
display: inline-block;
border: 1px solid #1B414B;
}

.reviews-form-label-file {
display: flex;
justify-content: center;
align-items: center;
color: rgba(4, 3, 6, 0.40);
text-align: center;
font-size: 16px;
font-weight: 400;
line-height: 1.4;
letter-spacing: -0.02em;
display: inline-block;
cursor: pointer;
}

.reviews-form-input {
padding: 10px 10px;
margin-bottom: 8px;
color: rgba(4, 3, 6, 0.40);
font-size: 12px;
font-weight: 400;
line-height: 1.16;
letter-spacing: -0.02em;
border-radius: 12px;
border: 1px solid #1B414B;
width: 100%;
height: 36px;
}

.input-file-btn {
border-radius: 50%;
width: 58px;
height: 58px;
border: 1px solid #1B414B;
display: block;
margin-left: auto;
margin-right: auto;
font-size: 11px;
font-weight: 400;
line-height: 1;
padding-top: 16px;
color: rgba(4, 3, 6, 0.40);
margin-bottom: 20px;
}

.reviews-form-textarea {
padding: 10px 10px;
color: rgba(4, 3, 6, 0.40);
font-size: 12px;
font-weight: 400;
line-height: 1.16;
letter-spacing: -0.02em;
border-radius: 12px;
border: 1px solid #1B414B;
width: 100%;
height: 80px;
resize: none;
position: relative;
}

.reviews-form-textarea::placeholder,
.reviews-form-input::placeholder {
font-size: 11px;
font-weight: 400;
line-height: 1;
padding: 10px 10px;
color: rgba(4, 3, 6, 0.40);
}

.reviews-form-btn {
border: none;
background-color: transparent;
width: 30px;
height: 30px;
padding: 0;
line-height: 0;
position: absolute;
bottom: 20px;
right: 20px;
}

.reviews-form-icon-send {
fill: #1B414B;
}
172 changes: 4 additions & 168 deletions src/css/reviews.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
margin-right: auto;
}

.reviews-list-item-first {
.reviews-list-item {
padding: 32px 8px;
border-radius: 24px;
background: #FBFBFB;
Expand All @@ -37,7 +37,7 @@
margin-bottom: 8px;
}

.reviews-list-text-first {
.reviews-list-text {
color: rgba(4, 3, 6, 0.40);
text-align: center;
font-size: 16px;
Expand All @@ -49,118 +49,6 @@
margin-right: auto;
}

.reviews-list-item-form {
display: none;
}

.review-form-text {
text-align: center;
font-size: 18px;
font-weight: 500;
line-height: 1.1;
letter-spacing: -0.02em;
color: #040306;
margin-bottom: 12px;
}

.reviews-list-item-form {
padding: 16px 8px;
border-radius: 24px;
background: #FBFBFB;
height: 282px;
}

.reviews-form-file {
z-index: 2;
margin-bottom: 8px;
width: 56px;
height: 56px;
margin-left: 130px;
display: inline-block;
border: 1px solid #1B414B;
}

.reviews-form-label-file {
display: flex;
justify-content: center;
align-items: center;
color: rgba(4, 3, 6, 0.40);
text-align: center;
font-size: 16px;
font-weight: 400;
line-height: 1.4;
letter-spacing: -0.02em;
display: inline-block;
cursor: pointer;
}

.reviews-form-input {
padding: 10px 10px;
margin-bottom: 8px;
color: rgba(4, 3, 6, 0.40);
font-size: 12px;
font-weight: 400;
line-height: 1.16;
letter-spacing: -0.02em;
border-radius: 12px;
border: 1px solid #1B414B;
width: 100%;
height: 36px;
}

.input-file-btn {
border-radius: 50%;
width: 58px;
height: 58px;
border: 1px solid #1B414B;
display: inline-block;
font-size: 11px;
font-weight: 400;
line-height: 1;
padding-top: 16px;
color: rgba(4, 3, 6, 0.40);
margin-left: 130px;
margin-bottom: 20px;
}

.reviews-form-textarea {
padding: 10px 10px;
color: rgba(4, 3, 6, 0.40);
font-size: 12px;
font-weight: 400;
line-height: 1.16;
letter-spacing: -0.02em;
border-radius: 12px;
border: 1px solid #1B414B;
width: 100%;
height: 80px;
resize: none;
}

.reviews-form-textarea::placeholder,
.reviews-form-input::placeholder {
font-size: 11px;
font-weight: 400;
line-height: 1;
padding: 10px 10px;
color: rgba(4, 3, 6, 0.40);
}

.reviews-form-btn {
border: none;
background-color: transparent;
width: 30px;
height: 30px;
padding: 0;
line-height: 0;
position: absolute;
bottom: 40px;
right: 30px;
}

.reviews-form-icon-send {
fill: #1B414B;
}



Expand Down Expand Up @@ -205,22 +93,8 @@
width: calc((100% - 32px) / 2);
}

.reviews-list-item-second {
padding: 32px 8px;
border-radius: 24px;
background: #FBFBFB;
}

.reviews-list-text-second {
color: rgba(4, 3, 6, 0.40);
text-align: center;
font-size: 16px;
font-weight: 400;
line-height: 1.4;
letter-spacing: -0.02em;
.reviews-list-text {
max-width: 296px;
margin-left: auto;
margin-right: auto;
}
}

Expand All @@ -242,40 +116,12 @@

.reviews-list-item {
width: calc((100% - 52px) / 3);
}

.reviews-list-item-first {
padding: 32px 28px;
}

.reviews-list-text-first {
max-width: 320px;
}

.reviews-list-item-second {
padding: 32px 28px;
}

.reviews-list-text-second {
max-width: 320px;
}

.reviews-list-item-third {
padding: 32px 28px;
border-radius: 24px;
background: #FBFBFB;
}

.reviews-list-text-third {
color: rgba(4, 3, 6, 0.40);
text-align: center;
font-size: 16px;
font-weight: 400;
line-height: 1.4;
letter-spacing: -0.02em;
.reviews-list-text {
max-width: 293px;
margin-left: auto;
margin-right: auto;
}

}
Expand All @@ -292,17 +138,7 @@

.reviews-list-item {
width: calc((100% - 64px) / 3);
}

.reviews-list-item-first {
padding: 32px 36px;
}

.reviews-list-item-second {
padding: 32px 36px;
}

.reviews-list-item-third {
padding: 32px 36px;
}
}
13 changes: 11 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>YACHTJET</title>
<link rel="stylesheet" type="text/css" href="slick/slick.css" />
<link rel="stylesheet" type="text/css" href="slick/slick-theme.css" />
<link
rel="stylesheet"
type="text/css"
href="//cdn.jsdelivr.net/npm/[email protected]/slick/slick.css"
/>
<link
rel="stylesheet"
type="text/css"
href="//cdn.jsdelivr.net/npm/[email protected]/slick/slick-theme.css"
/>

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
Expand Down
2 changes: 1 addition & 1 deletion src/js/slider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$('.responsive').slick({
dots: true,
dots: false,
infinite: false,
speed: 300,
slidesToShow: 4,
Expand Down
Loading

0 comments on commit 5c390fb

Please sign in to comment.