Skip to content

Commit

Permalink
better change
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaSamtash committed Dec 27, 2023
1 parent 013b312 commit 87b2add
Show file tree
Hide file tree
Showing 116 changed files with 127 additions and 104 deletions.
8 changes: 8 additions & 0 deletions src/css/about-us.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.about-us-section {
margin-left: auto;
margin-right: auto;
position: relative;
top: -59px;
}

.box-about-us {
Expand Down Expand Up @@ -69,6 +71,9 @@

@media screen and (min-width: 768px) {

.about-us-section {
top: -67px;
}

.about-us-wrapper {
gap: 50px;
Expand Down Expand Up @@ -98,6 +103,9 @@

@media screen and (min-width: 1280px) {

.about-us-section {
top: -35px;
}

.about-us-wrapper {
flex-direction: row;
Expand Down
110 changes: 62 additions & 48 deletions src/css/hero.css
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
.background-picture {
width: 100%;
}

/* linear-gradient(359deg,
rgba(17, 19, 31, 0.8) 42.62%,
rgba(17, 19, 31, 0.31) 84.12%,
rgba(17, 19, 31, 0) 99.94%), */

.background-picture {
background-image:
url(../img/hero/background-hero-mobil.jpg);
background-repeat: no-repeat;
background-position: 50% 0;
background-size: 100% 812px;
}

@media screen and (min-resolution: 192dpi),
screen and (min-resolution: 2dppx),
screen and (min-device-pixel-ratio: 2) {
.background-picture {
background-image:
url(../img/hero/background-hero-mobil@2.jpg);
}
}


.hero {
margin-left: auto;
margin-right: auto;
padding-top: 260px;
padding-bottom: 243px;
padding-bottom: 302px;
padding-left: 20px;
padding-right: 20px;
background-color: transparent;
background-image: linear-gradient(359deg,

rgba(17, 19, 31, 0.31) 14.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-mobil.webp);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}

@media screen and (min-resolution: 192dpi),
screen and (min-resolution: 2dppx),
screen and (min-device-pixel-ratio: 2) {
.hero {
background-image: linear-gradient(359deg,

rgba(17, 19, 31, 0.31) 14.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-mobil@2.webp);
}
}


.hero-title {
color: #fbfbfb;
text-align: center;
Expand Down Expand Up @@ -92,27 +92,29 @@ screen and (min-device-pixel-ratio: 2) {

@media screen and (min-width: 768px) {

.background-picture {
background-image:
url(../img/hero/background-hero-tablet.jpg);
background-size: 100% 962px;
}

@media screen and (min-resolution: 192dpi),
screen and (min-resolution: 2dppx),
screen and (min-device-pixel-ratio: 2) {
.background-picture {
background-image:
url(../img/hero/background-hero-tablet@2.jpg);
.hero {
background-image: linear-gradient(359deg,

rgba(17, 19, 31, 0.31) 14.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-tablet@2.webp);
}
}

.hero {
padding-top: 280px;
padding-bottom: 215px;
padding-bottom: 282px;
padding-left: 32px;
padding-right: 32px;
margin-bottom: 24px;
/* margin-bottom: 24px; */
background-image: linear-gradient(359deg,

rgba(17, 19, 31, 0.31) 14.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-tablet.webp);
}

.hero-title {
Expand Down Expand Up @@ -194,26 +196,31 @@ screen and (min-device-pixel-ratio: 2) {
/*-----DESKTOP1280-----*/

@media screen and (min-width: 1280px) {
.background-picture {
background-image:
url(../img/hero/background-hero-desktop.jpg);
background-size: 100% 800px;
}


@media screen and (min-resolution: 192dpi),
screen and (min-resolution: 2dppx),
screen and (min-device-pixel-ratio: 2) {
.background-picture {
background-image:
url(../img/hero/background-hero-desktop@2.jpg);
.hero {
background-image: linear-gradient(359deg,

rgba(17, 19, 31, 0.31) 14.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-desktop@2.webp);
}
}

.hero {
padding-top: 235px;
padding-bottom: 180px;
padding-bottom: 215px;
padding-left: 50px;
padding-right: 50px;
background-image: linear-gradient(359deg,

rgba(17, 19, 31, 0.31) 14.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-desktop.webp);

}

.hero-title {
Expand All @@ -224,17 +231,24 @@ screen and (min-device-pixel-ratio: 2) {

/*-----DESKTOP1440-----*/
@media screen and (min-width: 1440px) {
.background-picture {
background-image:
url(../img/hero/background-hero-desktop1440.jpg);

.hero {
background-image: linear-gradient(359deg,

rgba(17, 19, 31, 0.31) 14.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-desktop1440.webp);
}

@media screen and (min-resolution: 192dpi),
screen and (min-resolution: 2dppx),
screen and (min-device-pixel-ratio: 2) {
.background-picture {
background-image:
url(../img/hero/background-hero-desktop1440@2.jpg);
.hero {
background-image: linear-gradient(359deg,

rgba(17, 19, 31, 0.31) 14.12%,
rgba(17, 19, 31, 0) 99.94%),
url(../img/hero/background-hero-desktop1440@2.webp);
}
}
}
Binary file removed src/img/about_us/about-us-desktop-1440.jpg
Binary file not shown.
Binary file removed src/img/about_us/about-us-desktop-1440@2.jpg
Binary file not shown.
Binary file removed src/img/about_us/about-us-desktop.jpg
Binary file not shown.
Binary file added src/img/about_us/about-us-desktop.webp
Binary file not shown.
Binary file removed src/img/about_us/about-us-desktop1440.jpg
Binary file not shown.
Binary file added src/img/about_us/about-us-desktop1440.webp
Binary file not shown.
Binary file removed src/img/about_us/about-us-desktop1440@2.jpg
Binary file not shown.
Binary file added src/img/about_us/about-us-desktop1440@2.webp
Binary file not shown.
Binary file removed src/img/about_us/about-us-desktop@2.jpg
Binary file not shown.
Binary file added src/img/about_us/about-us-desktop@2.webp
Binary file not shown.
Binary file removed src/img/about_us/about-us-mobil.jpg
Binary file not shown.
Binary file added src/img/about_us/about-us-mobil.webp
Binary file not shown.
Binary file removed src/img/about_us/about-us-mobil@2.jpg
Binary file not shown.
Binary file added src/img/about_us/about-us-mobil@2.webp
Binary file not shown.
Binary file removed src/img/about_us/about-us-tablet.jpg
Binary file not shown.
Binary file added src/img/about_us/about-us-tablet.webp
Binary file not shown.
Binary file removed src/img/about_us/about-us-tablet@2.jpg
Binary file not shown.
Binary file added src/img/about_us/about-us-tablet@2.webp
Binary file not shown.
Binary file removed src/img/advantages/advantages-desktop.jpg
Binary file not shown.
Binary file added src/img/advantages/advantages-desktop.webp
Binary file not shown.
Binary file removed src/img/advantages/advantages-desktop1440.jpg
Binary file not shown.
Binary file added src/img/advantages/advantages-desktop1440.webp
Binary file not shown.
Binary file removed src/img/advantages/advantages-desktop1440@2.jpg
Binary file not shown.
Binary file added src/img/advantages/advantages-desktop1440@2.webp
Binary file not shown.
Binary file removed src/img/advantages/advantages-desktop@2.jpg
Binary file not shown.
Binary file added src/img/advantages/advantages-desktop@2.webp
Binary file not shown.
Binary file removed src/img/advantages/advantages-mobil.jpg
Binary file not shown.
Binary file added src/img/advantages/advantages-mobil.webp
Binary file not shown.
Binary file removed src/img/advantages/advantages-mobil@2.jpg
Binary file not shown.
Binary file added src/img/advantages/advantages-mobil@2.webp
Binary file not shown.
Binary file removed src/img/advantages/advantages-tablet.jpg
Binary file not shown.
Binary file added src/img/advantages/advantages-tablet.webp
Binary file not shown.
Binary file removed src/img/advantages/advantages-tablet@2.jpg
Binary file not shown.
Binary file added src/img/advantages/advantages-tablet@2.webp
Binary file not shown.
Binary file removed src/img/hero/background-hero-desktop.jpg
Binary file not shown.
Binary file added src/img/hero/background-hero-desktop.webp
Binary file not shown.
Binary file removed src/img/hero/background-hero-desktop1440.jpg
Binary file not shown.
Binary file added src/img/hero/background-hero-desktop1440.webp
Binary file not shown.
Binary file removed src/img/hero/background-hero-desktop1440@2.jpg
Binary file not shown.
Binary file added src/img/hero/background-hero-desktop1440@2.webp
Binary file not shown.
Binary file removed src/img/hero/background-hero-desktop@2.jpg
Binary file not shown.
Binary file added src/img/hero/background-hero-desktop@2.webp
Binary file not shown.
Binary file removed src/img/hero/background-hero-mobil.jpg
Binary file not shown.
Binary file added src/img/hero/background-hero-mobil.webp
Binary file not shown.
Binary file removed src/img/hero/background-hero-mobil@2.jpg
Binary file not shown.
Binary file added src/img/hero/background-hero-mobil@2.webp
Binary file not shown.
Binary file removed src/img/hero/background-hero-tablet.jpg
Binary file not shown.
Binary file added src/img/hero/background-hero-tablet.webp
Binary file not shown.
Binary file removed src/img/hero/background-hero-tablet@2.jpg
Diff not rendered.
Binary file added src/img/hero/background-hero-tablet@2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-2-desktop1440.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-2-desktop1440.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-2-desktop1440@2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-2-desktop1440@2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-3-desktop1440.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-3-desktop1440.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-3-desktop1440@2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-3-desktop1440@2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-desktop.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-desktop.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-desktop1440.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-desktop1440.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-desktop1440@2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-desktop1440@2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-desktop2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-desktop2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-desktop2@2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-desktop2@2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-desktop3.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-desktop3.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-desktop3@2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-desktop3@2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-desktop@2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-desktop@2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-tablet.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-tablet.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-tablet2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-tablet2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-tablet2@2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-tablet2@2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yacht-tablet@2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yacht-tablet@2.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yaht-mobil.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yaht-mobil.webp
Binary file not shown.
Binary file removed src/img/our_yachts/our-yaht-mobil@2.jpg
Diff not rendered.
Binary file added src/img/our_yachts/our-yaht-mobil@2.webp
Binary file not shown.
Binary file removed src/img/rent_a_yacht/rent-desktop.jpg
Diff not rendered.
Binary file added src/img/rent_a_yacht/rent-desktop.webp
Binary file not shown.
Binary file removed src/img/rent_a_yacht/rent-desktop1440.jpg
Diff not rendered.
Binary file added src/img/rent_a_yacht/rent-desktop1440.webp
Binary file not shown.
Binary file removed src/img/rent_a_yacht/rent-desktop1440@2.jpg
Diff not rendered.
Binary file added src/img/rent_a_yacht/rent-desktop1440@2.webp
Binary file not shown.
Binary file removed src/img/rent_a_yacht/rent-desktop@2.jpg
Diff not rendered.
Binary file added src/img/rent_a_yacht/rent-desktop@2.webp
Binary file not shown.
Binary file removed src/img/rent_a_yacht/rent-mobil.jpg
Diff not rendered.
Binary file added src/img/rent_a_yacht/rent-mobil.webp
Binary file not shown.
Binary file removed src/img/rent_a_yacht/rent-mobil@2.jpg
Diff not rendered.
Binary file added src/img/rent_a_yacht/rent-mobil@2.webp
Binary file not shown.
Binary file removed src/img/rent_a_yacht/rent-tablet.jpg
Diff not rendered.
Binary file added src/img/rent_a_yacht/rent-tablet.webp
Binary file not shown.
Binary file removed src/img/rent_a_yacht/rent-tablet@2.jpg
Diff not rendered.
Binary file added src/img/rent_a_yacht/rent-tablet@2.webp
Binary file not shown.
Binary file modified src/img/reviews/ihor-trachuk.png
Binary file modified src/img/reviews/ihor-trachuk@2.png
Binary file modified src/img/reviews/john-wax.png
Binary file modified src/img/reviews/john-wax@2.png
Binary file modified src/img/reviews/victoria-romashenko.png
Binary file modified src/img/reviews/victoria-romashenko@2.png
6 changes: 2 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
<body>
<load src="partials/header.html" />
<main>
<div class="background-picture">
<load src="partials/hero.html" />
<load src="partials/about-us.html" />
</div>
<load src="partials/hero.html" />
<load src="partials/about-us.html" />
<load src="partials/our-yachts.html" />
<load src="partials/advantages.html" />
<load src="partials/rent-a-yacht.html" />
Expand Down
18 changes: 9 additions & 9 deletions src/partials/about-us.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,33 @@ <h2 class="about-us-title">
<picture class="about-us-picture">
<source
srcset="
./img/about_us/about-us-desktop-1440.jpg 1x,
./img/about_us/about-us-desktop-1440@2.jpg 2x
../img/about_us/about-us-desktop1440.webp 1x,
../img/about_us/about-us-desktop1440@2.webp 2x
"
media="(min-width: 1440px)"
/>
<source
srcset="
./img/about_us/about-us-desktop.jpg 1x,
./img/about_us/about-us-desktop@2.jpg 2x
./img/about_us/about-us-desktop.webp 1x,
./img/about_us/about-us-desktop@2.webp 2x
"
media="(min-width: 1280px)"
/>
<source
srcset="
./img/about_us/about-us-tablet.jpg 1x,
./img/about_us/about-us-tablet@2.jpg 2x
./img/about_us/about-us-tablet.webp 1x,
./img/about_us/about-us-tablet@2.webp 2x
"
media="(min-width: 768px)"
/>
<source
srcset="
./img/about_us/about-us-mobil.jpg 1x,
./img/about_us/about-us-mobil@2.jpg 2x
./img/about_us/about-us-mobil.webp 1x,
./img/about_us/about-us-mobil@2.webp 2x
"
media="(max-width: 767px)"
/>
<img src="./img/about_us/about-us-mobil.jpg" alt="Yacht image" />
<img src="./img/about_us/about-us-mobil.webp" alt="Yacht image" />
</picture>
</div>
</div>
Expand Down
18 changes: 9 additions & 9 deletions src/partials/advantages.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,36 +35,36 @@ <h3 class="advantages-number current">04</h3>
<picture>
<source
srcset="
./img/advantages/advantages-desktop1440.jpg 1x,
./img/advantages/advantages-desktop1440@2.jpg 2x
./img/advantages/advantages-desktop1440.webp 1x,
./img/advantages/advantages-desktop1440@2.webp 2x
"
media="(min-width: 1440px)"
/>
<source
srcset="
./img/advantages/advantages-desktop.jpg 1x,
./img/advantages/advantages-desktop@2.jpg 2x
./img/advantages/advantages-desktop.webp 1x,
./img/advantages/advantages-desktop@2.webp 2x
"
media="(min-width: 1280px)"
/>
<source
srcset="
./img/advantages/advantages-tablet.jpg 1x,
./img/advantages/advantages-tablet@2.jpg 2x
./img/advantages/advantages-tablet.webp 1x,
./img/advantages/advantages-tablet@2.webp 2x
"
media="(min-width: 768px)"
/>
<source
srcset="
./img/advantages/advantages-mobil.jpg 1x,
./img/advantages/advantages-mobil@2.jpg 2x
./img/advantages/advantages-mobil.webp 1x,
./img/advantages/advantages-mobil@2.webp 2x
"
media="(max-width: 767px)"
/>

<img
class="advatages-image"
src="./img/advantages/advantages-mobil.jpg"
src="./img/advantages/advantages-mobil.webp"
alt="Advantages picture"
/>
</picture>
Expand Down
Loading

0 comments on commit 87b2add

Please sign in to comment.