feat: Adiciona componente de link ao sitemap

This commit is contained in:
Cainã Milech 2023-01-10 09:49:17 -03:00
parent 0f6a6d5ad7
commit 08144effcf
10 changed files with 105 additions and 63 deletions

View File

@ -0,0 +1,26 @@
import developed from "./assets/modules/Developed.module.scss";
import vtex from "./assets/svgs/vtex.svg";
import m3 from "./assets/svgs/m3.svg";
const Developed = () => {
return (
<div className={developed["developed"]}>
<span>Powered By</span>
<a href="https://vtex.com/br-pt/" target="_blank">
<figure>
<img src={vtex} alt="Logo VTEX" />
</figure>
</a>
<span>Developed By</span>
<a href="https://agenciam3.com/" target="_blank">
<figure>
<img src={m3} alt="Logo M3" />
</figure>
</a>
</div>
);
};
export { Developed };

View File

@ -1,6 +1,7 @@
import footer from "./assets/modules/FooterBottom.module.scss";
import { Payments } from "./Payments";
import { Developed } from "./Developed";
import master from "./assets/svgs/master.svg";
import visa from "./assets/svgs/visa.svg";
@ -37,7 +38,7 @@ const FooterBottom = () => {
</figure>
</div>
<div>b</div>
<Developed />
</div>
);
};

View File

@ -0,0 +1,16 @@
interface ILink {
href: string;
text: string;
}
const Link = (props: ILink) => {
const { href, text } = props;
return (
<li>
<a href={href}>{text}</a>
</li>
);
};
export { Link };

View File

