Fix: Reorganizando projeto, colocando imagens separadas por components #8

Merged
josecarloslins merged 1 commits from feature/development into main 2023-01-07 22:03:02 +00:00
39 changed files with 186 additions and 151 deletions

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,30 @@
import { ReactComponent as WhatsAppIcon } from "./assets/whatsapp-icon.svg";
import styles from "./elementFloat.module.scss";
export default function ElementFloat() {
const btnScrollTop = () => {
window.scrollTo({
top: 0,
left: 0,
behavior: "smooth",
});
};
return (
<div className={styles.floatElementsFooter}>
<button className={styles.whatsappIcon} arial-label="WhatsApp">
<a href="http://api.whatsapp.com/send?1=pt_BR&phone=5582999976243">
<WhatsAppIcon />
</a>
</button>
<button
className={styles.topoSiteIcon}
onClick={btnScrollTop}
arial-label="Voltar ao topo"
>
<img src="/assets/images/top-site-icon.png" alt="Voltar para o topo" />
</button>
</div>
);
}

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Icone WhatsApp</title>
<g clip-path="url(#clip0_3403_1267)">
<path d="M17.0042 0H16.9958C7.62238 0 0 7.6245 0 17C0 20.7188 1.1985 24.1655 3.23638 26.9641L1.11775 33.2796L7.65213 31.1908C10.3403 32.9715 13.5469 34 17.0042 34C26.3776 34 34 26.3734 34 17C34 7.62663 26.3776 0 17.0042 0Z" fill="#4CAF50"/>
<path d="M26.8961 24.0061C26.486 25.1642 24.8582 26.1247 23.5599 26.4052C22.6716 26.5944 21.5114 26.7452 17.6056 25.126C12.6097 23.0562 9.39249 17.9796 9.14174 17.6502C8.90161 17.3209 7.12299 14.9621 7.12299 12.5226C7.12299 10.0831 8.36186 8.89524 8.86124 8.38524C9.27136 7.96662 9.94924 7.77537 10.5995 7.77537C10.8099 7.77537 10.999 7.78599 11.169 7.79449C11.6684 7.81574 11.9191 7.84549 12.2485 8.63387C12.6586 9.62199 13.6574 12.0615 13.7764 12.3122C13.8975 12.563 14.0186 12.903 13.8486 13.2324C13.6892 13.5724 13.549 13.7232 13.2982 14.0122C13.0475 14.3012 12.8095 14.5222 12.5587 14.8325C12.3292 15.1024 12.07 15.3914 12.359 15.8907C12.648 16.3795 13.6467 18.0094 15.1172 19.3184C17.0149 21.0077 18.5534 21.5475 19.1037 21.777C19.5139 21.947 20.0026 21.9066 20.3022 21.5879C20.6826 21.1777 21.1522 20.4977 21.6304 19.8284C21.9704 19.3481 22.3996 19.2886 22.8501 19.4586C23.3091 19.618 25.738 20.8186 26.2374 21.0672C26.7367 21.318 27.0661 21.437 27.1872 21.6474C27.3062 21.8577 27.3062 22.8459 26.8961 24.0061Z" fill="white"/>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,29 @@
.floatElementsFooter {
position: fixed;
right: 16px;
bottom: 28px;
width: 2.6562%;
display: flex;
flex-direction: column;
.whatsappIcon,
.topoSiteIcon {
width: 100%;
background: transparent;
cursor: pointer;
}
.topoSiteIcon {
img {
width: 100%;
}
}
}
@media screen and (max-width: 1024px) {
.floatElementsFooter {
width: 34px;
}
}

View File

