From 2f954f00019aba787d46ccdaea3c675b745c6788 Mon Sep 17 00:00:00 2001 From: MarcelloMartins Date: Fri, 20 Jan 2023 21:13:01 -0300 Subject: [PATCH] feat(institucional): created fixed icons --- src/App.tsx | 20 +++++++++++ src/assets/svg/Up.svg | 4 +++ src/assets/svg/Wpp.svg | 11 ++++++ src/components/FixedIcon/index.tsx | 21 ++++++++++++ src/components/FixedIcon/styles.module.scss | 38 +++++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 src/assets/svg/Up.svg create mode 100644 src/assets/svg/Wpp.svg create mode 100644 src/components/FixedIcon/index.tsx create mode 100644 src/components/FixedIcon/styles.module.scss diff --git a/src/App.tsx b/src/App.tsx index a82bddc..3c59d10 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,6 +5,10 @@ import Header from "./components/Header"; import NewsLetter from "./components/newsLetter"; import Institutional from "./pages/Institutional"; import Footer from "./components/Footer"; +import FixedIcons from "./components/FixedIcon"; +import Up from "./assets/svg/Up.svg"; +import Wpp from "./assets/svg/Wpp.svg"; +import { url } from "inspector"; const router = createBrowserRouter([ { @@ -19,6 +23,22 @@ function App() {
+ { + window.scrollTo({ top: 0, behavior: "smooth" }); + }, + imgUrl: Up, + }, + { + action: () => { + window.open("https://api.whatsapp.com/send?phone=552225215720"); + }, + imgUrl: Wpp, + }, + ]} + />