Skip to content

Commit

Permalink
Merge pull request #43 from TartejBrothers/Updates
Browse files Browse the repository at this point in the history
Updated: Projects
  • Loading branch information
TartejBrothers committed May 30, 2024
2 parents 2552bff + 00037f8 commit 9b96267
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 37 deletions.
13 changes: 0 additions & 13 deletions src/components/designs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,6 @@ import mobileright3 from "./assests/designs/mobileright3.png";
import mobileright4 from "./assests/designs/mobileright4.png";

export default function Designs() {
// useEffect(() => {
// const setScrollHeight = (selector, variable) => {
// const element = document.querySelector(selector);
// const scrollHeight = element.scrollHeight;
// const duration = scrollHeight / 100;
// element.style.setProperty(variable, `${duration}s`);
// };

// setScrollHeight(".designleft-scroll", "--left-scroll-duration");
// setScrollHeight(".designcenter-scroll", "--center-scroll-duration");
// setScrollHeight(".designright-scroll", "--right-scroll-duration");
// }, []);

return (
<div className="designsbody">
<h1 className="commonheader">Our Designs</h1>
Expand Down
19 changes: 0 additions & 19 deletions src/components/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ import arrow from "./assests/icons/arrow.png";
import griplines from "./assests/icons/griplines.svg";

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

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

item.addEventListener("mouseenter", handleMouseEnter);

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

return (
<div>
<div className="homemain">
Expand Down
4 changes: 2 additions & 2 deletions src/components/styles/designs.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@
width: 45%;
}
.designright-scroll {
animation: scroll-down 10zs linear infinite;
animation: scroll-down 12s linear infinite;
}
.designleft-scroll {
animation: scroll-up 10s linear infinite;
animation: scroll-up 12s linear infinite;
}
}
7 changes: 4 additions & 3 deletions src/components/styles/showcase.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

.showcasecenter,
.showcaseright {
width: 40%;
width: 45%;
display: flex;
flex-direction: column;
}
Expand All @@ -25,7 +25,7 @@
margin-inline: 20px;
}
.showcaseright img {
height: 80%;
height: 100%;
}

.showcasecenter {
Expand All @@ -34,7 +34,7 @@
justify-content: flex-start;
}
.showcasecentercontent {
width: 70%;
width: 90%;
}
.showcaseright {
justify-content: center;
Expand All @@ -50,6 +50,7 @@
display: flex;
flex-direction: column;
margin-top: 20px;
margin-left: 30px;
overflow: visible;
position: relative;
}
Expand Down

0 comments on commit 9b96267

Please sign in to comment.