feature/challenge #1

Merged
BernardoWaldhelm merged 38 commits from feature/challenge into main 2023-01-15 15:25:18 +00:00
8 changed files with 60 additions and 54 deletions
Showing only changes of commit 0a00b8819e - Show all commits

View File

@ -1,13 +0,0 @@
import { HeaderMobile } from "./HeaderMobile/HeaderMobile"
import { HeaderDesktop } from './HeaderDesktop/HeaderDesktop'
const Header = () => {
return (
<>
<HeaderDesktop />
<HeaderMobile />
</>
)
}
export { Header }

View File

@ -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 }

View File

@ -0,0 +1,13 @@
import { HeaderMobile } from "./HeaderMobile/HeaderMobile";
import { HeaderDesktop } from "./HeaderDesktop/HeaderDesktop";
const Header = () => {
return (
<>
<HeaderDesktop />
<HeaderMobile />
</>
);
};
export { Header };

View File

@ -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;

View File

@ -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 };

View File

@ -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;

View File

@ -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);

View File

@ -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";