forked from M3-Academy/desafio-react-e-typescript
feat(header):logo img desktop responsiva
This commit is contained in:
parent
544ad23153
commit
c89eec63aa
@ -12,8 +12,14 @@
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<header id="rootheader"></header>
|
||||
<main id="root"></main>
|
||||
<footer id="rootfooter"></footer>
|
||||
<header id="rootheader">
|
||||
|
||||
</header>
|
||||
<main id="root">
|
||||
|
||||
</main>
|
||||
<footer id="rootfooter">
|
||||
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
BIN
desafio-5/src/components/assets/imgs/Logo.png
Normal file
BIN
desafio-5/src/components/assets/imgs/Logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
@ -1,4 +1,32 @@
|
||||
@import "../utils/Variables.scss";
|
||||
|
||||
.main_wrapper{
|
||||
}
|
||||
.Header_wrapper {
|
||||
display: flex;
|
||||
min-height: 120px;
|
||||
color: white;
|
||||
background: black;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
|
||||
&-top {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
width: 100%;
|
||||
height: 76px !important;
|
||||
height: 25.86px;
|
||||
background: pink;
|
||||
|
||||
&-logo {
|
||||
width: 10.27%;
|
||||
margin: 25px 0;
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-bottom {
|
||||
background: orangered;
|
||||
}
|
||||
}
|
||||
|
@ -1,11 +1,39 @@
|
||||
import React, { useState, useEffect, useRef, useMemo, useCallback,useContext} from "react"
|
||||
|
||||
import HeaderStyles from "../modules/header.module.scss"
|
||||
import Logo from '../assets/imgs/Logo.png';
|
||||
|
||||
const Header = () =>{
|
||||
return (
|
||||
<div className={HeaderStyles["main_wrapper"]}>
|
||||
conteudo do header
|
||||
<div className={HeaderStyles["Header_wrapper"]}>
|
||||
|
||||
<div className={HeaderStyles["Header_wrapper-top"]}>
|
||||
<div className={HeaderStyles["Header_wrapper-top-logo"]}>
|
||||
<a href="/">
|
||||
<img src={Logo} alt="Logo" />
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<input name="search" type="text" placeholder="Buscar">
|
||||
</input>
|
||||
<label htmlFor="search">
|
||||
<button>
|
||||
<img src="" alt="Lupa" />
|
||||
</button>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<button>Entrar</button>
|
||||
<button>
|
||||
<img src="" alt="Carrinho_icon" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div className={HeaderStyles["Header_wrapper-bottom"]}>
|
||||
opções
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user