From 4834ed54a91758ba1922654f11cedce6ae2fcf5b Mon Sep 17 00:00:00 2001 From: Rallenson Date: Fri, 6 Jan 2023 22:55:24 -0300 Subject: [PATCH] feat(mobile):Menu Hamburguer responsivo --- .../assets/icons/Hamburger_menu.svg | 5 ++ .../assets/imgs/Logo-M3Academy-mobile.png | Bin 0 -> 2974 bytes .../src/components/modules/header.module.scss | 45 +++++++++++++++++- desafio-5/src/components/scripts/header.tsx | 31 +++++++++++- 4 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 desafio-5/src/components/assets/icons/Hamburger_menu.svg create mode 100644 desafio-5/src/components/assets/imgs/Logo-M3Academy-mobile.png 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 0000000000000000000000000000000000000000..d7524ec3c22d35380f9dcf88ca6b67986b1673bf GIT binary patch literal 2974 zcmV;P3t{w$P)wrh+5xAfw8m;@z>Ziz zE1eN*wNn@ig;F|01qlJmYd}FEkN_csBs@aix!do{?w@=9y?bwxnm7aGWWN0W?w;K} zyL! zu!7|40Z@h|zInNkXBczF1qL_rXZVjE|lV3ybbIyrRbuIo{WNQ)kB~hYoHkY zRXeFCHlLITcMxN2&NOj9j_1pWsI=NPw1@q>J0AUjD*?2o&H-hSNTjiqdcE<;0(t;d zw$6nl{3({d50Gm6sYIQsBy~7U&JnF)18_1~AD;Ss?AX$Tj5Q8VCLWnV8s!x>KLd|J zKss<1C_$Na>Qb(&0lEZbKsk9pS%R$*dFK+y$F_TjtZL>)u(fOibbB#sx7LNVS{K(D z6ajCPVdl5R^Uf>Ql@QETAt&;D^xh3K(xnpygnuJC)#-oc%N2ko4y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Si=J)5Sp%2>kl%J?CpE&qM86KpY5-aMNh z%+)U_FY3}laN)mc`{Ts6#7Ho{dK<$Cegi{ai}y^F96{r?b;uaJR$ z=i|zp(1Lgf*JVYk4d7ZOZv#S6PZVlB4uP_M7*du8HzJ^RF9OX!M>ytRXLWmMg*LZ_ zMk?G3=y1@>B?fKY5$PIWu#J%{)2$P|cYgIfb$rCrC5HBc3o)IapZ}EYXMQU(GTgmX zq~%@AQr$LUWS19~ZX|WMyGA-3I%n`M%fqwUCyygk`+*zT<=hz>_BJCgWCz1*M1q9wY>BnKBr7vf<6y_ zZ}D#%RAV`PnP6Uc!l`s*{5-%#Lm)tXfbu=I>;@G(>eeIwpwn-Lm5&ZB5C8P{c%0uM zPhieiNe8)IIc?EtzuG1nP<}u;1fF3kb~^OQ!|nJnn`GEv0(f@1?f4XgN1nC@b&?SW z#Yx|VjxU)X@m>m~&F@|QqhiN?`hgSOA0TznWklNeH{-N9Qm+tO3w^6us*5gff)YGx zmBDqk`7?k{3Ga8&MMOG$5)6o^y4#Y~OHo~Pxe%`>=!DYIrccN?&Jy??$CFk1AG!St Ur3(w^b^rhX07*qoM6N<$g3bP&DF6Tf literal 0 HcmV?d00001 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 + +
+ */} +
+ + {/*
+
+ + + +
+
*/}