Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
change pading, button clean div
  • Loading branch information
AnnaSamtash committed Dec 22, 2023
1 parent e5535ca commit 5b44afe
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 43 deletions.
81 changes: 47 additions & 34 deletions src/css/hero.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.background-picture {
background-image: linear-gradient(359deg, rgba(17, 19, 31, 0.80) 42.62%, rgba(17, 19, 31, 0.31) 84.12%, rgba(17, 19, 31, 0.00) 99.94%),
url(../img/hero/background-hero-mobil.jpg);
url(../img/hero/background-hero-mobil.jpg);
background-repeat: no-repeat;
background-position: 50% 0;
background-size: 375px 812px;
Expand All @@ -10,39 +10,43 @@
screen and (min-resolution: 2dppx),
screen and (min-device-pixel-ratio: 2) {
.background-picture {
background-image: linear-gradient(359deg, rgba(17, 19, 31, 0.80) 42.62%, rgba(17, 19, 31, 0.31) 84.12%, rgba(17, 19, 31, 0.00) 99.94%),
url('../img/hero/background-hero-mobil@2.jpg');
background-image: linear-gradient(359deg, rgba(17, 19, 31, 0.80) 42.62%, rgba(17, 19, 31, 0.31) 84.12%, rgba(17, 19, 31, 0.00) 99.94%),
url('../img/hero/background-hero-mobil@2.jpg');
}
}

.hero {
padding-top: 198px;
margin-left: auto;
margin-right: auto;
padding-top: 260px;
padding-bottom: 243px;
background-color: transparent;
}

.content-container {
/* .content-container {
display: flex;
flex-direction: column;
gap: 24px;
justify-content: center;
align-items: center;
}
} */

.hero-container {
/* .hero-container {
display: flex;
flex-direction: column;
gap: 38px;
}
} */

.hero-title {
color: #FBFBFB;
text-align: center;
font-size: 32px;
font-style: normal;
font-weight: 500;
line-height: 1;
letter-spacing: -0.02em;
margin-left: auto;
margin-right: auto;
margin-bottom: 24px;
}

.capitalize {
Expand All @@ -53,12 +57,15 @@ screen and (min-device-pixel-ratio: 2) {
color: rgba(251, 251, 251, 0.70);
text-align: center;
font-size: 12px;
font-style: normal;
font-weight: 300;
line-height: 1.17;
line-height: 1.17;
margin-left: auto;
margin-right: auto;
margin-bottom: 38px;
}

.hero-btn {
width: 141px;
border-radius: 15px;
background-color: #1B414B;
border: none;
Expand All @@ -70,75 +77,79 @@ screen and (min-device-pixel-ratio: 2) {
line-height: 1.29;
letter-spacing: -0.02em;
margin: 0 auto;
display: block;


}

/*-----TABLET-----*/
@media screen and (min-width: 768px) {
.background-picture {
background-image: linear-gradient(359deg, rgba(17, 19, 31, 0.80) 42.62%, rgba(17, 19, 31, 0.31) 84.12%, rgba(17, 19, 31, 0.00) 99.94%),
url(../img/hero/background-hero-tablet.jpg);
url(../img/hero/background-hero-tablet.jpg);
background-repeat: no-repeat;
background-position: 50% 0;
background-size: 768px 962px;
}

@media screen and (min-resolution: 192dpi),
screen and (min-resolution: 2dppx),
screen and (min-device-pixel-ratio: 2) {
.background-picture {
background-image: linear-gradient(359deg, rgba(17, 19, 31, 0.80) 42.62%, rgba(17, 19, 31, 0.31) 84.12%, rgba(17, 19, 31, 0.00) 99.94%),
url(../img/hero/background-hero-tablet@2.jpg);
background-image: linear-gradient(359deg, rgba(17, 19, 31, 0.80) 42.62%, rgba(17, 19, 31, 0.31) 84.12%, rgba(17, 19, 31, 0.00) 99.94%),
url(../img/hero/background-hero-tablet@2.jpg);
}
}

.hero {
padding-top: 204px;
padding-top: 280px;
padding-bottom: 215px;
}
.hero-container {

/* .hero-container {
gap: 48px;
}
} */

.hero-title {
font-size: 70px;
}

.hero-paragraph {
font-size: 16px;
line-height: 1.4;
line-height: 1.4;
max-width: 597px;
}

.hero-btn {
padding: 16px 40px;
color: #FBFBFB;
/* color: #FBFBFB; */
font-size: 18px;
line-height: 1.1;
width: 179px;
}
}

/*-----DESKTOP1280-----*/
@media screen and (min-width: 1280px) {
.background-picture {
background-image: linear-gradient(359deg, rgba(17, 19, 31, 0.80) 42.62%, rgba(17, 19, 31, 0.31) 84.12%, rgba(17, 19, 31, 0.00) 99.94%),
url(../img/hero/background-hero-desktop.jpg);
url(../img/hero/background-hero-desktop.jpg);
background-repeat: no-repeat;
background-position: 50% 0;
background-size: 1280px 800px;
}

@media screen and (min-resolution: 192dpi),
screen and (min-resolution: 2dppx),
screen and (min-device-pixel-ratio: 2) {
.background-picture {
background-image: linear-gradient(359deg, rgba(17, 19, 31, 0.80) 42.62%, rgba(17, 19, 31, 0.31) 84.12%, rgba(17, 19, 31, 0.00) 99.94%),
url('../img/hero/background-hero-desktop@2.jpg');
background-image: linear-gradient(359deg, rgba(17, 19, 31, 0.80) 42.62%, rgba(17, 19, 31, 0.31) 84.12%, rgba(17, 19, 31, 0.00) 99.94%),
url('../img/hero/background-hero-desktop@2.jpg');
}
}

.hero {
padding-top: 155px;
padding-top: 235px;
padding-bottom: 180px;
}

Expand All @@ -147,16 +158,18 @@ screen and (min-device-pixel-ratio: 2) {
}

.hero-container {
padding: 0 130px;
padding-left: 140px;
padding-right: 140px;
}

}

/*-----DESKTOP1440-----*/
@media screen and (min-width: 1440px) {

.hero-container {
padding: 0 214px;
padding-left: 220px;
padding-right: 220px;
}

}
24 changes: 15 additions & 9 deletions src/partials/hero.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<section class="hero">
<div class="container hero-container">
<div class="content-container">
<h1 class="hero-title">Explore the <span class="capitalize">hight seas</span> with <span class="capitalize">our luxury yacht rentals</span></h1>
<p class="hero-paragraph">Experience the freedom and luxury of yachting on the open seas. Choose from our top-of-the-line yachts and embark on an unforgettable journey surrounded by breathtaking views and state-of-the-art amenities.</p>
</div>
<a href="#rent-a-yacht" class="hero-btn">Yacht rental</a>

</div>
</section>
<div class="container hero-container">
<!-- <div class="content-container"> -->
<h1 class="hero-title">
Explore the <span class="capitalize">hight seas</span> with
<span class="capitalize">our luxury yacht rentals</span>
</h1>
<p class="hero-paragraph">
Experience the freedom and luxury of yachting on the open seas. Choose
from our top-of-the-line yachts and embark on an unforgettable journey
surrounded by breathtaking views and state-of-the-art amenities.
</p>
<!-- </div> -->
<a href="#rent-a-yacht" class="hero-btn">Yacht rental</a>
</div>
</section>

0 comments on commit 5b44afe

Please sign in to comment.