@ -1,5 +1,7 @@
import sitemap from "./assets/modules/Sitemap.module.scss";
import { Link } from "./Link";
const Sitemap = () => {
return (
<div className={sitemap["sitemap"]}>
@ -7,18 +9,10 @@ const Sitemap = () => {
<h4>Institucional</h4>
<ul>
<li>
<a href="/">Quem Somos</a>
</li>
<li>
<a href="/">Política de Privacidade</a>
</li>
<li>
<a href="/">Segurança</a>
</li>
<li>
<a href="/">Seja um Revendedor</a>
</li>
<Link text="Quem Somos" href="/" />
<Link text="Política de Privacidade" href="/" />
<Link text="Segurança" href="/" />
<Link text="Seja um Revendedor" href="/" />
</ul>
</div>
@ -26,18 +20,10 @@ const Sitemap = () => {
<h4>Dúvidas</h4>
<ul>
<li>
<a href="/">Entrega</a>
</li>
<li>
<a href="/">Pagamento</a>
</li>
<li>
<a href="/">Trocas e Devoluções</a>
</li>
<li>
<a href="/">Dúvidas Frequentes</a>
</li>
<Link text="Entrega" href="/" />
<Link text="Pagamento" href="/" />
<Link text="Trocas e Devoluções" href="/" />
<Link text="Dúvidas Frequentes" href="/" />
</ul>
</div>
@ -47,15 +33,11 @@ const Sitemap = () => {
<li>
<span>Atendimento Ao Consumidor</span>
</li>
<li>
<a href="tel:1141599504">(11) 4159 9504</a>
</li>
<Link text="(11) 4159 9504" href="tel:1141599504" />
<li>
<span>Atendimento Online</span>
</li>
<li>
<a href="tel:11994338825">(11) 99433-8825</a>
</li>
<Link text="(11) 99433-8825" href="tel:11994338825" />
</ul>
</div>
</div>

View File

@ -4,6 +4,7 @@ import {
AccordionHeader,
AccordionItem,
} from "react-headless-accordion";
import { Link } from "./Link";
import links from "./assets/modules/SitemapAccordion.module.scss";
@ -20,18 +21,10 @@ const SitemapAccordion = () => {
<AccordionBody>
<ul>
<li>
<a href="/">Quem Somos</a>
</li>
<li>
<a href="/">Política de Privacidade</a>
</li>
<li>
<a href="/">Segurança</a>
</li>
<li>
<a href="/">Seja um Revendedor</a>
</li>
<Link text="Quem Somos" href="/" />
<Link text="Política de Privacidade" href="/" />
<Link text="Segurança" href="/" />
<Link text="Seja um Revendedor" href="/" />
</ul>
</AccordionBody>
</AccordionItem>
@ -44,18 +37,10 @@ const SitemapAccordion = () => {
<AccordionBody>
<ul>
<li>
<a href="/">Entrega</a>
</li>
<li>
<a href="/">Pagamento</a>
</li>
<li>
<a href="/">Trocas e Devoluções</a>
</li>
<li>
<a href="/">Dúvidas Frequentes</a>
</li>
<Link text="Entrega" href="/" />
<Link text="Pagamento" href="/" />
<Link text="Trocas e Devoluções" href="/" />
<Link text="Dúvidas Frequentes" href="/" />
</ul>
</AccordionBody>
</AccordionItem>
@ -69,17 +54,13 @@ const SitemapAccordion = () => {
<AccordionBody>
<ul>
<li>
<span>Atendimento ao Consumidor</span>
</li>
<li>
<a href="tel:1141599504">(11) 4159 9504</a>
<span>Atendimento Ao Consumidor</span>
</li>
<Link text="(11) 4159 9504" href="tel:1141599504" />
<li>
<span>Atendimento Online</span>
</li>
<li>
<a href="tel:11994338825">(11) 99433-8825</a>
</li>
<Link text="(11) 99433-8825" href="tel:11994338825" />
</ul>
</AccordionBody>
</AccordionItem>

View File

@ -0,0 +1,20 @@
.developed {
display: flex;
align-items: center;
gap: 13px;
span {
font-weight: 400;
font-size: 10px;
line-height: 12px;
color: var(--white);
}
a {
display: contents;
figure {
display: contents;
}
}
}

View File

@ -11,6 +11,7 @@
font-size: 10px;
line-height: 12px;
color: var(--white);
text-transform: capitalize;
}
&__icons {

View File

@ -102,10 +102,14 @@
line-height: 14px;
letter-spacing: 0.05em;
cursor: pointer;
transition: all 0.2s linear;
&:hover {
background-color: var(--black-100);
transition: 0.3s;
}
&:active {
background: var(--black);
}
@media screen and (min-width: 2500px) {

View File

@ -0,0 +1,4 @@
<svg width="29" height="16" viewBox="0 0 29 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.0307 5.52928C16.5833 4.93587 16.0213 4.44237 15.3795 4.0793C14.7376 3.71622 14.0296 3.49127 13.2992 3.41835C12.5688 3.34544 11.8315 3.42611 11.1328 3.65537C10.4342 3.88464 9.78905 4.25763 9.23731 4.7513L8.76065 4.38176C5.48598 2.02835 0.900479 4.0268 0.471483 8.05773C0.34098 9.99969 0.307571 11.9472 0.371384 13.8926C0.360856 14.1423 0.400742 14.3914 0.488564 14.6247C0.576387 14.858 0.710272 15.0703 0.88191 15.2486C1.05355 15.4269 1.25928 15.5673 1.48632 15.6611C1.71337 15.7549 1.95689 15.8 2.20177 15.7938C2.44143 15.7927 2.6784 15.7423 2.89845 15.6454C3.11851 15.5486 3.31709 15.4073 3.48227 15.2302C3.64746 15.0531 3.77583 14.8437 3.85968 14.6147C3.94352 14.3856 3.98111 14.1417 3.97019 13.8975C3.97019 12.4971 3.97019 11.0967 3.97019 9.69149C3.96633 9.2749 3.99502 8.85866 4.05599 8.44672C4.13287 8.0251 4.3634 7.64881 4.70121 7.39352C5.03901 7.13823 5.45905 7.02288 5.87684 7.07066C6.28524 7.10207 6.66838 7.28435 6.95445 7.58333C7.24052 7.88231 7.40987 8.27746 7.43076 8.6947C7.45459 9.21012 7.43076 9.72553 7.43076 10.2409C7.43076 11.4954 7.43076 12.7499 7.43076 14.0044C7.42587 14.3683 7.53195 14.7247 7.73434 15.0244C7.93673 15.3241 8.22541 15.5521 8.56045 15.6771C9.77594 16.1925 11.0153 15.2881 11.0391 13.8634C11.0391 12.2054 11.0391 10.5473 11.0868 8.8892C11.1028 8.48838 11.2229 8.0991 11.4347 7.76112C11.6364 7.4631 11.9287 7.24114 12.2665 7.12952C12.6042 7.01791 12.9685 7.02285 13.3032 7.1436C13.6808 7.25154 14.0109 7.48776 14.2388 7.81317C14.4668 8.13857 14.579 8.53364 14.5569 8.93296C14.5569 10.6105 14.5569 12.288 14.5569 13.9655C14.5569 14.2063 14.6033 14.4446 14.6937 14.6671C14.784 14.8895 14.9163 15.0915 15.0832 15.2618C15.2501 15.432 15.4482 15.567 15.6662 15.6591C15.8842 15.7513 16.1179 15.7987 16.3539 15.7987C16.5899 15.7987 16.8236 15.7513 17.0416 15.6591C17.2596 15.567 17.4577 15.432 17.6246 15.2618C17.7914 15.0915 17.9238 14.8895 18.0141 14.6671C18.1044 14.4446 18.1509 14.2063 18.1509 13.9655C18.1509 12.2491 18.1509 10.5619 18.1509 8.82113C18.1542 7.62603 17.7592 6.46529 17.0307 5.52928Z" fill="white"/>
<path d="M26.035 6.5015L25.4678 6.26325C26.0302 5.8159 26.5641 5.43177 27.0407 4.99416C27.4642 4.65403 27.8298 4.24496 28.1228 3.78342C28.9808 2.14966 27.77 0.248458 25.8491 0.204696C24.0759 0.180384 22.3075 0.180384 20.5343 0.180384C20.3171 0.165073 20.0992 0.19678 19.8949 0.273425C19.6905 0.350069 19.5044 0.46992 19.3486 0.625113C19.1929 0.780306 19.0711 0.967335 18.9912 1.17393C18.9113 1.38052 18.8751 1.60202 18.8851 1.82387C18.8638 2.04985 18.891 2.27783 18.9648 2.49201C19.0385 2.7062 19.157 2.90146 19.3121 3.06428C19.4671 3.22709 19.6551 3.35356 19.8628 3.43492C20.0706 3.51627 20.2932 3.55057 20.5152 3.53544C21.3828 3.53544 22.2503 3.53544 23.1178 3.53544C23.2656 3.58406 23.4181 3.58406 23.7041 3.58406C22.5268 4.55654 21.44 5.4804 20.3675 6.39453C19.6763 6.97802 19.4666 7.61499 19.7097 8.33949C19.8388 8.6971 20.0794 9.00161 20.3946 9.20627C20.7097 9.41093 21.082 9.50443 21.4543 9.47243C22.3742 9.47243 23.2989 9.47243 24.2189 9.47243C24.4252 9.43352 24.6374 9.44139 24.8404 9.4955C25.0434 9.54961 25.2322 9.64862 25.3935 9.78551C25.5548 9.92241 25.6846 10.0938 25.7736 10.2876C25.8627 10.4814 25.9089 10.6928 25.9089 10.9068C25.9089 11.1209 25.8627 11.3323 25.7736 11.5261C25.6846 11.7198 25.5548 11.8913 25.3935 12.0282C25.2322 12.1651 25.0434 12.2641 24.8404 12.3182C24.6374 12.3723 24.4252 12.3802 24.2189 12.3412C23.0273 12.3412 21.8356 12.3412 20.6439 12.3412C20.2262 12.3643 19.833 12.5498 19.5453 12.8596C19.2576 13.1694 19.0972 13.5799 19.0972 14.0066C19.0972 14.4334 19.2576 14.8439 19.5453 15.1537C19.833 15.4635 20.2262 15.649 20.6439 15.672C21.888 15.672 23.1369 15.672 24.381 15.672C25.4738 15.6437 26.5239 15.2331 27.3553 14.5089C28.1867 13.7848 28.7488 12.7912 28.9474 11.6945C29.1057 10.6209 28.9043 9.52417 28.3758 8.58176C27.8473 7.63936 27.0225 6.90642 26.035 6.5015Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -0,0 +1,7 @@
<svg width="46" height="16" viewBox="0 0 46 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M32.8807 5.99083H31.2736V11.4557C31.2736 11.558 31.1851 11.6456 31.0819 11.6456H29.8433C29.7401 11.6456 29.6517 11.558 29.6517 11.4557V5.99083H28.0298C27.9855 5.99083 27.9265 5.97622 27.8971 5.94699C27.8676 5.91777 27.8381 5.87394 27.8381 5.81549V4.8511C27.8381 4.80727 27.8528 4.74882 27.8971 4.7196C27.9265 4.69037 27.9855 4.66115 28.0298 4.67576H32.8807C32.9839 4.67576 33.0724 4.74882 33.0724 4.8511V5.81549C33.0724 5.91777 32.9839 5.99083 32.8807 5.99083Z" fill="white"/>
<path d="M38.0559 11.6017C37.4219 11.6894 36.7732 11.7332 36.1391 11.7186C34.9153 11.7186 33.839 11.4118 33.839 9.70216V6.58983C33.839 4.88024 34.9301 4.588 36.1539 4.588C36.7879 4.57339 37.4219 4.61723 38.0559 4.7049C38.1886 4.71951 38.2476 4.77796 38.2476 4.89485V5.77157C38.2476 5.87385 38.1592 5.96152 38.0559 5.96152H36.0654C35.6231 5.96152 35.4609 6.10764 35.4609 6.60444V7.45193H37.9822C38.0854 7.45193 38.1739 7.53961 38.1739 7.64189V8.53321C38.1739 8.6355 38.0854 8.72317 37.9822 8.72317H35.4609V9.71678C35.4609 10.199 35.6231 10.3597 36.0654 10.3597H38.0559C38.1592 10.3597 38.2476 10.4474 38.2476 10.5497V11.4264C38.2476 11.5286 38.1886 11.5871 38.0559 11.6017Z" fill="white"/>
<path d="M45.1925 11.6455H43.6885C43.5853 11.6601 43.4821 11.6016 43.4379 11.4993L42.1256 9.45367L40.946 11.4555C40.8871 11.5724 40.8133 11.6455 40.7101 11.6455H39.3094C39.2799 11.6455 39.2357 11.6455 39.2062 11.6162C39.1767 11.587 39.1619 11.5578 39.1619 11.5139C39.1619 11.4847 39.1767 11.4701 39.1767 11.4555L41.2262 8.06555L39.1472 4.85094C39.1324 4.83632 39.1324 4.8071 39.1324 4.79249C39.1324 4.71943 39.2062 4.66098 39.2799 4.67559H40.8281C40.9313 4.67559 41.005 4.76327 41.064 4.85094L42.273 6.75048L43.4526 4.85094C43.4969 4.74865 43.5853 4.69021 43.6885 4.67559H45.0893C45.163 4.67559 45.2367 4.71943 45.2367 4.79249C45.2367 4.8071 45.222 4.83632 45.222 4.85094L43.1577 8.09477L45.3104 11.4555C45.3252 11.4847 45.3399 11.5139 45.3399 11.5432C45.3252 11.6016 45.2662 11.6455 45.1925 11.6455Z" fill="white"/>
<path d="M25.5821 4.69058C25.5084 4.69058 25.4494 4.73442 25.4347 4.80748L24.0634 9.84857C24.0487 9.95085 24.0192 9.99469 23.9307 9.99469C23.8423 9.99469 23.8128 9.95085 23.798 9.84857L22.4268 4.80748C22.412 4.73442 22.353 4.69058 22.2793 4.69058H20.9228C20.8786 4.69058 20.8344 4.70519 20.8049 4.74903C20.7754 4.77825 20.7606 4.82209 20.7754 4.86592C20.7754 4.86592 22.4563 10.6522 22.471 10.7107C22.6922 11.3974 23.2377 11.7335 23.9307 11.7335C24.5942 11.7627 25.1988 11.339 25.3904 10.7107C25.4199 10.6376 27.0566 4.86592 27.0566 4.86592C27.0713 4.82209 27.0566 4.77825 27.0271 4.74903C26.9976 4.71981 26.9534 4.69058 26.9091 4.69058H25.5821Z" fill="white"/>
<path d="M17.9149 0H3.80434C3.28828 0 2.81645 0.277625 2.56579 0.70137C2.30039 1.13973 2.28565 1.68037 2.52156 2.11872L3.93704 4.77808H1.37148C1.0471 4.77808 0.737464 4.93881 0.560528 5.21644C0.383593 5.49406 0.383593 5.84475 0.531039 6.13699L5.07237 14.6411C5.23457 14.9479 5.55895 15.1379 5.89807 15.1379C6.2372 15.1379 6.56158 14.9479 6.72377 14.6411L7.96232 12.3324L9.5105 15.2402C9.76116 15.7078 10.2625 16 10.7933 16C11.3241 16 11.8254 15.7078 12.0761 15.2402L19.1535 2.04566C19.3894 1.60731 19.3746 1.08128 19.1092 0.672146C18.8733 0.248402 18.4015 0 17.9149 0ZM11.6042 5.56712L8.50787 11.3242C8.40465 11.5288 8.19823 11.6457 7.96232 11.6457C7.7264 11.6457 7.51998 11.5142 7.41677 11.3242L4.36463 5.62557C4.27617 5.45023 4.27617 5.24566 4.37938 5.07032C4.48259 4.89498 4.67427 4.79269 4.86595 4.79269H11.1177C11.3093 4.79269 11.4863 4.88036 11.5747 5.0411C11.6927 5.20183 11.6927 5.40639 11.6042 5.56712Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB