Skip to content

Commit

Permalink
Merge pull request #7 from a-nester/header
Browse files Browse the repository at this point in the history
Header-Skeleton
  • Loading branch information
gudzsv authored Apr 25, 2024
2 parents 4b08e74 + 5bb595f commit 1a85670
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 2 deletions.
98 changes: 97 additions & 1 deletion src/partials/header/header.css
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;
}
}
38 changes: 37 additions & 1 deletion src/partials/header/header.html
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>

0 comments on commit 1a85670

Please sign in to comment.