forked from M3-Academy/desafio-react-e-typescript
feat: cria botões fixos de whatsapp e início
This commit is contained in:
parent
b98fb42c49
commit
bf80943352
@ -0,0 +1,57 @@
|
||||
.floating-icons-wrapper {
|
||||
// background-color: red;
|
||||
position: fixed;
|
||||
right: 16px;
|
||||
bottom: 190px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
|
||||
@media screen and (width >= 2500px) {
|
||||
bottom: 229.24px;
|
||||
}
|
||||
|
||||
.whatsapp-button {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
|
||||
img {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
display: block;
|
||||
|
||||
@media screen and (width >= 2500px) {
|
||||
width: 66px;
|
||||
height: 66px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.up-button {
|
||||
background: #c4c4c4;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
padding: 13.5px 10.5px;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
|
||||
@media screen and (width >= 2500px) {
|
||||
width: 66px;
|
||||
height: 66px;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 13px;
|
||||
height: 7px;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
|
||||
@media screen and (width >= 2500px) {
|
||||
width: 24.14px;
|
||||
height: 13px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
26
src/components/Footer/FloatingIcons/FloatingIcons.tsx
Normal file
26
src/components/Footer/FloatingIcons/FloatingIcons.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import React from "react";
|
||||
|
||||
import styles from "./FloatingIcons.module.scss";
|
||||
|
||||
import whatsapp from "../assets/whatsapp-icon.svg";
|
||||
import arrowUp from "../assets/arrow-up.svg";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
const FloatingIcons = () => {
|
||||
return (
|
||||
<div className={styles["floating-icons-wrapper"]}>
|
||||
<button className={styles["whatsapp-button"]}>
|
||||
<a href="web.whatsapp.com">
|
||||
<img src={whatsapp} alt="Ícone do WhatsApp" />
|
||||
</a>
|
||||
</button>
|
||||
<button className={styles["up-button"]}>
|
||||
<Link to="sobre">
|
||||
<img src={arrowUp} alt="Seta para cima" />
|
||||
</Link>
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { FloatingIcons };
|
@ -1,4 +1,5 @@
|
||||
import React from "react";
|
||||
import { FloatingIcons } from "./FloatingIcons/FloatingIcons";
|
||||
|
||||
import styles from "./Footer.module.scss";
|
||||
import { FooterBottom } from "./FooterBottom/FooterBottom";
|
||||
@ -16,6 +17,7 @@ const Footer = () => {
|
||||
<SocialMedia />
|
||||
<p>www.loremipsum.com</p>
|
||||
</div>
|
||||
<FloatingIcons />
|
||||
</div>
|
||||
<FooterBottom />
|
||||
</footer>
|
||||
|
3
src/components/Footer/assets/arrow-up.svg
Normal file
3
src/components/Footer/assets/arrow-up.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="13" height="7" viewBox="0 0 13 7" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12.6 6.13647C12.5989 6.24898 12.5519 6.36118 12.4588 6.44888L12.4587 6.44902C12.2574 6.63896 11.9216 6.63894 11.7204 6.44903L11.7204 6.44902L6.7744 1.78259L6.4999 1.5236L6.2254 1.78259L1.27968 6.44882C1.27966 6.44884 1.27964 6.44886 1.27962 6.44888C1.07811 6.63886 0.742449 6.63877 0.541181 6.44888L0.541122 6.44882C0.448342 6.36133 0.401297 6.24944 0.400026 6.13719C0.401078 6.02468 0.448119 5.91242 0.541189 5.82462L0.541192 5.82461L6.13082 0.550956C6.13085 0.550933 6.13087 0.55091 6.13089 0.550887C6.22923 0.458193 6.36162 0.408533 6.49988 0.408533C6.63821 0.408533 6.77079 0.458327 6.86907 0.55102C6.86908 0.551029 6.86909 0.551037 6.8691 0.551047L12.4587 5.82475L12.4588 5.82482C12.5516 5.9124 12.5987 6.02428 12.6 6.13647Z" fill="white" stroke="white" stroke-width="0.8"/>
|
||||
</svg>
|
After Width: | Height: | Size: 891 B |
11
src/components/Footer/assets/whatsapp-icon.svg
Normal file
11
src/components/Footer/assets/whatsapp-icon.svg
Normal 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_3403_1267)">
|
||||
<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.8961 24.0061C26.486 25.1642 24.8582 26.1247 23.5599 26.4052C22.6716 26.5944 21.5114 26.7452 17.6056 25.126C12.6097 23.0562 9.39249 17.9796 9.14174 17.6502C8.90161 17.3209 7.12299 14.9621 7.12299 12.5226C7.12299 10.0831 8.36186 8.89524 8.86124 8.38524C9.27136 7.96662 9.94924 7.77537 10.5995 7.77537C10.8099 7.77537 10.999 7.78599 11.169 7.79449C11.6684 7.81574 11.9191 7.84549 12.2485 8.63387C12.6586 9.62199 13.6574 12.0615 13.7764 12.3122C13.8975 12.563 14.0186 12.903 13.8486 13.2324C13.6892 13.5724 13.549 13.7232 13.2982 14.0122C13.0475 14.3012 12.8095 14.5222 12.5587 14.8325C12.3292 15.1024 12.07 15.3914 12.359 15.8907C12.648 16.3795 13.6467 18.0094 15.1172 19.3184C17.0149 21.0077 18.5534 21.5475 19.1037 21.777C19.5139 21.947 20.0026 21.9066 20.3022 21.5879C20.6826 21.1777 21.1522 20.4977 21.6304 19.8284C21.9704 19.3481 22.3996 19.2886 22.8501 19.4586C23.3091 19.618 25.738 20.8186 26.2374 21.0672C26.7367 21.318 27.0661 21.437 27.1872 21.6474C27.3062 21.8577 27.3062 22.8459 26.8961 24.0061Z" fill="white"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_3403_1267">
|
||||
<rect width="34" height="34" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in New Issue
Block a user