Skip to content

Commit

Permalink
Full background on "How it works" sectoin
Browse files Browse the repository at this point in the history
  • Loading branch information
ReshetS committed Apr 15, 2024
1 parent 842d23a commit 8a069eb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 19 deletions.
46 changes: 29 additions & 17 deletions src/css/how-it-works.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
margin: 0 auto;
}

.how-it-works > .container {
padding: 0;
}

.work-image-wrap {
padding: 40px 20px;
max-width: 375px;
margin: 0 auto;
}

.work-image {
Expand All @@ -19,7 +17,6 @@
.work-image-pic {
border-radius: 30px;
max-width: 100%;

margin: 0 auto;
}

Expand All @@ -35,12 +32,14 @@
pointer-events: none;
}

.work-steps-wrap {
.work-steps-container {
background-color: #576f35;
padding-top: 80px;
padding-bottom: 80px;
padding-left: 20px;
padding-right: 20px;
}

.work-steps-wrap {
padding: 80px 20px;
max-width: 375px;
margin: 0 auto;
}

.work-steps-txt-wrap {
Expand Down Expand Up @@ -137,6 +136,8 @@
@media screen and (min-width: 768px) {
.work-image-wrap {
padding: 100px 64px;
max-width: 768px;
margin: 0 auto;
}

.work-image-pic {
Expand All @@ -145,10 +146,9 @@
}

.work-steps-wrap {
padding-top: 100px;
padding-bottom: 100px;
padding-left: 159px;
padding-right: 159px;
padding: 100px 159px;
max-width: 768px;
margin: 0 auto;
}

.work-steps-txt-wrap {
Expand Down Expand Up @@ -177,24 +177,36 @@
}

@media screen and (min-width: 1280px) {
.how-it-works > .container {
.how-it-works {
display: flex;
flex-direction: row;
gap: 0;
}

.work-image-container {
flex-basis: calc(50% - 10px);
display: flex;
}

.work-image-wrap {
padding: 100px;
position: relative;
flex-basis: 630px;
padding: 100px;
margin: 0 0 0 auto;
}

.work-image-pic {
width: 430px;
height: 559px;
}

.work-steps-container {
flex-basis: calc(50% + 10px);
display: flex;
}

.work-steps-wrap {
flex-basis: 650px;
padding: 100px 100px 160px 100px;
margin: 0 auto 0 0;
}
}
6 changes: 4 additions & 2 deletions src/partials/how-it-works.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<section class="how-it-works" id="how-it-works">
<div class="container">
<div class="work-image-container">
<h2 class="visually-hidden">How it works</h2>

<div class="work-image-wrap">
<div class="work-image">
<picture>
Expand Down Expand Up @@ -37,6 +36,9 @@ <h2 class="visually-hidden">How it works</h2>
</picture>
</div>
</div>
</div>

<div class="work-steps-container">
<div class="work-steps-wrap">
<div class="work-steps-txt-wrap">
<h3 class="work-steps-subtit">
Expand Down

0 comments on commit 8a069eb

Please sign in to comment.