From ff6f5aa0249babaf34726222dcdcb1dd8e60a7b6 Mon Sep 17 00:00:00 2001 From: Radhika Malpani Date: Fri, 2 Aug 2024 15:53:40 +0530 Subject: [PATCH 1/2] Update index.css --- src/index.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/index.css b/src/index.css index 3b92503..5ae5ab2 100644 --- a/src/index.css +++ b/src/index.css @@ -15,25 +15,26 @@ body { /*Scrollbar*/ body::-webkit-scrollbar { - width: 8px; + width: 9px; } body::-webkit-scrollbar-track { - background: #f1f1f1; + background: #11131f; + } body::-webkit-scrollbar-thumb { - background: #007bff; + background: blue; border-radius: 6px; } body::-webkit-scrollbar-thumb:hover { - background: #4d79fd; + background: rgb(0, 128, 255); /* Color of the thumb on hover */ } From 7c4494ea1103dd888f8815dfdf98a2babce3aa4a Mon Sep 17 00:00:00 2001 From: Radhika Malpani Date: Fri, 2 Aug 2024 15:55:17 +0530 Subject: [PATCH 2/2] Update GoToTop.jsx --- src/Components/GoToTop.jsx | 57 ++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 21 deletions(-) diff --git a/src/Components/GoToTop.jsx b/src/Components/GoToTop.jsx index 47f127a..7b5e46f 100644 --- a/src/Components/GoToTop.jsx +++ b/src/Components/GoToTop.jsx @@ -1,6 +1,6 @@ import React, { useState, useEffect } from "react"; import styled from "styled-components"; -import { FaArrowUp } from "react-icons/fa"; +import { FaChevronUp } from "react-icons/fa"; const GoToTop = () => { const [isVisible, setIsVisible] = useState(false); @@ -27,7 +27,10 @@ const GoToTop = () => { <> {isVisible && ( - +
+ + +
)} @@ -35,36 +38,48 @@ const GoToTop = () => { }; const Wrapper = styled.div` -@media (max-width:481px){ -display: flex; - justify-content: center; - align-items: center; - position: fixed; - bottom: 68px; - left: 86%; - color: white; - background-color: blue; - width: 48px; - height: 48px; - border-radius: 50%; - cursor: pointer; - &:hover { - background-color: #007bff; - }} display: flex; justify-content: center; align-items: center; position: fixed; bottom: 17px; - left: 85px; + left: 15px; color: white; - background-color: blue; + background: radial-gradient(circle, navy 0%, #0000ff 100%); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; + transition: transform 0.3s ease, background-color 0.3s ease; + &:hover { - background-color: #007bff; + background: navy; + transform: scale(1.1); + } + + .icon-container { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + } + + .top-btn--icon { + color: white; + transition: transform 0.3s ease; + } + + .top-btn--icon.double { + margin-top: -8px; + } + + &:hover .top-btn--icon { + transform: translateY(-2px); + } + + @media (max-width: 481px) { + bottom: 68px; + left: 86%; } `;