From 5c390fb88488d4a42614509e3d16ac441c85bbb0 Mon Sep 17 00:00:00 2001 From: AnnaSamtash Date: Sun, 24 Dec 2023 18:34:58 +0300 Subject: [PATCH] Slider --- src/css/js.css | 129 +++++++++++++++++++++++++++- src/css/reviews.css | 172 +------------------------------------- src/index.html | 13 ++- src/js/slider.js | 2 +- src/partials/reviews.html | 68 +++------------ 5 files changed, 151 insertions(+), 233 deletions(-) diff --git a/src/css/js.css b/src/css/js.css index 072e991..5f33164 100644 --- a/src/css/js.css +++ b/src/css/js.css @@ -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; } \ No newline at end of file diff --git a/src/css/reviews.css b/src/css/reviews.css index be7019c..b8a4d60 100644 --- a/src/css/reviews.css +++ b/src/css/reviews.css @@ -16,7 +16,7 @@ margin-right: auto; } -.reviews-list-item-first { +.reviews-list-item { padding: 32px 8px; border-radius: 24px; background: #FBFBFB; @@ -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; @@ -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; -} @@ -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; } } @@ -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; } } @@ -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; - } } \ No newline at end of file diff --git a/src/index.html b/src/index.html index 892afe5..ba7865a 100644 --- a/src/index.html +++ b/src/index.html @@ -5,8 +5,17 @@ YACHTJET - - + + + alt="John Wax" />

John Wax

-

+

I rented the Lagoon 620 with my family for a week-long vacation and it was the best decision ever. The yacht was spacious, comfortable, and luxurious, and the crew took care of everything. @@ -38,7 +38,7 @@

John Wax

alt="Victoria Romashenko" />

Victoria Romashenko

-

+

The Sunseeker Manhattan 66 was the perfect choice for our romantic getaway. The yacht was beautifully designed, with all the amenities we needed, and the crew was attentive and friendly. @@ -55,66 +55,18 @@

Victoria Romashenko

alt="Ihor Trachuk" />

Ihor Trachuk

-

+

The Azimut 80 was the most luxurious yacht I've ever been on. The cabins were spacious and elegant, and the outdoor areas were perfect for relaxing and entertaining. Worth every penny!

-
  • -

    Leave a review

    -
    - - - - - - -
    -
  • -
    +
    Ihor Trachuk alt="John Wax" />

    John Wax

    -

    +

    I rented the Lagoon 620 with my family for a week-long vacation and it was the best decision ever. The yacht was spacious, comfortable, and luxurious, and the crew took care of everything.

    -
    +
    John Wax alt="Victoria Romashenko" />

    Victoria Romashenko

    -

    +

    The Sunseeker Manhattan 66 was the perfect choice for our romantic getaway. The yacht was beautifully designed, with all the amenities we needed, and the crew was attentive and friendly.

    -
    +
    Victoria Romashenko alt="Ihor Trachuk" />

    Ihor Trachuk

    -

    +

    The Azimut 80 was the most luxurious yacht I've ever been on. The cabins were spacious and elegant, and the outdoor areas were perfect for relaxing and entertaining. Worth every penny!

    -
    +

    Leave a review