From 636b067e3f0e13f0b313e18831c4bbd1974f4595 Mon Sep 17 00:00:00 2001 From: pani2004 Date: Sat, 13 Jul 2024 15:05:44 +0530 Subject: [PATCH] Changed the position --- src/components/BottomToTop.jsx | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) 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; +