Skip to content

Commit

Permalink
header terminado
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezeeefrank committed Apr 4, 2024
1 parent a7d930d commit 2613d11
Show file tree
Hide file tree
Showing 9 changed files with 398 additions and 376 deletions.
358 changes: 243 additions & 115 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,67 +1,73 @@
.header {
position: absolute;
top: 0;
left: 0;
width: 100%;
background-color: var(--white);
padding-block: 15px;
z-index: 4;
}
.header .input-wrapper {
display: none;
}
.header .active {
position: fixed;
transform: translateY(-100%);
box-shadow: var(--shadow);
animation: slideIn 0.5s ease forwards;
}
.header .container {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
}
.header .logo {
font-size: 3.3rem;
font-weight: var(--fw-700);
}
.header .logo a h1 {
font-family: Josefin Sans;
font-weight: bolder;
}
.header .header-action {
display: flex;
gap: 15px;
}
.header .header-action .header-action-btn {
position: relative;
font-size: 24px;
transition: var(--transition-1);
}
.header .header-action .header-action-btn :is(:hover, :focus) {
color: var(--tan-crayola);
}
.header .header-action .btn-badge {
background-color: var(--tan-crayola);
color: var(--white);
font-size: var(--fs-6);
font-weight: var(--fw-500);
position: absolute;
bottom: -10px;
right: -10px;
padding-inline: 6px;
border-radius: 50%;
}
:root {

/**
* colors
*/

--red-orange-color-wheel: hsl(17, 96%, 48%);
--middle-blue-green: hsl(167, 45%, 72%);
--smokey-black: hsl(0, 0%, 7%);
--spanish-gray: hsl(0, 0%, 60%);
--granite-gray: hsl(0, 0%, 40%);
--tan-crayola: hsl(27, 46%, 58%);
--light-gray: hsl(0, 0%, 80%);
--black_10: hsla(0, 0%, 0%, 0.1);
--black_25: hsla(0, 0%, 0%, 0.25);
--black_50: hsla(0, 0%, 0%, 0.4);
--black_70: hsla(0, 0%, 0%, 0.7);
--cultured: hsl(220, 16%, 96%);
--manatee: hsl(218, 11%, 65%);
--black: hsl(0, 0%, 0%);
--white: hsl(0, 0%, 100%);

/**
* typography
*/

--ff-roboto: 'Roboto', sans-serif;
--ff-mr_de_haviland: 'Mr De Haviland', cursive;

--fs-1: 6rem;
--fs-2: 3rem;
--fs-3: 2rem;
--fs-4: 1.8rem;
--fs-5: 1.4rem;
--fs-6: 1.2rem;

--fw-700: 700;
--fw-500: 500;

/**
* spacing
*/

--section-padding: 50px;

/**
* shadow
*/

--shadow: 0 0 2px hsla(0, 0%, 0%, 0.2);

/**
* transition
*/

--transition-1: 0.25s ease;
--transition-2: 0.5s ease;
--cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
--cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

@keyframes slideIn {
0% {
transform: translateY(-100%);
}
100% {
transform: translateY(0);
}
}





/*-----------------------------------*\
#RESET
\*-----------------------------------*/

*,
*::before,
*::after {
Expand All @@ -79,7 +85,7 @@ img,
span,
input,
button,
i {
ion-icon {
display: block;
}

Expand Down Expand Up @@ -107,7 +113,7 @@ button {
cursor: pointer;
}

i {
ion-icon {
pointer-events: none;
}

Expand All @@ -122,13 +128,13 @@ html {
}

body {
background: var(--white);
background-color: var(--white);
color: var(--black);
font-size: 1.6rem;
line-height: 1.7;
}

body .active {
body.active {
overflow: hidden;
}

Expand Down Expand Up @@ -156,54 +162,176 @@ body .active {
background-color: hsl(0, 0%, 70%);
}

:root {
/**colors**/
--red-orange-color-wheel: hsl(17, 96%, 48%);
--middle-blue-green: hsl(167, 45%, 72%);
--smokey-black: hsl(0, 0%, 7%);
--spanish-gray: hsl(0, 0%, 60%);
--granite-gray: hsl(0, 0%, 40%);
--tan-crayola: hsl(27, 46%, 58%);
--light-gray: hsl(0, 0%, 80%);
--black_10: hsla(0, 0%, 0%, 0.1);
--black_25: hsla(0, 0%, 0%, 0.25);
--black_50: hsla(0, 0%, 0%, 0.4);
--black_70: hsla(0, 0%, 0%, 0.7);
--cultured: hsl(220, 16%, 96%);
--manatee: hsl(218, 11%, 65%);
--black: hsl(0, 0%, 0%);
--white: hsl(0, 0%, 100%);
/**typography**/
--ff-roboto: "Roboto", sans-serif;
--ff-mr_de_haviland: "Mr De Haviland", cursive;
--fs-1: 6rem;
--fs-2: 3rem;
--fs-3: 2rem;
--fs-4: 1.8rem;
--fs-5: 1.4rem;
--fs-6: 1.2rem;
--fw-700: 700;
--fw-500: 500;
/**typography**/
--ff-roboto: "Roboto", sans-serif;
--ff-mr_de_haviland: "Mr De Haviland", cursive;
--fs-1: 6rem;
--fs-2: 3rem;
--fs-3: 2rem;
--fs-4: 1.8rem;
--fs-5: 1.4rem;
--fs-6: 1.2rem;
--fw-700: 700;
--fw-500: 500;
/**Spacing**/
--section-padding: 50px;
/**Shadow**/
--shadow: 0 0 2px hsla(0, 0%, 0%, 0.2);
/**Transition**/
--transition-1: 0.25s ease;
--transition-2: 0.5s ease;
--cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
--cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

.header .input-wrapper {
display: none;
}

.header {
position: absolute;
top: 0;
left: 0;
width: 100%;
background-color: var(--white);
padding-block: 15px;
z-index: 4;
}

.header.active {
position: fixed;
transform: translateY(-100%);
box-shadow: var(--shadow);
animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
0% {
transform: translateY(-100%);
}

100% {
transform: translateY(0);
}
}

.header .container {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
}

.logo {
font-size: 3.3rem;
font-weight: var(--fw-700);
}

.header-action {
display: flex;
gap: 15px;
}

.header-action-btn {
position: relative;
font-size: 24px;
transition: var(--transition-1);
}

.header-action-btn:is(:hover, :focus) {
color: var(--tan-crayola);
}

.header-action-btn .btn-badge {
background-color: var(--tan-crayola);
color: var(--white);
font-size: var(--fs-6);
font-weight: var(--fw-500);
position: absolute;
bottom: -10px;
right: -10px;
padding-inline: 6px;
border-radius: 50%;
}





/*-----------------------------------*\
#SIDEBAR
\*-----------------------------------*/

.sidebar {
position: fixed;
top: 0;
right: -420px;
max-width: 420px;
width: 100%;
height: 100%;
background-color: var(--white);
padding: 40px;
padding-block-end: 100px;
overflow-y: auto;
z-index: 5;
visibility: hidden;
transition: 0.25s var(--cubic-in);
}

.sidebar.active {
transform: translateX(-420px);
visibility: visible;
transition: 0.5s var(--cubic-out);
}

.nav-close-btn {
font-size: 30px;
}

.sidebar .wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
margin-block: 40px 75px;
}

.sidebar-list-title,
.contact-list-title,
.social-list-title {
color: var(--smokey-black);
font-weight: var(--fw-500);
}

.sidebar-list-title {
margin-block-end: 15px;
}

.sidebar-link {
color: var(--spanish-gray);
margin-block-start: 6px;
transition: var(--transition-1);
}

.sidebar-link:is(:hover, :focus) {
color: var(--tan-crayola);
}

.navbar {
margin-block-end: 60px;
}

.navbar-item:not(:last-child) {
margin-block-end: 15px;
}

.navbar-link {
font-weight: var(--fw-500);
transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus),
.sidebar :is(.address, .contact-item) {
color: var(--granite-gray);
}

.sidebar .address {
margin-block-start: 20px;
}

.sidebar .social-wrapper {
justify-content: space-between;
margin-block-start: 50px;
}

.overlay {
position: fixed;
inset: 0;
background-color: var(--black_70);
z-index: 4;
opacity: 0;
pointer-events: none;
transition: var(--transition-1);
}

/*# sourceMappingURL=style.css.map */
.overlay.active {
opacity: 1;
pointer-events: all;
}
1 change: 0 additions & 1 deletion css/style.css.map

This file was deleted.

Loading

0 comments on commit 2613d11

Please sign in to comment.