From 8611cd75c23d05045a80cd7d824ea8475dbcf47c Mon Sep 17 00:00:00 2001 From: Emerson Fully <63175980+emersonfully@users.noreply.github.com> Date: Wed, 18 Jan 2023 23:18:37 -0300 Subject: [PATCH] =?UTF-8?q?feature(BackToTopButton):=20Adiciona=20um=20bot?= =?UTF-8?q?=C3=A3o=20para=20voltar=20ao=20topo=20da=20p=C3=A1gina?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 24 ++-------------- src/assets/imgs/whatsapp.png | Bin 0 -> 1036 bytes .../BackToTop/BackToTopButton.module.scss | 26 ++++++++++++++++++ src/components/BackToTop/BackToTopButton.tsx | 23 ++++++++++++++++ src/pages/FaleConosco.tsx | 2 ++ 5 files changed, 53 insertions(+), 22 deletions(-) create mode 100644 src/assets/imgs/whatsapp.png create mode 100644 src/components/BackToTop/BackToTopButton.module.scss create mode 100644 src/components/BackToTop/BackToTopButton.tsx diff --git a/public/index.html b/public/index.html index ceb1d52..52b6496 100644 --- a/public/index.html +++ b/public/index.html @@ -8,36 +8,16 @@ - - - + + Institucional
- \ No newline at end of file diff --git a/src/assets/imgs/whatsapp.png b/src/assets/imgs/whatsapp.png new file mode 100644 index 0000000000000000000000000000000000000000..4e9df5fe738f0c9f68a2c0f4448fa4a24912009d GIT binary patch literal 1036 zcmV+n1oQieP)Qof=X(Td1|c=LYBLD(1dU!y0&^O3f-HhaOqZ1dXYSYV=8zt zR|ujGD%fEY%0-G$0yj_(ZtV2DN@9Qx4_-YoLKcZ2NDR>tKu%KMbcZyQLqrWsjtOV>j~sRfxynw_ zc4CJ%b~eZl@8QUP3&noYJf-E|U&sPD)r@T6f0V4@ zIsptBR=3Z!Q3c3k;>MY48e$fpUm?P=fum2) z;_UINoH-`J1TBQui`F6TCXEZ0E6W=xT&Zj#E8$2|Komu4H!|2sZ0pXi{#hj}0S*^A zM%+dQAAfz$nd9_*x%`T(L=v6cl*sJb`<%HKAhB)Wsr>@Q%*{lcMh5)!@4iiH=Gv_d z)D)azK8w-l7_Dbi)4K9ntFuM{6N#G{@HT`Oo@?eF)ZM4+s3#U8ZbK*R!pUhfE8Zdj zf9#DEIE9(y*Ugn2drtdqPbcjr69x4q2&bs+e5a=w<-IyKnKAjq9&saTTd4pnY%D4zKeOU`K&)By4kJ)=SL3-8 zr6&|JOlo#*4x|#f3)^T=P?h;66@hN-<{h}cSQvF~+`meM9^hb&P!Sl7zM&xm@OqKj zJ>dba6Qs1gosZ?rKJ@bbio|$Q?YZFa2)8#h7<|C zwt$-tPx_^M>iHg8AqPqfq+&7PK(0lwI_zbNv}BJNw1hZfqhUssiW>2JYuvXgoAe$l zf&27L`~QpQbctulc2p$LZbO+QG(-@+0XhnR#8ihgkUgDN@uEOiWja*Ev3@A?T_zK0 z6`!>&aWD_#=*MP`(7_Smz|7u`Oeh{vwnd;ABA0I($@+{Sf#@)<1!V(~ZAJhiRPbjB zR?(5Y3Tp~Zak$Wn7v^@=gFG}JYOvsvEYi|el12(yGlhQ~BTij { + window.scrollTo({ top: 0, behavior: "smooth" }); + }; + + return ( +
+ + + + +
+ ); +} + +export default BackToTopButton; diff --git a/src/pages/FaleConosco.tsx b/src/pages/FaleConosco.tsx index e442bcb..c0521c4 100644 --- a/src/pages/FaleConosco.tsx +++ b/src/pages/FaleConosco.tsx @@ -2,6 +2,7 @@ import React from "react"; import { Header } from "../components/header/Header"; import { Main } from "../components/main/Main"; import { Footer } from "../components/footer/Footer"; +import BackToTopButton from "../components/BackToTop/BackToTopButton"; const FaleConosco = () => { return ( @@ -9,6 +10,7 @@ const FaleConosco = () => {