feat(header-top): ajustes do css header top desktop

This commit is contained in:
Gabriel Ferraz Nogueira 2023-01-09 11:29:21 -03:00
parent 860138657d
commit 24ffe0f337
8 changed files with 96 additions and 12 deletions

View File

@ -34,7 +34,6 @@ export const App = () => {
(
<>
{window.innerWidth > 1024 ? <HeaderDesktop /> : <HeaderMobile />}
<section className="Container-menu">
<Router />
</section>

View File

@ -4,35 +4,79 @@
padding: 22px 100px;
background: #000;
font-family: "Roboto", sans-serif;
border-bottom: 1px solid #c4c4c4;
.m3LogoWrapper {
// width: 10.6%;
display: flex;
align-items: center;
// width: 11.5%;
// min-width: 136px;
// height: 50px;
// top: 50%;
// position: sticky;
.M3Logo {
width: 100%;
}
}
.Search_Header_wrapper {
position: relative;
display: flex;
align-items: center;
width: 100%;
width: 24.5%;
max-width: 515px;
.Search_Header {
width: 100%;
height: 57px;
height: 16px;
padding: 8px;
border: 2px solid #f0f0f0;
border-radius: 5px;
@media (min-width: 2500px) {
height: 33px;
padding: 12px;
}
}
.SearchIcon {
position: absolute;
top: 25%;
right: 16px;
}
}
.Headerlinks {
display: flex;
gap: 55px;
.EnterLink {
display: flex;
align-items: center;
font-style: normal;
font-weight: 400;
font-size: 28px;
line-height: 33px;
font-size: 14px;
line-height: 16px;
color: #fff;
text-decoration: none;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
.CartIcon_Wrapper {
display: flex;
align-items: center;
// width: 17%;
// max-height: 54px;
// top: 50%;
// position: sticky;
.CartIcon {
width: 100%;
}
}
}
}

View File

@ -1,6 +1,7 @@
import { NavLink } from "react-router-dom";
import LogoM3 from "../assets/imgs/SVGs/Logo-M3Academy_desktop.svg";
import CartIcon from "../assets/imgs/SVGs/minicart_desktop.svg";
import LogoM3 from "../assets/imgs/SVGs/M3Logo_desktop.svg";
import CartIcon from "../assets/imgs/SVGs/CartIcon_desktop.svg";
import SearchIcon from "../assets/imgs/SVGs/search-icon-desktop.svg";
import "./HeaderDesktop.modules.scss";
@ -15,12 +16,20 @@ export const HeaderDesktop = () => {
</div>
<div className="Search_Header_wrapper">
<input readOnly className="Search_Header" placeholder="Buscar..." />
<NavLink to={""}>
<img src={SearchIcon} className="SearchIcon" alt="Search-Icon" />
</NavLink>
</div>
<div className="Headerlinks">
<NavLink to={"/"} className="EnterLink"> ENTRAR </NavLink>
<NavLink to={"/"}>
<img src={CartIcon} alt="CartIcon" className="CartIcon" />
<NavLink to={"/"} className="EnterLink">
{" "}
ENTRAR{" "}
</NavLink>
<div className="CartIcon_Wrapper">
<NavLink to={"/"}>
<img src={CartIcon} alt="Cart-Icon" className="CartIcon" />
</NavLink>
</div>
</div>
</section>
</>

View 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_3715_4730)">
<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.8461 21.5385C10.2132 21.5385 8.88458 22.867 8.88458 24.5C8.88458 26.133 10.2131 27.4615 11.8461 27.4615C13.4791 27.4615 14.8077 26.133 14.8077 24.5C14.8077 22.867 13.4792 21.5385 11.8461 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_3715_4730">
<rect width="28" height="28" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

View 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_6124_39)">
<path d="M13.2094 11.6187C14.0951 10.4091 14.6249 8.92334 14.6249 7.31267C14.6249 3.2807 11.3444 0.000183105 7.31245 0.000183105C3.28048 0.000183105 0 3.2807 0 7.31267C0 11.3446 3.28052 14.6252 7.31248 14.6252C8.92315 14.6252 10.409 14.0953 11.6186 13.2095L16.4092 18.0001L18 16.4093C18 16.4092 13.2094 11.6187 13.2094 11.6187ZM7.31248 12.3751C4.52086 12.3751 2.25001 10.1043 2.25001 7.31267C2.25001 4.52104 4.52086 2.25019 7.31248 2.25019C10.1041 2.25019 12.375 4.52104 12.375 7.31267C12.375 10.1043 10.1041 12.3751 7.31248 12.3751Z" fill="#303030"/>
</g>
<defs>
<clipPath id="clip0_6124_39">
<rect width="18" height="18" rx="5" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 804 B

View File

@ -2,4 +2,5 @@ export const phoneNumber = /\([1-9]{2}\) [1-9]{2}\d{3}-\d{4}/;
export const cpfNumber = /\d{3}.\d{3}.\d{3}-\d{2}/;
export const insta = /@/;
export const insta =
/(?:^|[^\w])(?:@)([\w-](?:(?:[\w-]|(?:\.(?!\.))){0,28}(?:[\w-]))?)/;