diff --git a/desafio-5/src/components/assets/icons/Hamburger_menu.svg b/desafio-5/src/components/assets/icons/Hamburger_menu.svg new file mode 100644 index 0000000..6cadeb3 --- /dev/null +++ b/desafio-5/src/components/assets/icons/Hamburger_menu.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/desafio-5/src/components/assets/imgs/Logo-M3Academy-mobile.png b/desafio-5/src/components/assets/imgs/Logo-M3Academy-mobile.png new file mode 100644 index 0000000..d7524ec Binary files /dev/null and b/desafio-5/src/components/assets/imgs/Logo-M3Academy-mobile.png differ diff --git a/desafio-5/src/components/modules/header.module.scss b/desafio-5/src/components/modules/header.module.scss index 65fc241..ffb7183 100644 --- a/desafio-5/src/components/modules/header.module.scss +++ b/desafio-5/src/components/modules/header.module.scss @@ -10,6 +10,13 @@ justify-content: space-between; height: 22.225vh; max-height: 160px; + + &-mobileTop{ + display: none; + } + &-mobilebottom{ + display: none; + } // Top-header &-top { @@ -23,6 +30,7 @@ border-bottom: 1px solid $-gray-300; &-logo { + border: 0; width: 12.593%; max-width: 264.61px; margin: 3px 0; @@ -207,9 +215,42 @@ } } } + //Mobile -@media screen and (min-width: 280px) and (max-width: 490px) { +@media screen and (min-width: 280px) and (max-width: 1024px) { + .Header_wrapper { + height: 25.93vh; + max-height: 100%; + // Top-header-mobile -} + &-mobileTop { + display: flex; + justify-content: space-between; + align-items: center; + padding: 25px 16px; + gap: 10px; + background: pink; + &-menu{ + border: none; + min-height: 22.5px; + height: 4.083vh; + width: 8.17%; + .hamburguer{ + width: 100%; + height: 100%; + } + } + } + + // Top-header-desktop + &-top { + display: none; + } + //bottom-header-desktop + &-bottom { + display: none; + } + } +} \ No newline at end of file diff --git a/desafio-5/src/components/scripts/header.tsx b/desafio-5/src/components/scripts/header.tsx index 7301d2f..931b1a6 100644 --- a/desafio-5/src/components/scripts/header.tsx +++ b/desafio-5/src/components/scripts/header.tsx @@ -2,19 +2,21 @@ import React, { useState, useEffect, useRef, useMemo, useCallback,useContext} fr import HeaderStyles from "../modules/header.module.scss" import Logo from '../assets/imgs/Logo.png'; +import LogoMobile from '../assets/imgs/Logo-M3Academy-mobile.png'; import Lupa from "../assets/icons/search_Icon_desk.svg"; import Cart from "../assets/icons/cart_desk_icon.svg"; +import MenuMobile from "../assets/icons/Hamburger_menu.svg"; const Header = () =>{ return (
-
+
Logo -
+
@@ -32,6 +34,31 @@ const Header = () =>{
+
+
+ Logo-mobile +
+ {/*
+ + Logo-mobile + +
+ */} +
+ + {/*
+
+ + + +
+
*/}