Skip to content

Commit

Permalink
Merge pull request #39 from TartejBrothers/Updates
Browse files Browse the repository at this point in the history
Updated: Footer
  • Loading branch information
TartejBrothers authored May 29, 2024
2 parents 0ae9f3a + 070af2c commit 0f35e68
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
25 changes: 23 additions & 2 deletions src/components/footer.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { useEffect } from "react";
import "./styles/footer.css";
import logo from "./assests/icons/logo.png";
import arrowsubmit from "./assests/icons/arrowsubmit.svg";
Expand All @@ -7,7 +7,28 @@ import email from "./assests/icons/email.png";
import twitter from "./assests/icons/twitter.svg";
import linkedin from "./assests/icons/linkedin.svg";
import instagram from "./assests/icons/instagram.svg";
export default function footer() {

export default function Footer() {
useEffect(() => {
const listItems = document.querySelectorAll(".footerwork ul li");

const handleMouseEnter = (item) => {
item.style.animation = "none";
setTimeout(() => {
item.style.animation = "slideUp 1s forwards";
}, 0);
};

listItems.forEach((item) => {
const enterHandler = () => handleMouseEnter(item);
item.addEventListener("mouseenter", enterHandler);

return () => {
item.removeEventListener("mouseenter", enterHandler);
};
});
}, []);

return (
<div>
<div className="footerwork" id="contact">
Expand Down
9 changes: 6 additions & 3 deletions src/components/styles/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
}
.footerworkright {
display: flex;
gap: 20px;
width: 60%;
justify-content: center;

width: 70%;
justify-content: space-evenly;
align-items: flex-start;
}
.footerworkleft {
Expand Down Expand Up @@ -80,6 +80,9 @@
gap: 10px;
margin-bottom: 15px;
}
.footerwork ul li:hover {
animation: slideUp 0.8s forwards;
}
.footerwork ul li img {
width: 18px;
}
Expand Down

0 comments on commit 0f35e68

Please sign in to comment.