diff --git a/src/components/BackToTop/BackToTop.jsx b/src/components/BackToTop/BackToTop.jsx
index 58bb053..013d54e 100644
--- a/src/components/BackToTop/BackToTop.jsx
+++ b/src/components/BackToTop/BackToTop.jsx
@@ -1,16 +1,35 @@
-import React from "react";
+import React, { useEffect, useState } from "react";
import chevronUp from "../../assets/images/chevronup.png";
import "./backtotop.css";
+
const backToTopHandler = () => {
window.scrollTo({
top: 0,
- behavior:"smooth",
+ behavior: "smooth",
});
};
const BackToTop = () => {
+ const [iScrolled, setIscrolled] = useState(false);
+
+ useEffect(() => {
+ const handleScroll = () => {
+ if (window.scrollY < 150) {
+ setIscrolled(true);
+ } else {
+ setIscrolled(false);
+ }
+ };
+
+ window.addEventListener("scroll", handleScroll);
+
+ return () => {
+ window.removeEventListener("scroll", handleScroll);
+ };
+ }, []);
+
return (
-
+
diff --git a/src/components/BackToTop/backtotop.css b/src/components/BackToTop/backtotop.css
index 4a0687e..ff90440 100644
--- a/src/components/BackToTop/backtotop.css
+++ b/src/components/BackToTop/backtotop.css
@@ -10,8 +10,12 @@
display: flex;
align-items: center;
justify-content: center;
+ transition: all 0.3s ease-in-out;
}
+.back-to-top.hidden {
+ display: none;
+}
.back-to-top-icon {
height: 40px;
diff --git a/src/components/Contact/Contact.jsx b/src/components/Contact/Contact.jsx
index 4136db9..a9782b2 100644
--- a/src/components/Contact/Contact.jsx
+++ b/src/components/Contact/Contact.jsx
@@ -44,7 +44,7 @@ const Contact = ({ activeTab, setActiveTab }) => {
handleTabClick("about", event)}>About
- handleTabClick("services", event)}>Services
+ handleTabClick("techstack", event)}>Tech Stack
handleTabClick("projects", event)}>Projects
diff --git a/src/components/Hero/Hero.jsx b/src/components/Hero/Hero.jsx
index 1171925..77d3083 100644
--- a/src/components/Hero/Hero.jsx
+++ b/src/components/Hero/Hero.jsx
@@ -24,9 +24,9 @@ const Hero = () => {
style={{
top: "-100px",
zIndex: "1",
- background: `linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(${sliderImage})`,
+ background: `linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(${sliderImage})`,
transition: "0.4s",
- animation: "zoomBackground 8s infinite",
+ animation: "zoomBackground 8s infinite linear",
}}
>
diff --git a/src/components/Hero/hero.css b/src/components/Hero/hero.css
index 05170b4..b4a0a7e 100644
--- a/src/components/Hero/hero.css
+++ b/src/components/Hero/hero.css
@@ -16,10 +16,6 @@
background-size: 105%;
}
- 50% {
- background-size: 102.5%;
- }
-
100% {
background-size: 100%;
}
diff --git a/src/components/NavBar/Navbar.jsx b/src/components/NavBar/Navbar.jsx
index c97e466..43d6e9a 100644
--- a/src/components/NavBar/Navbar.jsx
+++ b/src/components/NavBar/Navbar.jsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
-import {scrollToSection} from "../../Utils/ScrollUtils/ScrollUtils";
+import { scrollToSection } from "../../Utils/ScrollUtils/ScrollUtils";
import "./navbar.css";
const Navbar = ({ activeTab, setActiveTab }) => {
@@ -34,7 +34,10 @@ const Navbar = ({ activeTab, setActiveTab }) => {
return (