Skip to content

Commit

Permalink
update hero
Browse files Browse the repository at this point in the history
change div background hight
  • Loading branch information
AnnaSamtash committed Dec 24, 2023
1 parent e425651 commit e3f0d5a
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 12 deletions.
12 changes: 4 additions & 8 deletions src/css/hero.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.background-picture {
width: 100%;
height: 812px;
}

.background-picture {
Expand All @@ -11,7 +10,7 @@
url(../img/hero/background-hero-mobil.jpg);
background-repeat: no-repeat;
background-position: 50% 0;
background-size: cover;
background-size: 100% 812px;
}

@media screen and (min-resolution: 192dpi),
Expand Down Expand Up @@ -89,9 +88,6 @@ screen and (min-device-pixel-ratio: 2) {

/*-----TABLET-----*/

.background-picture {
height: 962px;
}

@media screen and (min-width: 768px) {
.background-picture {
Expand All @@ -100,6 +96,7 @@ screen and (min-device-pixel-ratio: 2) {
rgba(17, 19, 31, 0.31) 84.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-tablet.jpg);
background-size: 100% 962px;
}

@media screen and (min-resolution: 192dpi),
Expand Down Expand Up @@ -187,9 +184,7 @@ screen and (min-device-pixel-ratio: 2) {

/*-----DESKTOP1280-----*/

.background-picture {
height: 800px;
}


@media screen and (min-width: 1280px) {
.background-picture {
Expand All @@ -198,6 +193,7 @@ screen and (min-device-pixel-ratio: 2) {
rgba(17, 19, 31, 0.31) 84.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-desktop.jpg);
background-size: 100% 800px;
}

@media screen and (min-resolution: 192dpi),
Expand Down
8 changes: 8 additions & 0 deletions src/css/js.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.slide>.slick-prev:before,
.slide>.slick-next:before {
color: #4d5ae5;
}

.slick-initialized .slick-track .slick-slide {
display: flex;
}
9 changes: 5 additions & 4 deletions src/css/reviews.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,14 @@
position: absolute;
bottom: 40px;
right: 30px;
}

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

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



@media screen and (min-width: 320px) and (max-width: 767px) {
.reviews-list-item-second {
display: none;
Expand Down
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<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="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
Expand Down
107 changes: 107 additions & 0 deletions src/partials/reviews.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,112 @@ <h3 class="reviews-list-fullname">Ihor Trachuk</h3>
</form>
</li>
</ul>

<!-- slider project -->

<div class="slider responsive">
<div class="slider-item reviews-list-item reviews-list-item-first">
<img
class="reviews-list-avatar"
srcset="
./img/reviews/john-wax.png 1x,
./img/reviews/[email protected] 2x
"
src="./img/reviews/john-wax.png"
alt="John Wax"
/>
<h3 class="reviews-list-fullname">John Wax</h3>
<p class="reviews-list-text-first">
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.
</p>
</div>

<div class="slider-item reviews-list-item reviews-list-item-second">
<img
class="reviews-list-avatar"
srcset="
./img/reviews/victoria-romashenko.png 1x,
./img/reviews/[email protected] 2x
"
src="./img/reviews/victoria-romashenko.png"
alt="Victoria Romashenko"
/>
<h3 class="reviews-list-fullname">Victoria Romashenko</h3>
<p class="reviews-list-text-second">
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.
</p>
</div>

<div class="slider-item reviews-list-item reviews-list-item-third">
<img
class="reviews-list-avatar"
srcset="
./img/reviews/ihor-trachuk.png 1x,
./img/reviews/[email protected] 2x
"
src="./img/reviews/ihor-trachuk.png"
alt="Ihor Trachuk"
/>
<h3 class="reviews-list-fullname">Ihor Trachuk</h3>
<p class="reviews-list-text-third">
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!
</p>
</div>

<div class="slider-item reviews-list-item reviews-list-item-form">
<p class="review-form-text">Leave a review</p>
<form class="reviews-form" name="reviews-form">
<label class="reviews-form-label-file" for="upload-file__input_1">
<input
class="reviews-form-file visually-hidden"
id="upload-file__input_1"
name="user-photo"
type="file"
accept=".jpg, .jpeg, .png, .gif"
/>
<span class="input-file-btn"
>Downloud your <br />
photo</span
>
</label>
<label class="reviews-form-label visually-hidden" for="user-fullname"
>Name</label
>
<input
class="reviews-form-input"
id="user-fullname"
name="user-fullname"
type="text"
placeholder="Your name"
required
/>
<label class="reviews-form-label visually-hidden" for="user-review"
>Review</label
>
<textarea
class="reviews-form-textarea"
id="user-review"
name="user-review"
placeholder="Your review"
></textarea>
<button class="reviews-form-btn" type="submit">
<svg
class="reviews-form-icon-send"
width="30"
height="30"
aria-label="reviews form icon send"
>
<use href="../img/icons.svg#icon-send"></use>
</svg>
</button>
</form>
</div>
</div>
</div>
</section>

0 comments on commit e3f0d5a

Please sign in to comment.