feat(Header): Estiliza componentes header
This commit is contained in:
parent
928131a801
commit
88cb9e66c3
@ -1,12 +0,0 @@
|
||||
|
||||
import './App.css'
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<h1>test</h1>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default App
|
12
react-ts/src/Pages/Home/Home.tsx
Normal file
12
react-ts/src/Pages/Home/Home.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
import './Home.scss'
|
||||
|
||||
import Header from '../../components/Header/Header'
|
||||
|
||||
const Home = () => {
|
||||
return (
|
||||
<Header/>
|
||||
)
|
||||
}
|
||||
|
||||
export default Home
|
12
react-ts/src/assets/images/cart-header.svg
Normal file
12
react-ts/src/assets/images/cart-header.svg
Normal file
@ -0,0 +1,12 @@
|
||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4307_25)">
|
||||
<path d="M27.823 4.07236C27.6697 3.88079 27.4377 3.76928 27.1923 3.76928H5.69581L5.09469 1.16451C5.01009 0.798054 4.68377 0.538452 4.30768 0.538452H0.80768C0.361648 0.538452 0 0.9001 0 1.34619C0 1.79227 0.361648 2.15387 0.80768 2.15387H3.66516L7.7455 19.8355C7.83005 20.2019 8.15642 20.4615 8.53251 20.4615H24.7154C25.1614 20.4615 25.523 20.0999 25.523 19.6539C25.523 19.2078 25.1614 18.8462 24.7154 18.8462H9.17509L8.55384 16.1539H24.7693C25.1471 16.1539 25.4744 15.892 25.5573 15.5235L27.9803 4.75426C28.0342 4.51483 27.9763 4.26398 27.823 4.07236Z" fill="white"/>
|
||||
<path d="M11.8462 21.5385C10.2132 21.5385 8.88464 22.867 8.88464 24.5C8.88464 26.133 10.2132 27.4615 11.8462 27.4615C13.4792 27.4615 14.8077 26.133 14.8077 24.5C14.8077 22.867 13.4792 21.5385 11.8462 21.5385Z" fill="white"/>
|
||||
<path d="M21.5385 21.5385C19.9055 21.5385 18.5769 22.867 18.5769 24.5C18.5769 26.133 19.9054 27.4615 21.5385 27.4615C23.1714 27.4615 24.5 26.133 24.5 24.5C24.5 22.867 23.1715 21.5385 21.5385 21.5385Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4307_25">
|
||||
<rect width="28" height="28" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
10
react-ts/src/assets/images/icon-search.svg
Normal file
10
react-ts/src/assets/images/icon-search.svg
Normal file
@ -0,0 +1,10 @@
|
||||
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_4307_8)">
|
||||
<path d="M13.2094 11.6186C14.0951 10.409 14.6249 8.92328 14.6249 7.31261C14.6249 3.28064 11.3444 0.00012207 7.31245 0.00012207C3.28048 0.00012207 0 3.28064 0 7.31261C0 11.3446 3.28052 14.6251 7.31248 14.6251C8.92315 14.6251 10.409 14.0952 11.6186 13.2094L16.4092 18L18 16.4092C18 16.4092 13.2094 11.6186 13.2094 11.6186ZM7.31248 12.3751C4.52086 12.3751 2.25001 10.1042 2.25001 7.31261C2.25001 4.52098 4.52086 2.25013 7.31248 2.25013C10.1041 2.25013 12.375 4.52098 12.375 7.31261C12.375 10.1042 10.1041 12.3751 7.31248 12.3751Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_4307_8">
|
||||
<rect width="18" height="18" rx="5" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 795 B |
9
react-ts/src/assets/images/logo-m3academy.svg
Normal file
9
react-ts/src/assets/images/logo-m3academy.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 19 KiB |
11
react-ts/src/components/Header/Header.scss
Normal file
11
react-ts/src/components/Header/Header.scss
Normal file
@ -0,0 +1,11 @@
|
||||
@import '../../styles/utils/Variables.scss';
|
||||
|
||||
.header {
|
||||
padding: 22px 100px;
|
||||
background-color: $color-black1;
|
||||
&__wrapper-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
31
react-ts/src/components/Header/Header.tsx
Normal file
31
react-ts/src/components/Header/Header.tsx
Normal file
@ -0,0 +1,31 @@
|
||||
import './Header.scss';
|
||||
|
||||
import InputSearch from '../InputSearch/InputSearch';
|
||||
import logoM3 from '../../assets/images/logo-m3academy.svg';
|
||||
|
||||
const Header = () => {
|
||||
return (
|
||||
<header className='header'>
|
||||
<div className='header__wrapper-top'>
|
||||
<picture className='header__wrapper-top__picture'>
|
||||
<a href="https://lp.digitalm3.com.br/m3-academy-universidade-corporativa">
|
||||
<img className='header__wrapper-top__picture__logo' src={logoM3} alt="Logo m3academy" />
|
||||
</a>
|
||||
</picture>
|
||||
<InputSearch/>
|
||||
</div>
|
||||
{/* <div className='header__wrapper-botom'>
|
||||
<ul className='header__wrapper-top__ul'>
|
||||
<li className='header__wrapper-top__ul__li'>
|
||||
<a href="/">cursos</a>
|
||||
</li>
|
||||
<li className='header__wrapper-top__ul__li'>
|
||||
<a href="/">saiba mais</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div> */}
|
||||
</header>
|
||||
)
|
||||
}
|
||||
|
||||
export default Header
|
28
react-ts/src/components/InputSearch/InputSearch.scss
Normal file
28
react-ts/src/components/InputSearch/InputSearch.scss
Normal file
@ -0,0 +1,28 @@
|
||||
@import '../../styles/utils/Variables.scss';
|
||||
|
||||
.wrapper-iconSearch {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: end;
|
||||
position: relative;
|
||||
max-width: 264px;
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
border-radius: 5px;
|
||||
&__input {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding: 8px 16px;
|
||||
border: 2px solid #F2F2F2;
|
||||
border-radius: 5px;
|
||||
color: $color-grey1;
|
||||
&::placeholder {
|
||||
font-family: $font-family;
|
||||
color: $color-grey1;
|
||||
}
|
||||
}
|
||||
&__icon {
|
||||
position: absolute;
|
||||
margin-right: 16px;
|
||||
}
|
||||
}
|
16
react-ts/src/components/InputSearch/InputSearch.tsx
Normal file
16
react-ts/src/components/InputSearch/InputSearch.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import './InputSearch.scss';
|
||||
|
||||
import IconSearch from '../../assets/images/icon-Search.svg';
|
||||
|
||||
|
||||
const InputSearch = () => {
|
||||
return (
|
||||
<div className='wrapper-iconSearch'>
|
||||
<input className='wrapper-iconSearch__input' type="text" placeholder="Buscar..." />
|
||||
<img className='wrapper-iconSearch__icon' src={IconSearch} alt="Icone de pesquisa" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
export default InputSearch;
|
@ -1,5 +0,0 @@
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
1
react-ts/src/index.scss
Normal file
1
react-ts/src/index.scss
Normal file
@ -0,0 +1 @@
|
||||
@import './styles/common/Reset.scss';
|
@ -1,10 +1,10 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import App from './App'
|
||||
import './index.css'
|
||||
import Home from './Pages/Home/Home'
|
||||
import './index.scss'
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
<Home />
|
||||
</React.StrictMode>,
|
||||
)
|
||||
|
9
react-ts/src/styles/common/Reset.scss
Normal file
9
react-ts/src/styles/common/Reset.scss
Normal file
@ -0,0 +1,9 @@
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
list-style: none;
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
14
react-ts/src/styles/utils/Variables.scss
Normal file
14
react-ts/src/styles/utils/Variables.scss
Normal file
@ -0,0 +1,14 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Arimo&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Poppins:wght@700&family=Roboto:wght@400;500;700&display=swap');
|
||||
|
||||
// colors
|
||||
$color-red1: #ff0000;
|
||||
|
||||
$color-grey1: #c4c4c4;
|
||||
$color-grey2: #b9b7b7;
|
||||
$color-grey3: #c6c6c6c6;
|
||||
$color-grey4: #7d7d7d;
|
||||
|
||||
$color-black1: #000000;
|
||||
|
||||
//fonts
|
||||
$font-family: 'Roboto', sans-serif;
|
Loading…
x
Reference in New Issue
Block a user