feat: icone whatsapp funcionando e responsivo

This commit is contained in:
Adilson Fernando Neves Ornellas 2023-01-08 13:47:32 -03:00
parent 2797ee00ea
commit 110e5d3dd2
7 changed files with 62 additions and 4 deletions

View File

@ -0,0 +1,11 @@
<svg width="66" height="66" viewBox="0 0 66 66" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3751_658)">
<path d="M33.0082 0H32.9918C14.7964 0 0 14.8005 0 33C0 40.2188 2.3265 46.9095 6.28238 52.3421L2.16975 64.6016L14.8541 60.5468C20.0723 64.0035 26.2969 66 33.0082 66C51.2036 66 66 51.1954 66 33C66 14.8046 51.2036 0 33.0082 0Z" fill="#4CAF50"/>
<path d="M52.21 46.6001C51.4139 48.8483 48.2542 50.7128 45.7338 51.2573C44.0095 51.6244 41.7573 51.9173 34.1755 48.774C24.4777 44.7563 18.2324 34.9016 17.7457 34.2623C17.2795 33.6229 13.8269 29.0441 13.8269 24.3086C13.8269 19.5731 16.2318 17.2673 17.2012 16.2773C17.9973 15.4646 19.3132 15.0934 20.5754 15.0934C20.9838 15.0934 21.3509 15.114 21.6809 15.1305C22.6503 15.1718 23.137 15.2295 23.7764 16.7599C24.5725 18.678 26.5113 23.4135 26.7423 23.9003C26.9774 24.387 27.2125 25.047 26.8825 25.6864C26.5732 26.3464 26.3009 26.6393 25.8142 27.2003C25.3274 27.7613 24.8654 28.1903 24.3787 28.7925C23.9332 29.3164 23.4299 29.8774 23.9909 30.8468C24.5519 31.7955 26.4907 34.9594 29.3452 37.5004C33.0288 40.7798 36.0153 41.8275 37.0837 42.273C37.8798 42.603 38.8285 42.5246 39.4102 41.9059C40.1485 41.1098 41.0602 39.7898 41.9883 38.4904C42.6483 37.5581 43.4815 37.4426 44.356 37.7726C45.247 38.082 49.9619 40.4126 50.9313 40.8953C51.9007 41.382 52.54 41.613 52.7752 42.0214C53.0062 42.4298 53.0062 44.3479 52.21 46.6001Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_3751_658">
<rect width="66" height="66" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -3,11 +3,17 @@ import React from "react";
import "../styles/Global.scss";
import "../styles/Variaveis.scss";
import whatsapp from '../assets/icons/whatsapp.svg'
import styles from "../styles/Whatsapp.module.scss";
const Whatsapp = () =>{
return (
<h1></h1>
<div className={styles["div-whatsapp"]}>
<a className={styles["whatsapp-link"]} href="https://api.whatsapp.com/send?phone=0000000000000&text=Olá, Tudo Bem?" target="_blank">
<img className={styles["whatsapp-icon"]} src={whatsapp} alt="Whatsapp" />
</a>
</div>
);
};

View File

@ -0,0 +1,16 @@
import React from "react";
import "../styles/Global.scss";
import "../styles/Variaveis.scss";
import buttonTop from "../assets/images/buttonTop.jpg"
import styles from "../styles/ButtonTop.module.scss";
const ButtonTop = () =>{
return (
<h1></h1>
);
};
export default ButtonTop;

View File

@ -2,9 +2,10 @@ import React, { useState } from "react";
import Header from "../components/Header/Header";
import Whatsapp from "../components/Whatsapp";
import Footer from "../components/Footer/Footer";
import Main from "../components/Main/Main";
import MenuHamburguer from "../components/Header/MenuHamburguer";
import Main from "../components/Main/Main";
import ButtonTop from "../components/buttonTop";
import Footer from "../components/Footer/Footer";
const Home = () => {
@ -12,9 +13,10 @@ const Home = () => {
return (
<div>
<Header handleOpenModal={() => setOpenModal(true)}/>
<MenuHamburguer isOpen={openModal} onRequestClose={() => setOpenModal(false)} />
<Whatsapp />
<MenuHamburguer isOpen={openModal} onRequestClose={() => setOpenModal(false)} />
<Main />
<ButtonTop />
<Footer />
</div>
);

View File

@ -0,0 +1,23 @@
.div-whatsapp{
position: fixed;
right: 16px;
bottom: 195px;
@media (min-width: 2500px) {
bottom: 270px;
}
@media (max-width: 1024px) {
bottom: 45px ;
}
.whatsapp-link{
width: 100%;
height: 100%;
.whatsapp-icon{
width: 34px;
height: 34px;
@media (min-width: 2500px) {
width: 66px;
height: 66px;
}
}
}
}