Skip to content

Commit

Permalink
Merge pull request #22 from ElizabethBil/section-about-us
Browse files Browse the repository at this point in the history
Section about us
  • Loading branch information
ElizabethBil authored Oct 3, 2023
2 parents 4d0bdd7 + 6388943 commit 571a83e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
16 changes: 10 additions & 6 deletions src/css/about.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
/* =======ABOUT US====== */
.section-about-us{

background-image: url(../img/about/about-ornamets-mobile.png);
padding-top: 80px;
padding-bottom: 62px;
background-image: url(/img/about/about-ornamets-mobile.png);
background-position-x: right;
background-position-y: bottom;
background-repeat: no-repeat;
}

@media screen and (min-width: 768px) {
.section-about-us{
background-image: url(../img/about/ornamet-about-tablet.png);

background-image: url(/img/about/ornamet-about-tablet.png);
padding-top: 100px;
padding-bottom: 50px;
}
}

@media screen and (min-width: 1280px) {
.section-about-us {
background-image: url(../img/about/ornament-desctop1280.png);
padding-top: 150px;
padding-bottom: 80px;
background-image: url(/img/about/ornament-desctop1280.png);
}
}
@media screen and (min-width: 1440px) {
.section-about-us {
background-image: url(../img/about/ornament-descktop1440.png);
background-image: url(/img/about/ornament-descktop1440.png);
}
}
.about-us-title{
Expand Down
18 changes: 9 additions & 9 deletions src/partials/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ <h2 class="about-us-title">About Us</h2>
<img
class="img-about-us"
srcset="
/img/about/girl-and-boy-descktop1440.jpg 709w,
/img/about/[email protected] 1418w,
/img/about/girl-and-boy-descktop1280.jpg 594w,
/img/about/[email protected] 1188w,
/img/about/girl-and-boy-tablet.jpg 704w,
/img/about/[email protected] 1408w,
/img/about/girl-and-boy-mobile.jpg 335w,
/img/about/[email protected] 670w
./img/about/girl-and-boy-descktop1440.jpg 709w,
./img/about/[email protected] 1418w,
./img/about/girl-and-boy-descktop1280.jpg 594w,
./img/about/[email protected] 1188w,
./img/about/girl-and-boy-tablet.jpg 704w,
./img/about/[email protected] 1408w,
./img/about/girl-and-boy-mobile.jpg 335w,
./img/about/[email protected] 670w
"
src="../img/about/girl-and-boy-mobile.jpg"
src="./img/about/girl-and-boy-mobile.jpg"
sizes="(min-width:
1440px) 709px, (min-width:
1280px) 594px, (min-width: 768px) 704px, (max-width: 767px) 335px"
Expand Down

0 comments on commit 571a83e

Please sign in to comment.