-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from a-nester/header
Header-Skeleton
- Loading branch information
Showing
2 changed files
with
134 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,99 @@ | ||
/* 320px - 375px Mobile responsive | ||
768px Tablet Adaptive | ||
1440px Desktop */ | ||
|
||
.header { | ||
background-color: red; | ||
/* background-color: rgb(252, 250, 250); */ | ||
} | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: row; | ||
|
||
padding-top: 32px; | ||
} | ||
|
||
@media only screen and (max-width: 375px) { | ||
.container { | ||
display: flex; | ||
flex-direction: row; | ||
margin: 0; | ||
padding-top: 32px; | ||
} | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.container { | ||
} | ||
} | ||
|
||
.header-img-box { | ||
display: flex; | ||
flex-direction: row; | ||
gap: 8px; | ||
} | ||
|
||
.header-image { | ||
width: auto; | ||
height: auto; | ||
} | ||
|
||
.burger-btn-box { | ||
margin-left: auto; | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.burger-btn-box { | ||
display: none; | ||
} | ||
} | ||
|
||
.burger-btn { | ||
display: flex; | ||
background-color: transparent; | ||
border: none; | ||
padding: 0; | ||
} | ||
|
||
.menu-box { | ||
display: none; | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.menu-box { | ||
display: flex; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
} | ||
|
||
.menu-link { | ||
color: rgb(250, 250, 250); | ||
font-family: 'Inter Tight'; | ||
font-size: 16px; | ||
font-weight: 500; | ||
line-height: 1.19; | ||
letter-spacing: -0.02em; | ||
text-decoration: underline; | ||
} | ||
|
||
.order-btn { | ||
display: none; | ||
} | ||
|
||
@media only screen and (min-width: 768px) { | ||
.order-btn { | ||
display: flex; | ||
width: 174px; | ||
height: 56px; | ||
padding: 18px 24px 18px 24px; | ||
border-radius: 60px; | ||
background: rgb(237, 59, 68); | ||
margin-left: auto; | ||
font-family: 'Inter Tight'; | ||
font-size: 16px; | ||
font-weight: 500; | ||
line-height: 1.19; | ||
letter-spacing: -0.02em; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,37 @@ | ||
<header class="header">HEADER</header> | ||
<header> | ||
<div class="container"> | ||
|
||
<div class="header-img-box"> | ||
<picture> | ||
<img class="header-image" srcset=" | ||
../../assets/img/logo/image_1x.webp 1x, | ||
../../assets/img/logo/image_2x.webp 2x" src="../../assets/img/logo/image_1x.webp" alt="logo" width="80" | ||
height="80" /> | ||
</picture> | ||
<svg class="name-icon" width="84" height="19"> | ||
<use href="../../assets/svg/icons.svg#icon-jefferson"></use> | ||
</svg> | ||
</div> | ||
|
||
<div class="burger-btn-box"> | ||
<button | ||
class="burger-btn" | ||
type="button" | ||
aria-label="Mobile menu button"> | ||
<svg class="burger-btn" width="28" height="28"> | ||
<use href="../../assets/svg/icons.svg#icon-menu-burger"></use> | ||
</svg> | ||
</button></div> | ||
<div class="menu-box"> | ||
<a class="menu-link">Menu</a> | ||
</div> | ||
<div class="order-btn-box"> | ||
<button class="order-btn" type="button"> | ||
Order the project | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<!-- Burger --> | ||
<!-- <div class="backdrop"></div> --> | ||
</header> |