Fix: Ajeita o img do FooterTop que tem a função de voltar ao top
This commit is contained in:
parent
4580879f78
commit
e3f1906e94
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
BIN
my-app/src/assets/svgs/ArrowEdt.png
Normal file
BIN
my-app/src/assets/svgs/ArrowEdt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.7 KiB |
@ -60,4 +60,12 @@
|
||||
text-decoration: none;
|
||||
|
||||
}
|
||||
}
|
||||
.WppArrow{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
}
|
||||
.backTop{
|
||||
cursor: pointer;
|
||||
}
|
@ -5,7 +5,7 @@ import Twitter from '../../assets/svgs/Twitter.svg'
|
||||
import Youtube from '../../assets/svgs/Youtube.svg'
|
||||
import Linkedin from '../../assets/svgs/Linkedin.svg'
|
||||
import Whatsapp from '../../assets/svgs/Whatsapp.svg'
|
||||
import WppAndArrow from '../../assets/svgs/WppAndArrow.svg'
|
||||
import Arrow from '../../assets/svgs/ArrowEdt.png'
|
||||
|
||||
const FooterTop = () => {
|
||||
return (
|
||||
@ -45,13 +45,16 @@ const FooterTop = () => {
|
||||
<a href="/">www.loremipsum.com</a>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<a href="/"><img src={WppAndArrow} alt="Whatsapp and Arrow Icon" /></a>
|
||||
<div className='WppArrow'>
|
||||
<a href="/"><img src={Whatsapp} alt="Whatsapp and Arrow Icon"/></a>
|
||||
<img className='backTop' src={Arrow} alt="Back to the top icon" onClick={backtotop}/>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export {FooterTop}
|
||||
function backtotop() {
|
||||
window.scrollTo(0, 0);
|
||||
}
|
||||
export {FooterTop};
|
Loading…
x
Reference in New Issue
Block a user