forked from M3-Academy/desafio-react-e-typescript
feat(header): Cria o header bottom desktop
This commit is contained in:
parent
53d8bc6971
commit
c8787ccafb
7
src/components/HeaderBottom/HeaderBottom.module.scss
Normal file
7
src/components/HeaderBottom/HeaderBottom.module.scss
Normal file
@ -0,0 +1,7 @@
|
||||
@use '../../variables';
|
||||
|
||||
.header-bottom {
|
||||
@media (max-width: 1024px) {
|
||||
display: none;
|
||||
}
|
||||
}
|
16
src/components/HeaderBottom/HeaderBottom.tsx
Normal file
16
src/components/HeaderBottom/HeaderBottom.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import React from 'react';
|
||||
|
||||
import styles from "./HeaderBottom.module.scss";
|
||||
|
||||
import { HeaderNavBar } from '../HeaderNavBar/HeaderNavBar';
|
||||
|
||||
const HeaderBottom = () => {
|
||||
|
||||
return (
|
||||
<div className={styles["header-bottom"]}>
|
||||
<HeaderNavBar />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export {HeaderBottom};
|
@ -3,6 +3,7 @@ import React from 'react';
|
||||
import styles from "./Home.module.scss";
|
||||
|
||||
import { HeaderTop } from '../components/HeaderTop/HeaderTop';
|
||||
import { HeaderBottom } from '../components/HeaderBottom/HeaderBottom';
|
||||
|
||||
const Home = () => {
|
||||
|
||||
@ -10,6 +11,7 @@ const Home = () => {
|
||||
<>
|
||||
<header className={styles["header"]}>
|
||||
<HeaderTop />
|
||||
<HeaderBottom />
|
||||
</header>
|
||||
|
||||
<main></main>
|
||||
|
Loading…
Reference in New Issue
Block a user