Merge pull request 'feat(return-top-button): Adiciona link de volta-ao-topo e link para whatssap' (#17) from feature/return-to-top-button into develop

Reviewed-on: #17
This commit is contained in:
Manuela Luana Schumacker Tavares 2023-01-19 21:13:50 +00:00
commit 43594dee97
4 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<svg width="25" height="13" viewBox="0 0 25 13" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M23.7428 11.3959C23.741 11.6959 23.6177 11.9953 23.373 12.226L23.3728 12.2261C22.8668 12.7035 22.037 12.7035 21.5311 12.2261L21.5232 12.2345L21.5311 12.2261L12.3457 3.5599L12.0712 3.30091L11.7967 3.5599L2.61178 12.2258C2.10549 12.7033 1.27571 12.7032 0.769767 12.2259L0.769708 12.2258C0.525704 11.9957 0.402467 11.6972 0.400037 11.398C0.401876 11.0981 0.525111 10.7986 0.769782 10.5678L0.769785 10.5678L11.1506 0.773762C11.4013 0.537307 11.7333 0.415846 12.0712 0.415846C12.4093 0.415846 12.7415 0.537566 12.9922 0.773969L23.3728 10.568L23.3729 10.5681C23.6171 10.7983 23.7403 11.0968 23.7428 11.3959Z" fill="white" stroke="white" stroke-width="0.8"/>
</svg>

After

Width:  |  Height:  |  Size: 764 B

View File

@ -0,0 +1,11 @@
<svg width="34" height="34" viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3715_5917)">
<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.8962 24.0061C26.486 25.1642 24.8583 26.1247 23.5599 26.4052C22.6717 26.5944 21.5114 26.7452 17.6057 25.126C12.6098 23.0562 9.39255 17.9796 9.1418 17.6502C8.90167 17.3209 7.12305 14.9621 7.12305 12.5226C7.12305 10.0831 8.36192 8.89524 8.8613 8.38524C9.27142 7.96661 9.9493 7.77536 10.5995 7.77536C10.8099 7.77536 10.999 7.78599 11.169 7.79449C11.6684 7.81574 11.9192 7.84549 12.2485 8.63386C12.6587 9.62199 13.6574 12.0615 13.7764 12.3122C13.8975 12.563 14.0187 12.903 13.8487 13.2324C13.6893 13.5724 13.549 13.7232 13.2983 14.0122C13.0475 14.3012 12.8095 14.5222 12.5588 14.8325C12.3293 15.1024 12.07 15.3914 12.359 15.8907C12.648 16.3795 13.6468 18.0094 15.1173 19.3184C17.0149 21.0077 18.5534 21.5475 19.1038 21.777C19.5139 21.947 20.0027 21.9066 20.3023 21.5879C20.6827 21.1777 21.1523 20.4977 21.6304 19.8284C21.9704 19.3481 22.3997 19.2886 22.8502 19.4586C23.3092 19.618 25.738 20.8186 26.2374 21.0672C26.7368 21.318 27.0662 21.437 27.1873 21.6474C27.3063 21.8577 27.3063 22.8459 26.8962 24.0061Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_3715_5917">
<rect width="34" height="34" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -12,6 +12,8 @@ import { Contato } from "../components/main/components/Contato";
import home from "../assets/svgs/home.svg";
import seta from "../assets/svgs/seta.svg";
import whats from "../assets/svgs/whatsapp.svg";
import setaCima from "../assets/svgs/seta-para-cima.svg";
const MainContent = () => {
return (
@ -45,6 +47,25 @@ const MainContent = () => {
<Route path="/contato" element={<Contato />} />
</Routes>
</Router>
<a
className={style["main-link-topButton"]}
href="https://api.whatsapp.com/send/?phone=%2B5522997240484&text&type=phone_number&app_absent=0"
target="_blank"
>
<img
className={style["main-whatssap-link"]}
src={whats}
alt="Whatsapp"
/>
</a>
<a className={style["main-link-topButton"]} href="#">
<img
className={style["main-content-backToTop"]}
src={setaCima}
alt="Volte ao Topo"
/>
</a>
</main>
);
};

View File

@ -140,4 +140,51 @@
}
}
}
.main-link-topButton {
img {
width: auto;
}
.main-whatssap-link,
.main-content-backToTop {
position: fixed;
z-index: 6;
right: 16px;
}
.main-whatssap-link {
bottom: 220px;
@media screen and (min-width: 2500px) {
height: 66px;
}
@media screen and (max-width: 1024px) {
bottom: 90px;
}
}
.main-content-backToTop {
background: variables.$color-grey;
padding: 13px 10px;
border-radius: 50%;
width: 34px;
height: 34px;
bottom: 180px;
@media screen and (min-width: 2500px) {
width: 66px;
height: 66px;
padding: 25px 20px;
bottom: 150px;
}
@media screen and (max-width: 1024px) {
bottom: 50px;
}
}
}
}