@ -1,3 +1,6 @@
import { ReactComponent as VTEXIcon } from "../assets/icons/logoVTEXM3Academy.svg";
import { ReactComponent as M3Icon } from "../assets/icons/logoM3M3Academy.svg";
import styles from "./footerBottom.module.scss";
export default function FooterBottom() {
@ -14,37 +17,37 @@ export default function FooterBottom() {
<div>
<img
className={styles.paymentFooter}
src="/assets/images/masterCardM3Academy.png"
src="../assets/images/masterCardM3Academy.png"
alt="Logo Master Card"
/>
<img
className={styles.paymentFooter}
src="/assets/images/visaM3Academy.png"
src="../assets/images/visaM3Academy.png"
alt="Logo Visa"
/>
<img
className={styles.paymentFooter}
src="/assets/images/amexM3Academy.png"
src="../assets/images/amexM3Academy.png"
alt="Logo American Express"
/>
<img
className={styles.paymentFooter}
src="/assets/images/eloM3Academy.png"
src="../assets/images/eloM3Academy.png"
alt="Logo Elo"
/>
<img
className={styles.paymentFooter}
src="/assets/images/hipercardM3Academy.png"
src="../assets/images/hipercardM3Academy.png"
alt="Logo HiperCard"
/>
<img
className={styles.paymentFooter}
src="/assets/images/paypalM3Academy.png"
src="../assets/images/paypalM3Academy.png"
alt="Logo PayPal"
/>
<img
className={styles.paymentFooter}
src="/assets/images/boletoM3Academy.png"
src="../assets/images/boletoM3Academy.png"
alt="Logo Boleto"
/>
</div>
@ -56,7 +59,7 @@ export default function FooterBottom() {
<div>
<img
className={styles.vtexIcon}
src="/assets/images/vtexPCIM3Academy.png"
src="../assets/images/vtexPCIM3Academy.png"
alt="Logo VTEX PCI Certificado"
/>
</div>
@ -66,21 +69,13 @@ export default function FooterBottom() {
<li>
<span>Powered by</span>
<a href="https://vtex.com/br-pt/">
<img
className={styles.logoVtexFooter}
src="/assets/icons/logoVTEXM3Academy.svg"
alt="Logo VTEX"
/>
<VTEXIcon className={styles.logoVtexFooter} />
</a>
</li>
<li>
<span>Developed by</span>
<a href="https://m3ecommerce.com/">
<img
className={styles.logoM3Footer}
src="/assets/icons/logoM3M3Academy.svg"
alt="Logo M3"
/>
<M3Icon className={styles.logoM3Footer} />
</a>
</li>
</ul>

View File

@ -1,4 +1,10 @@
import { useRef, useState } from "react";
import { ReactComponent as FacebookIcon } from "../assets/icons/facebook-icon.svg";
import { ReactComponent as InstagramIcon } from "../assets/icons/instagram-icon.svg";
import { ReactComponent as TwitterIcon } from "../assets/icons/twitter-icon.svg";
import { ReactComponent as YouTubeIcon } from "../assets/icons/youtube-icon.svg";
import { ReactComponent as LinkedinIcon } from "../assets/icons/linkedin-icon.svg";
import styles from "./footerTop.module.scss";
export default function FooterTop() {
@ -145,20 +151,20 @@ export default function FooterTop() {
</div>
<div className={styles.containerSocialIcons}>
<div className={styles.wrapperSocialIcons}>
<a href="/">
<img src="/assets/icons/facebook-icon.svg" alt="Facebook" />
<a href="https://facebook.com/">
<FacebookIcon />
</a>
<a href="/">
<img src="/assets/icons/instagram-icon.svg" alt="Instagram" />
<a href="https://instagram.com/">
<InstagramIcon />
</a>
<a href="/">
<img src="/assets/icons/twitter-icon.svg" alt="Twitter" />
<a href="https://twitter.com/">
<TwitterIcon />
</a>
<a href="/">
<img src="/assets/icons/youtube-icon.svg" alt="Youtube" />
<a href="https://youtube.com/">
<YouTubeIcon />
</a>
<a href="/">
<img src="/assets/icons/linkedin-icon.svg" alt="Linkedin" />
<a href="https://linkedin.com/">
<LinkedinIcon />
</a>
</div>
<a className={styles.linkSocial} href="/">

View File

@ -58,7 +58,7 @@
a {
width: 16.279%;
img {
svg {
width: 100%;
}
}
@ -145,7 +145,7 @@
a {
width: 100%;
img {
svg {
width: 35px;
}
}

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Icone Facebook</title>
<g clip-path="url(#clip0_4151_910)">
<g clip-path="url(#clip1_4151_910)">
<path d="M19.1778 27.4911V18.544H22.1734L22.6228 15.0561H19.1778V12.8296C19.1778 11.8201 19.4564 11.1321 20.9026 11.1321L22.7441 11.1314V8.01166C22.4256 7.97019 21.3325 7.87511 20.0602 7.87511C17.4034 7.87511 15.5845 9.50026 15.5845 12.4842V15.0561H12.5799V18.544H15.5845V27.4911H19.1778Z" fill="#303030"/>

Before

Width:  |  Height:  |  Size: 784 B

After

Width:  |  Height:  |  Size: 814 B

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Icone Instagram</title>
<g clip-path="url(#clip0_4151_915)">
<g clip-path="url(#clip1_4151_915)">
<path d="M22.0996 7.87509H13.2966C10.3071 7.87509 7.87497 10.3036 7.87497 13.2884V22.0777C7.87497 25.0626 10.3071 27.491 13.2966 27.491H22.0996C25.0893 27.491 27.5214 25.0625 27.5214 22.0777V13.2884C27.5215 10.3036 25.0893 7.87509 22.0996 7.87509ZM25.7784 22.0777C25.7784 24.103 24.1281 25.7506 22.0997 25.7506H13.2966C11.2683 25.7507 9.6181 24.103 9.6181 22.0777V13.2884C9.6181 11.2632 11.2683 9.61551 13.2966 9.61551H22.0996C24.128 9.61551 25.7783 11.2632 25.7783 13.2884V22.0777H25.7784Z" fill="#303030"/>

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Icone Linkedin</title>
<g clip-path="url(#clip0_4151_930)">
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
<g clip-path="url(#clip1_4151_930)">

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 29 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>M3 Icone</title>
<path d="M17.0307 5.35268C16.5833 4.75927 16.0213 4.26577 15.3795 3.90269C14.7376 3.53961 14.0296 3.31466 13.2992 3.24175C12.5688 3.16883 11.8315 3.2495 11.1328 3.47877C10.4342 3.70803 9.78905 4.08103 9.23731 4.57469L8.76065 4.20515C5.48598 1.85175 0.900479 3.8502 0.471483 7.88112C0.34098 9.82309 0.307571 11.7706 0.371384 13.716C0.360856 13.9656 0.400742 14.2148 0.488564 14.4481C0.576387 14.6814 0.710272 14.8937 0.88191 15.072C1.05355 15.2503 1.25928 15.3907 1.48632 15.4845C1.71337 15.5782 1.95689 15.6234 2.20177 15.6172C2.44143 15.6161 2.6784 15.5657 2.89845 15.4688C3.11851 15.372 3.31709 15.2307 3.48227 15.0536C3.64746 14.8765 3.77583 14.6671 3.85968 14.4381C3.94352 14.209 3.98111 13.9651 3.97019 13.7209C3.97019 12.3205 3.97019 10.9201 3.97019 9.51489C3.96633 9.0983 3.99502 8.68206 4.05599 8.27012C4.13287 7.84849 4.3634 7.4722 4.70121 7.21691C5.03901 6.96162 5.45905 6.84627 5.87684 6.89406C6.28524 6.92547 6.66838 7.10775 6.95445 7.40673C7.24052 7.70571 7.40987 8.10086 7.43076 8.5181C7.45459 9.03351 7.43076 9.54893 7.43076 10.0643C7.43076 11.3188 7.43076 12.5733 7.43076 13.8278C7.42587 14.1917 7.53195 14.5481 7.73434 14.8478C7.93673 15.1475 8.22541 15.3755 8.56045 15.5005C9.77594 16.0159 11.0153 15.1115 11.0391 13.6868C11.0391 12.0288 11.0391 10.3707 11.0868 8.71259C11.1028 8.31178 11.2229 7.92249 11.4347 7.58452C11.6364 7.2865 11.9287 7.06453 12.2665 6.95292C12.6042 6.8413 12.9685 6.84625 13.3032 6.96699C13.6808 7.07493 14.0109 7.31116 14.2388 7.63656C14.4668 7.96196 14.579 8.35703 14.5569 8.75636C14.5569 10.4339 14.5569 12.1114 14.5569 13.7889C14.5569 14.0297 14.6033 14.268 14.6937 14.4904C14.784 14.7129 14.9163 14.9149 15.0832 15.0852C15.2501 15.2554 15.4482 15.3904 15.6662 15.4825C15.8842 15.5746 16.1179 15.6221 16.3539 15.6221C16.5899 15.6221 16.8236 15.5746 17.0416 15.4825C17.2596 15.3904 17.4577 15.2554 17.6246 15.0852C17.7914 14.9149 17.9238 14.7129 18.0141 14.4904C18.1044 14.268 18.1509 14.0297 18.1509 13.7889C18.1509 12.0725 18.1509 10.3853 18.1509 8.64452C18.1542 7.44943 17.7592 6.28868 17.0307 5.35268Z" fill="white"/>
<path d="M26.035 6.32487L25.4678 6.08661C26.0302 5.63927 26.5641 5.25514 27.0407 4.81752C27.4642 4.4774 27.8298 4.06832 28.1228 3.60679C28.9808 1.97302 27.77 0.0718221 25.8491 0.0280605C24.0759 0.00374847 22.3075 0.00374847 20.5343 0.00374847C20.3171 -0.0115626 20.0992 0.0201443 19.8949 0.0967889C19.6905 0.173434 19.5044 0.293284 19.3486 0.448477C19.1929 0.60367 19.0711 0.790699 18.9912 0.997294C18.9113 1.20389 18.8751 1.42538 18.8851 1.64724C18.8638 1.87321 18.891 2.10119 18.9648 2.31538C19.0385 2.52956 19.157 2.72483 19.3121 2.88764C19.4671 3.05046 19.6551 3.17692 19.8628 3.25828C20.0706 3.33964 20.2932 3.37394 20.5152 3.3588C21.3828 3.3588 22.2503 3.3588 23.1178 3.3588C23.2656 3.40743 23.4181 3.40743 23.7041 3.40743C22.5268 4.37991 21.44 5.30376 20.3675 6.21789C19.6763 6.80138 19.4666 7.43836 19.7097 8.16285C19.8388 8.52047 20.0794 8.82497 20.3946 9.02963C20.7097 9.23429 21.082 9.3278 21.4543 9.29579C22.3742 9.29579 23.2989 9.29579 24.2189 9.29579C24.4252 9.25688 24.6374 9.26476 24.8404 9.31886C25.0434 9.37297 25.2322 9.47198 25.3935 9.60888C25.5548 9.74577 25.6846 9.91719 25.7736 10.111C25.8627 10.3048 25.9089 10.5162 25.9089 10.7302C25.9089 10.9442 25.8627 11.1556 25.7736 11.3494C25.6846 11.5432 25.5548 11.7146 25.3935 11.8515C25.2322 11.9884 25.0434 12.0874 24.8404 12.1415C24.6374 12.1956 24.4252 12.2035 24.2189 12.1646C23.0273 12.1646 21.8356 12.1646 20.6439 12.1646C20.2262 12.1876 19.833 12.3731 19.5453 12.6829C19.2576 12.9927 19.0972 13.4032 19.0972 13.83C19.0972 14.2567 19.2576 14.6672 19.5453 14.977C19.833 15.2868 20.2262 15.4723 20.6439 15.4954C21.888 15.4954 23.1369 15.4954 24.381 15.4954C25.4738 15.4671 26.5239 15.0565 27.3553 14.3323C28.1867 13.6082 28.7488 12.6145 28.9474 11.5179C29.1057 10.4443 28.9043 9.34753 28.3758 8.40513C27.8473 7.46273 27.0225 6.72978 26.035 6.32487Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 46 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>VTEX Icone</title>
<path d="M33.3909 5.99083H31.7838V11.4557C31.7838 11.558 31.6953 11.6456 31.5921 11.6456H30.3535C30.2503 11.6456 30.1619 11.558 30.1619 11.4557V5.99083H28.5399C28.4957 5.99083 28.4367 5.97622 28.4072 5.94699C28.3778 5.91777 28.3483 5.87394 28.3483 5.81549V4.8511C28.3483 4.80727 28.363 4.74882 28.4072 4.7196C28.4367 4.69037 28.4957 4.66115 28.5399 4.67576H33.3909C33.4941 4.67576 33.5826 4.74882 33.5826 4.8511V5.81549C33.5826 5.91777 33.4941 5.99083 33.3909 5.99083Z" fill="white"/>
<path d="M38.5662 11.6017C37.9322 11.6893 37.2834 11.7332 36.6494 11.7186C35.4256 11.7186 34.3492 11.4117 34.3492 9.70213V6.5898C34.3492 4.88021 35.4403 4.58797 36.6641 4.58797C37.2982 4.57336 37.9322 4.6172 38.5662 4.70487C38.6989 4.71948 38.7579 4.77793 38.7579 4.89482V5.77154C38.7579 5.87382 38.6694 5.96149 38.5662 5.96149H36.5757C36.1333 5.96149 35.9711 6.10761 35.9711 6.60441V7.4519H38.4925C38.5957 7.4519 38.6842 7.53957 38.6842 7.64186V8.53318C38.6842 8.63547 38.5957 8.72314 38.4925 8.72314H35.9711V9.71674C35.9711 10.1989 36.1333 10.3597 36.5757 10.3597H38.5662C38.6694 10.3597 38.7579 10.4473 38.7579 10.5496V11.4263C38.7579 11.5286 38.6989 11.5871 38.5662 11.6017Z" fill="white"/>
<path d="M45.7027 11.6455H44.1988C44.0956 11.6601 43.9924 11.6016 43.9481 11.4993L42.6359 9.45367L41.4563 11.4555C41.3973 11.5724 41.3236 11.6455 41.2204 11.6455H39.8196C39.7901 11.6455 39.7459 11.6455 39.7164 11.6162C39.6869 11.587 39.6722 11.5578 39.6722 11.5139C39.6722 11.4847 39.6869 11.4701 39.6869 11.4555L41.7364 8.06555L39.6574 4.85094C39.6427 4.83632 39.6427 4.8071 39.6427 4.79249C39.6427 4.71943 39.7164 4.66098 39.7901 4.67559H41.3383C41.4415 4.67559 41.5153 4.76327 41.5742 4.85094L42.7833 6.75048L43.9629 4.85094C44.0071 4.74865 44.0956 4.69021 44.1988 4.67559H45.5995C45.6732 4.67559 45.747 4.71943 45.747 4.79249C45.747 4.8071 45.7322 4.83632 45.7322 4.85094L43.668 8.09477L45.8207 11.4555C45.8354 11.4847 45.8502 11.5139 45.8502 11.5432C45.8354 11.6016 45.7765 11.6455 45.7027 11.6455Z" fill="white"/>

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Icone Twitter</title>
<g clip-path="url(#clip0_4151_922)">
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
<path d="M29.9915 10.1563C29.0947 10.5497 28.1392 10.8104 27.143 10.937C28.1679 10.3251 28.95 9.36358 29.3178 8.20462C28.3623 8.7743 27.3073 9.1767 26.183 9.40126C25.2757 8.43521 23.9826 7.83688 22.572 7.83688C19.8351 7.83688 17.6317 10.0584 17.6317 12.7817C17.6317 13.1735 17.6648 13.5503 17.7462 13.909C13.6363 13.7086 9.99968 11.7388 7.55666 8.73813C7.13015 9.47812 6.87997 10.3251 6.87997 11.2369C6.87997 12.949 7.76163 14.4666 9.07583 15.3453C8.28158 15.3302 7.50241 15.0996 6.8423 14.7364C6.8423 14.7515 6.8423 14.7711 6.8423 14.7907C6.8423 17.193 8.55588 19.1884 10.803 19.6481C10.4006 19.7581 9.96201 19.8108 9.50686 19.8108C9.19037 19.8108 8.87086 19.7928 8.57095 19.7264C9.21147 21.6842 11.029 23.1235 13.1902 23.1702C11.5083 24.4859 9.37273 25.2786 7.06083 25.2786C6.65541 25.2786 6.26658 25.2605 5.87775 25.2108C8.06757 26.623 10.6628 27.4293 13.4615 27.4293C22.5584 27.4293 27.5319 19.8937 27.5319 13.3619C27.5319 13.1434 27.5243 12.9324 27.5138 12.7229C28.4949 12.0266 29.3193 11.157 29.9915 10.1563Z" fill="#303030"/>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Icone YouTube</title>
<g clip-path="url(#clip0_4151_927)">
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
<path d="M27.8027 12.2486C27.5447 11.2896 26.7886 10.5336 25.8297 10.2754C24.0779 9.79604 17.0706 9.79604 17.0706 9.79604C17.0706 9.79604 10.0636 9.79604 8.31176 10.2572C7.3713 10.5152 6.59672 11.2897 6.33875 12.2486C5.87775 14.0003 5.87775 17.633 5.87775 17.633C5.87775 17.633 5.87775 21.284 6.33875 23.0174C6.59699 23.9763 7.35285 24.7323 8.31189 24.9905C10.082 25.47 17.0709 25.47 17.0709 25.47C17.0709 25.47 24.0779 25.47 25.8297 25.0088C26.7887 24.7507 27.5447 23.9947 27.803 23.0358C28.2638 21.284 28.2638 17.6514 28.2638 17.6514C28.2638 17.6514 28.2823 14.0003 27.8027 12.2486ZM14.8396 20.989V14.277L20.6665 17.633L14.8396 20.989Z" fill="#303030"/>

Before

Width:  |  Height:  |  Size: 957 B

After

Width:  |  Height:  |  Size: 986 B

View File

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

@ -1,17 +1,39 @@
import MenuNav from "../MenuNav/MenuNav";
import { MenuToggle } from "../MenuToggle/MenuToggle";
import { ReactComponent as SearchIcon } from "./assets/search-icon.svg";
import { ReactComponent as CartIcon } from "./assets/cart-icon.svg";
import { useState } from "react";
import { useEffect, useState } from "react";
import styles from "./header.module.scss";
export default function Header() {
const [showMenuToggle, setShowMenuToggle] = useState(false);
const [showMenuDesktop, setShowMenuDesktop] = useState(false);
const openMenuToggle = () => {
setShowMenuToggle((prev) => !prev);
};
// MONITORAR A TELA PARA MOSTRAR OU NÃO O MENU DESKTOP
const menuDesktopControl = () => {
if (window.innerWidth > 1024) {
return setShowMenuDesktop(true);
} else {
return setShowMenuDesktop(false);
}
};
useEffect(() => {
if (window.innerWidth > 1024) {
setShowMenuDesktop(true);
} else {
setShowMenuDesktop(false);
}
}, [showMenuDesktop]);
window.addEventListener("resize", menuDesktopControl);
return (
<>
<header>
@ -37,19 +59,22 @@ export default function Header() {
name="search"
placeholder="Buscar..."
/>
<button type="submit" arial-label="Pesquisar">
<img src="/assets/icons/search-icon.svg" alt="Buscar" />
<button
className={styles.searchButton}
type="submit"
arial-label="Pesquisar"
>
<SearchIcon />
</button>
</form>
<div className={styles.entrarContainer}>
<a href="/">Entrar</a>
<a className={styles.cartIcon} href="http://">
<img src="/assets/icons/cart-icon.svg" alt="Carrinho" />
<a className={styles.cartIcon} href="/">
<CartIcon />
</a>
</div>
</div>
{window.screen.width > 1024 && <MenuNav />}
{showMenuDesktop === true && <MenuNav />}
</header>
<MenuToggle
showMenuToggle={showMenuToggle}

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet">
<title>Carrinho</title>
<g clip-path="url(#clip0_3856_4)">
<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"/>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,3 +1,4 @@
<svg viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Pesquisar!</title>
<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"/>
</svg>

Before

Width:  |  Height:  |  Size: 625 B

After

Width:  |  Height:  |  Size: 651 B

View File

@ -50,13 +50,14 @@
}
}
button {
.searchButton {
background: transparent;
height: 18px;
padding-right: 16px;
img {
svg {
height: 18px;
cursor: pointer;
}
}
}
@ -107,12 +108,12 @@
}
}
button {
.searchButton {
background: transparent;
height: 35.5px;
padding-right: 11px;
img {
svg {
height: 35.5px;
}
}
@ -182,7 +183,7 @@
padding-right: 0;
}
button {
.searchButton {
padding-right: 9px;
}
}

View File

@ -26,18 +26,14 @@ export default function Contato() {
const [validSubmit, setValidSubmit] = useState(false);
const handleFormikSubmit = (values: IFormikValues) => {
setValidSubmit(true);
values.name = "";
values.email = "";
values.cpf = "";
values.dataNasc = "";
values.phone = "";
values.instagram = "";
};
return (
<Formik
onSubmit={handleFormikSubmit}
onSubmit={(values, { resetForm }) => {
handleFormikSubmit(values);
resetForm();
}}
initialValues={initialValues}
validationSchema={FormSchema}
>
@ -174,6 +170,11 @@ export default function Contato() {
<div className={styles.wrapperInput}>
<label htmlFor="instagram">Instagram</label>
<ErrorMessage
name="instagram"
component="span"
className={styles.errorForm}
/>
<Field id="instagram" name="instagram" placeholder="@seuuser" />
</div>
<div className={styles.containerTermos}>

View File

@ -1,6 +1,8 @@
import styles from "./institucional.module.scss";
import Sobre from "./Sobre/Sobre";
import Contato from "./Contato/Contato";
import { ReactComponent as HomeIcon } from "./assets/home-icon.svg";
import { ReactComponent as ArrowIcon } from "./assets/arrow-icon.svg";
import { HashRouter, Route, Routes, Link } from "react-router-dom";
import { useState } from "react";
@ -39,18 +41,22 @@ export default function Institucional() {
return (
<HashRouter>
<div className={styles.containerInstitucional}>
<div className={styles.containerBreadcrumb}>
<i className={styles.homeIcon}>
<a href="/">
<img src="/assets/icons/home-icon.svg" alt="Home" />
</a>
</i>
<i className={styles.arrowIcon}>
<img src="/assets/icons/arrow-icon.svg" alt="Seta BreadCrumb" />
</i>
<a href="/">Institucional</a>
</div>
<h2 className={styles.titleInstitucional}>Institucional</h2>
<nav>
<ul className={styles.containerBreadcrumb}>
<li>
<a href="/">
<HomeIcon className={styles.homeIcon} />
</a>
</li>
<li>
<ArrowIcon className={styles.arrowIcon} />
</li>
<li>
<a href="/">Institucional</a>
</li>
</ul>
</nav>
<h1 className={styles.titleInstitucional}>Institucional</h1>
<div className={styles.containerInfo}>
<nav>

View File

@ -1,3 +1,4 @@
<svg viewBox="0 0 6 8" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Seta</title>
<path d="M5.11608 3.60396L1.6762 0.164193C1.45738 -0.0547314 1.10261 -0.0547314 0.883896 0.164193C0.665166 0.382921 0.665166 0.737679 0.883896 0.95639L3.92766 4.00006L0.883984 7.04362C0.665255 7.26244 0.665255 7.61716 0.883984 7.83589C1.10271 8.0547 1.45747 8.0547 1.67629 7.83589L5.11617 4.39607C5.22553 4.28665 5.28015 4.1434 5.28015 4.00008C5.28015 3.85668 5.22543 3.71332 5.11608 3.60396Z" fill="#C4C4C4"/>
</svg>

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 509 B

View File

@ -1,3 +1,4 @@
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Página Inicial</title>
<path d="M15.8326 7.59562L14.6903 6.4533L8.40431 0.167326C8.18118 -0.0557753 7.81942 -0.0557753 7.59628 0.167326L1.31028 6.4533L0.167381 7.59623C-0.0518699 7.82324 -0.0456085 8.185 0.18141 8.40425C0.402871 8.61814 0.753946 8.61814 0.975407 8.40425L1.14226 8.23623V15.4285C1.14226 15.7442 1.3981 16 1.71372 16H14.2857C14.6013 16 14.8572 15.7442 14.8572 15.4285V8.23623L15.0246 8.40368C15.2516 8.62293 15.6134 8.61664 15.8326 8.38965C16.0465 8.16819 16.0465 7.81708 15.8326 7.59562ZM9.71409 14.8571H6.28537V10.2855H9.71409V14.8571ZM13.7142 14.8571H10.857V9.71403C10.857 9.39841 10.6011 9.14256 10.2855 9.14256H5.7139C5.39829 9.14256 5.14244 9.39841 5.14244 9.71403V14.8571H2.28518V7.09334L7.99969 1.3788L13.7142 7.09334V14.8571Z" fill="#C4C4C4"/>
</svg>

Before

Width:  |  Height:  |  Size: 825 B

After

Width:  |  Height:  |  Size: 856 B

View File

@ -4,6 +4,7 @@
padding: 29px 0 0 0;
display: flex;
align-items: center;
list-style: none;
.homeIcon,
.arrowIcon {
@ -13,17 +14,11 @@
.homeIcon {
width: 16px;
a {
width: 100%;
}
}
.arrowIcon {
img {
width: 4.6px;
height: 8px;
}
width: 4.6px;
height: 8px;
}
a {
@ -92,17 +87,11 @@
.homeIcon {
width: 31px;
a {
width: 100%;
}
}
.arrowIcon {
img {
width: 8.9px;
height: 15.62px;
}
width: 8.9px;
height: 15.62px;
}
a {

View File

@ -1,5 +1,6 @@
import React, { SetStateAction } from "react";
import MenuNav from "../MenuNav/MenuNav";
import { ReactComponent as CloseMenuIcon } from "./assets/closeMenu.svg";
import styles from "./menuToggle.module.scss";
@ -19,10 +20,9 @@ export const MenuToggle = ({
<div className={styles.contentMenuToogle}>
<div className={styles.headerMenuToggle}>
<a href="/">Entrar</a>
<img
<CloseMenuIcon
onClick={() => setShowMenuToggle((prev) => !prev)}
src="/assets/icons/closeMenu.svg"
alt="Fechar Menu"
className={styles.closeMenuIcon}
/>
</div>
<MenuNav />

View File

@ -1,4 +1,5 @@
<svg viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>Fechar Menu</title>
<path d="M11.2284 1.28215L1.22996 10.9942C0.550673 11.6541 0.568968 12.7044 1.27083 13.3401C1.97268 13.9759 3.09232 13.9564 3.77161 13.2966L13.77 3.58449C14.4493 2.92466 14.431 1.87436 13.7292 1.23858C13.0273 0.602806 11.9077 0.622311 11.2284 1.28215Z" fill="white"/>
<path d="M1.65213 3.40819L10.8751 13.7186C11.5082 14.4263 12.6262 14.5239 13.3724 13.9366C14.1185 13.3493 14.2102 12.2995 13.5771 11.5918L4.35414 1.28143C3.72107 0.573715 2.603 0.476092 1.85686 1.06338C1.11072 1.65067 1.01906 2.70048 1.65213 3.40819Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 615 B

After

Width:  |  Height:  |  Size: 642 B

View File

@ -35,7 +35,7 @@
text-transform: uppercase;
}
img {
.closeMenuIcon {
width: 15px;
cursor: pointer;

View File

@ -12,7 +12,9 @@ export default function Newsletter() {
id="email-newsletter"
placeholder="E-mail"
/>
<button type="submit">Enviar</button>
<button type="submit" arial-label="Enviar email newsletter">
Enviar
</button>
</div>
</div>
</form>

View File

@ -1,51 +1,17 @@
import styles from "./home.module.scss";
import { useState } from "react";
import Footer from "../components/Footer/Footer";
import Header from "../components/Header/Header";
import Institucional from "../components/Institucional/Institucional";
import ElementFloat from "../components/ElementFloat/ElementFloat";
function Home() {
const [pageYPosition, setPageYPosition] = useState(0);
function getPageYAfterScroll() {
setPageYPosition(window.scrollY);
}
window.addEventListener("scroll", getPageYAfterScroll);
const btnScrollTop = () => {
window.scrollTo({
top: 0,
left: 0,
behavior: "smooth",
});
};
return (
<div className={styles.containerHome}>
<Header />
<Institucional />
<Footer />
{pageYPosition > 140 && (
<div className={styles.floatElementsFooter}>
<button className={styles.whatsappIcon} arial-label="WhatsApp">
<a href="http://api.whatsapp.com/send?1=pt_BR&phone=5582999976243">
<img src="/assets/icons/whatsapp-icon.svg" alt="WhatsApp" />
</a>
</button>
<button
className={styles.topoSiteIcon}
onClick={btnScrollTop}
arial-label="Voltar ao topo"
>
<img
src="/assets/icons/topo-site-icon.png"
alt="Voltar para o topo"
/>
</button>
</div>
)}
<ElementFloat />
</div>
);
}

View File

@ -1,35 +1,3 @@
.containerHome {
position: relative;
.floatElementsFooter {
position: fixed;
right: 16px;
bottom: 28px;
width: 2.6562%;
display: flex;
flex-direction: column;
.whatsappIcon,
.topoSiteIcon {
width: 100%;
background: transparent;
cursor: pointer;
}
.topoSiteIcon {
img {
width: 100%;
}
}
}
}
@media screen and (max-width: 1024px) {
.containerHome {
.floatElementsFooter {
width: 34px;
}
}
}

View File

@ -47,4 +47,7 @@ export default Yup.object().shape({
phone: Yup.string()
.required("*Campo obrigatório")
.test("phone", "*Telefone Inválido", (phone) => convertPhone(phone!)),
instagram: Yup.string()
.matches(/@/, "@ é obrigatório")
.min(3, "Nome de usuario muito curto"),
});

View File

@ -1 +1,2 @@
declare module "*.module.scss";
declare module "*.svg";