forked from M3-Academy/desafio-react-e-typescript
feature/challenge #1
@ -1,13 +0,0 @@
|
||||
import { HeaderMobile } from "./HeaderMobile/HeaderMobile"
|
||||
import { HeaderDesktop } from './HeaderDesktop/HeaderDesktop'
|
||||
|
||||
const Header = () => {
|
||||
return (
|
||||
<>
|
||||
<HeaderDesktop />
|
||||
<HeaderMobile />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export { Header }
|
@ -1,32 +0,0 @@
|
||||
import logo from '../../../assets/imgs/m3-acdemy-logo.png'
|
||||
import cart from '../../../assets/imgs/cart-icon-header.png'
|
||||
|
||||
import styles from './HeaderDesktop.module.scss'
|
||||
|
||||
const HeaderDesktop = () => {
|
||||
return (
|
||||
<header className={styles['header']}>
|
||||
<div className={styles['header-top']}>
|
||||
<img src={logo} alt="Logo M3" className={styles['header-top__logo']}/>
|
||||
<input placeholder='Buscar...' className={styles['header-top__input']}/>
|
||||
<div className={styles['header-top__log-cart']}>
|
||||
<a href='/' className={styles['header-top__log']}>
|
||||
ENTRAR
|
||||
</a>
|
||||
<a href='/' className={styles['header-top__cart']}>
|
||||
<img src={cart} alt='Img do Carrinho' />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles['header-bottom']}>
|
||||
<nav className={styles['header-bottom__list']}>
|
||||
<a href="/" className={styles['header-bottom__list__items-menu']}>CURSOS</a>
|
||||
<a href="/" className={styles['header-bottom__list__items-menu']}>SAIBA MAIS</a>
|
||||
<a href="/" className={styles['header-bottom__list__items-menu']}>INSTITUCIONAIS</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
|
||||
export { HeaderDesktop }
|
13
src/components/organisms/Header/Header.tsx
Normal file
13
src/components/organisms/Header/Header.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
import { HeaderMobile } from "./HeaderMobile/HeaderMobile";
|
||||
import { HeaderDesktop } from "./HeaderDesktop/HeaderDesktop";
|
||||
|
||||
const Header = () => {
|
||||
return (
|
||||
<>
|
||||
<HeaderDesktop />
|
||||
<HeaderMobile />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
export { Header };
|
@ -1,4 +1,4 @@
|
||||
@import '../../../variaveis';
|
||||
@import '../../../../variaveis';
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
@ -39,7 +39,7 @@
|
||||
width: 25%;
|
||||
height: 12px;
|
||||
|
||||
background-image: url("../../../assets/imgs/search-icon-header.png");
|
||||
background-image: url("../../../../assets/imgs/search-icon-header.png");
|
||||
background-size: 18px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: bottom 50% right 16px;
|
@ -0,0 +1,38 @@
|
||||
import logo from "../../../../assets/imgs/m3-acdemy-logo.png";
|
||||
import cart from "../../../../assets/imgs/cart-icon-header.png";
|
||||
|
||||
import styles from "./HeaderDesktop.module.scss";
|
||||
|
||||
const HeaderDesktop = () => {
|
||||
return (
|
||||
<header className={styles["header"]}>
|
||||
<div className={styles["header-top"]}>
|
||||
<img src={logo} alt="Logo M3" className={styles["header-top__logo"]} />
|
||||
<input placeholder="Buscar..." className={styles["header-top__input"]} />
|
||||
<div className={styles["header-top__log-cart"]}>
|
||||
<a href="/" className={styles["header-top__log"]}>
|
||||
ENTRAR
|
||||
</a>
|
||||
<a href="/" className={styles["header-top__cart"]}>
|
||||
<img src={cart} alt="Img do Carrinho" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div className={styles["header-bottom"]}>
|
||||
<nav className={styles["header-bottom__list"]}>
|
||||
<a href="/" className={styles["header-bottom__list__items-menu"]}>
|
||||
CURSOS
|
||||
</a>
|
||||
<a href="/" className={styles["header-bottom__list__items-menu"]}>
|
||||
SAIBA MAIS
|
||||
</a>
|
||||
<a href="/" className={styles["header-bottom__list__items-menu"]}>
|
||||
INSTITUCIONAIS
|
||||
</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
};
|
||||
|
||||
export { HeaderDesktop };
|
@ -1,4 +1,4 @@
|
||||
@import '../../../variaveis';
|
||||
@import '../../../../variaveis';
|
||||
|
||||
.header-mobile {
|
||||
display: none;
|
||||
@ -37,7 +37,7 @@
|
||||
height: 12px;
|
||||
margin-top: 25px;
|
||||
|
||||
background-image: url("../../../assets/imgs/search-icon-header.png");
|
||||
background-image: url("../../../../assets/imgs/search-icon-header.png");
|
||||
background-size: 18px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: bottom 50% right 16px;
|
@ -2,10 +2,10 @@ import { useEffect, useState } from "react";
|
||||
|
||||
import styles from "./HeaderMobile.module.scss";
|
||||
|
||||
import { MenuMobile } from "../../molecules/MenuMobile/MenuMobile";
|
||||
import hamburger from "../../../assets/imgs/menu-hamburger-header.png";
|
||||
import logo from "../../../assets/imgs/m3-acdemy-logo.png";
|
||||
import cart from "../../../assets/imgs/cart-icon-header.png";
|
||||
import { MenuMobile } from "../../../molecules/MenuMobile/MenuMobile";
|
||||
import hamburger from "../../../../assets/imgs/menu-hamburger-header.png";
|
||||
import logo from "../../../../assets/imgs/m3-acdemy-logo.png";
|
||||
import cart from "../../../../assets/imgs/cart-icon-header.png";
|
||||
|
||||
const HeaderMobile = () => {
|
||||
const [menuIsVisible, setMenuIsVisible] = useState(false);
|
@ -1,6 +1,6 @@
|
||||
import styles from "./Home.module.scss";
|
||||
|
||||
import { Header } from "../components/Header/Header";
|
||||
import { Header } from "../components/organisms/Header/Header";
|
||||
import { BreadCrumbs } from "../components/molecules/Breadcrumbs/Breadcrumbs";
|
||||
import { Main } from "../components/Main/Main";
|
||||
import { ButtonsFixeds } from "../components/Atoms/ButtonsFixed/ButtonsFixed";
|
||||
|
Loading…
Reference in New Issue
Block a user