diff --git a/src/components/BottomToTop.jsx b/src/components/BottomToTop.jsx index fd5c0d8..41a2783 100644 --- a/src/components/BottomToTop.jsx +++ b/src/components/BottomToTop.jsx @@ -1,5 +1,4 @@ import React, { useState, useEffect } from "react"; -import styled from "styled-components"; import { FaArrowUp } from "react-icons/fa"; const GoToTop = () => { @@ -25,34 +24,16 @@ const GoToTop = () => { return ( <> {isVisible && ( - - - +
+ +
)} ); }; -const Wrapper = styled.div` - display: flex; - justify-content: center; - align-items: center; - position: fixed; - bottom: 17px; - right: 10px; - color: white; - background-color: rgb(59 130 246); - width: 48px; - height: 48px; - z-index: 9999; - border-radius: 50%; - cursor: pointer; - transition: transform 0.3s ease, background-color 0.3s ease; - - &:hover { - background-color: #003a79; - transform: translateY(-5px); - } -`; - export default GoToTop; +