Skip to content

Commit

Permalink
Merge pull request #22 from TetiZ/hero-od-nazara
Browse files Browse the repository at this point in the history
Commit 4
  • Loading branch information
TetiZ authored Jan 25, 2024
2 parents 03f7008 + 4f51e1a commit 0d98f2e
Showing 1 changed file with 94 additions and 99 deletions.
193 changes: 94 additions & 99 deletions src/css/layout/hero.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
/* ==================PHONE================== */

.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 {
display: flex;
Expand All @@ -19,20 +15,6 @@
background-repeat: no-repeat;
margin: 0 auto;
}
@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 {
width: 335px;
Expand All @@ -41,20 +23,7 @@
flex-direction: column;
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 {
padding-left: 14px;
padding-right: 14px;
margin: 0 auto;
}
}

@media screen and (min-width: 768px) {
.container-hero {
Expand All @@ -64,19 +33,8 @@
padding: 60px 20px;
}
}
.position-teg {
}
@media screen and (min-width: 768px) {
.position-teg {
bottom: 68px;
}
}

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

.hero-teg-list {
Expand All @@ -88,27 +46,6 @@
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;

gap: 8px;
width: 196px;
}
}
.hero-list-iteam {
list-style: none;
border-radius: 30px;
Expand All @@ -125,40 +62,18 @@
padding-bottom: 4px;
display: flex;
}
@media screen and (min-width: 768px) {
.hero-list-iteam {
padding-left: 16px;
padding-right: 16px;
line-height: 24px;
font-size: 16px;
}
}

.hero-container-text {
height: 365px;
flex-shrink: 0;
border-radius: 30px;
background: #fff;

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-size: 56px;
Expand All @@ -168,16 +83,6 @@
letter-spacing: -1.12px;
margin-bottom: 20px;
}
@media screen and (min-width: 768px) {
.hero-title {
font-size: 98px;
line-height: 95px;
letter-spacing: -1.96px;
width: 424px;
margin-bottom: 25px;
}
}

.title-span {
font-style: italic;
color: #7e847f;
Expand All @@ -196,7 +101,80 @@
line-height: 18px;
letter-spacing: -0.01em;
}

/* ================TABLET==================== */

@media screen and (min-width: 768px) {
.section-hero {
flex-direction: row;
justify-content: space-between;
}
.background-container {
height: 900px;
width: 248px;
background-image: url(../img/hero/Img-tablet.png);
}
.container-hero {
flex-direction: row;
justify-content: space-between;
}
.section-hero {
padding-left: 14px;
padding-right: 14px;
margin: 0 auto;
}
.link-energi-flow {
font-size: 28px;
line-height: 28px;
letter-spacing: -0.56px;
height: 28px;
width: 150px;
top: 44px;
left: 32px;
}
.container-hero {
display: flex;
}
.hero-container-text {
display: flex;
flex-direction: column;
justify-content: center;
}
.position-teg {
bottom: 68px;
}
.hero-teg-list {
width: 100%;
row-gap: 8px;
column-gap: 8px;
}
.hero-teg-list {
width: calc((100% - 0px) / 2);
}
.hero-text-list {
flex-wrap: wrap;

gap: 8px;
width: 196px;
}
.hero-list-iteam {
padding-left: 16px;
padding-right: 16px;
line-height: 24px;
font-size: 16px;
}
.hero-title {
font-size: 98px;
line-height: 95px;
letter-spacing: -1.96px;
width: 424px;
margin-bottom: 25px;
}
.hero-container-text {
height: 900px;
border-radius: 0px 50px 50px 50px;
margin-top: 0px;
}
.hero-text {
width: 396px;
height: 72px;
Expand All @@ -205,3 +183,20 @@
letter-spacing: -0.18em;
}
}

/* ================DECKTOP================= */

@media screen and (min-width: 1280px) {
.background-container {
height: 884px;
width: 100%;
background-image: url(../img/hero/img-desctop.png);
}
.position-teg {
bottom: 32px;
left: 48px;
}
.hero-container-text {
height: 884px;
}
}

0 comments on commit 0d98f2e

Please sign in to comment.