fix(header): header action container styles resolved

This commit is contained in:
Henrique Santos Santana 2022-12-28 01:06:24 -03:00
parent a1d3fe7bcb
commit 3a1dbd8d8f
2 changed files with 18 additions and 7 deletions

View File

@ -234,6 +234,7 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 16px;
}
// styles for menu is active

View File

@ -44,16 +44,18 @@ export const Header = () => {
<header className={css.header}>
<nav className={css.nav}>
<div className={css.content}>
<button onClick={handleOpen} className={css.open} type="button">
<button
onClick={handleOpen}
className={css.open}
type="button"
data-jsx="event"
>
<img src={openIcon} alt="ícone do botão para abrir o menu" />
</button>
<a className={css.logo} href="/">
<picture>
<source
media="(min-width:1025px)"
srcSet={logoMediumImg}
></source>
<source media="(min-width:1025px)" srcSet={logoMediumImg} />
<img src={logoImg} alt="logo da M3 Academy" />
</picture>
</a>
@ -73,11 +75,19 @@ export const Header = () => {
<Search className={`${css.search} ${css['search-bottom-content']}`} />
</div>
<div className={`${css.menu} ${isOpenMenu ? css.active : ''}`}>
<div
className={`${css.menu} ${isOpenMenu ? css.active : ''}`}
data-jsx="target"
>
<div className={css['menu-content']}>
<div className={css['actions-bottom']}>
<a href="/">Entrar</a>
<button onClick={handleClose} className={css.close} type="button">
<button
onClick={handleClose}
className={css.close}
type="button"
data-jsx="event"
>
<img src={closeIcon} alt="ícone do botão para fechar o menu" />
</button>
</div>