Skip to content

Commit

Permalink
Merge pull request #17 from TetiZ/hero-od-nazara
Browse files Browse the repository at this point in the history
commit 3
  • Loading branch information
TetiZ authored Jan 24, 2024
2 parents 820ea87 + b230028 commit 081b0dd
Showing 1 changed file with 82 additions and 15 deletions.
97 changes: 82 additions & 15 deletions src/css/layout/hero.css
Original file line number Diff line number Diff line change
@@ -1,54 +1,85 @@
.section-hero {
display: flex;
flex-direction: column;
width: 100%;
}
@media screen and (min-width: 768px) {
.section-hero {
flex-direction: row;
justify-content: space-between;
}
}

.background-container {
height: 387px;
position: relative;
background-image: url(../img/hero/image\ 2.png);
background-repeat: no-repeat;
background-position: center top;
}
@media screen and (min-width: 768px) {
.background-container {
height: 900px;
width: 248px;
background-image: url(../img/hero/Img-tablet.png);
}
}
@media screen and (min-width: 1280px) {
.background-container {
height: 884px;
width: 100%;
background-image: url(../img/hero/img-desctop.png);
}
}

.container-hero {
display: flex;
flex-direction: column;
flex-shrink: 0;
padding-top: 20px;
}
@media screen and (min-width: 768px) {
.container-hero {
flex-direction: row;
justify-content: space-between;
}
}

@media screen and (min-width: 768px) {
.section-hero {
width: 736px;
padding-left: 14px;
padding-right: 14px;
margin: 0, auto;
margin: 0 auto;
}
}

.link-energi-flow {
color: #1b1b1b;
width: 86px;
height: 18px;
font-family: 'DM Sans';
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 18px;
letter-spacing: -0.32px;
position: absolute;
top: 20px;
left: 20px;
}

@media screen and (min-width: 768px) {
.link-energi-flow {
font-size: 28px;
line-height: 28px;
letter-spacing: -0.56px;
height: 28px;
width: 150px;
top: 44px;
left: 32px;
}
.container-home {
}

@media screen and (min-width: 768px) {
.container-hero {
display: flex;
}
.home-container-text {
.hero-container-text {
display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -59,17 +90,41 @@
bottom: 20px;
left: 10px;
}
@media screen and (min-width: 768px) {
.position-teg {
bottom: 68px;
}
}

@media screen and (min-width: 1280px) {
.position-teg {
bottom: 32px;
left: 48px;
}
}

.hero-teg-list {
display: flex;

justify-content: center;
align-content: center;
row-gap: 4px;
column-gap: 4px;
flex-wrap: wrap;
width: calc((100% - 0px) / 2);
}

@media screen and (min-width: 768px) {
.hero-teg-list {
width: 100%;
row-gap: 8px;
column-gap: 8px;
}
}
@media screen and (min-width: 768px) {
.hero-teg-list {
width: calc((100% - 0px) / 2);
}
}

@media screen and (min-width: 768px) {
.hero-text-list {
flex-wrap: wrap;
Expand All @@ -92,7 +147,6 @@
padding-right: 10px;
padding-top: 4px;
padding-bottom: 4px;

display: flex;
}
@media screen and (min-width: 768px) {
Expand All @@ -108,28 +162,37 @@
height: 365px;
flex-shrink: 0;
border-radius: 30px;
background: #fff;
/* background: #fff; */
background: #f6f6f6;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 20px;
}

@media screen and (min-width: 768px) {
.hero-container-text {
height: 900px;
border-radius: 0px 50px 50px 50px;
margin-top: 0px;
}
}
@media screen and (min-width: 1280px) {
.hero-container-text {
height: 884px;
}
}

.hero-title {
color: #1b1b1b;

font-family: 'DM Sans';
font-size: 56px;
font-style: normal;
font-weight: 400;
line-height: 50px;
letter-spacing: -1.12px;
margin-bottom: 20px;
margin-left: 20px;
}
@media screen and (min-width: 768px) {
.hero-title {
Expand All @@ -146,6 +209,9 @@
color: #7e847f;
}

.pozition-text {
margin-left: 20px;
}
.hero-text {
color: #1b1b1b;
width: 295px;
Expand All @@ -162,5 +228,6 @@
height: 72px;
line-height: 24px;
font-size: 18px;
letter-spacing: -0.18px;
}
}

0 comments on commit 081b0dd

Please sign in to comment.