Skip to content

Commit

Permalink
fixed: issue IEDCMEC#237
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-53 committed Sep 18, 2024
1 parent ad9a618 commit 318b13b
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Components/CollabFooter/CollabFooter.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// File: iedc-collab/src/Components/CollabFooter.scss

.footer__main {
position: fixed; /* Ensures the footer stays at the bottom */
position: relative; /* Ensures the footer stays at the bottom */
bottom: 0;
width: 100%; /* Takes full width of the viewport */
padding: 10px 20px; /* Adjusted padding for smaller size */
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Developers/DeveloperCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const DeveloperCard = ({ user, handleClick }) => {
const username = user.name !== undefined ? user.name.toLowerCase() : null
return (
<div
data-aos="zoom-in"
//data-aos="zoom-in"
className="developer-card"
key={user.id}
style={{ cursor: "pointer" }}
Expand Down
17 changes: 17 additions & 0 deletions src/Pages/Developers/Developers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import SuspenseLoader from "../../Components/SuspenseLoader/SuspenseLoader";
import { ProjectContext } from "../../contexts/ProjectContext";
import { Pagination } from "@mui/material";
import { ThemeContext } from "../../App";
import AOS from "aos";
import "aos/dist/aos.css";

const Developers = () => {
const { developers, loading, setSelectedDevelopers } = useContext(
Expand Down Expand Up @@ -50,6 +52,21 @@ const Developers = () => {
setFilteredDevelopers(filteredDevs);
};

useEffect(() => {
AOS.init();
let resizeTimeout;
const handleResize = () => {
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(() => {
AOS.refresh();
}, 200);
};
window.addEventListener("resize", handleResize);
return () => {
window.removeEventListener("resize", handleResize);
};
}, []);

useEffect(() => {
if (!developers) return;

Expand Down
6 changes: 3 additions & 3 deletions src/Pages/Developers/Developers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
flex-direction: column;
justify-content: center;
align-items: center;
overflow-x: hidden;
overflow: hidden;
padding-bottom: 5%;
}
.drawer__container button:focus {
Expand All @@ -28,14 +28,14 @@
column-gap: 10%;
justify-content: center;
/* Set a fixed height */
height: calc(4.1 * (107px + 30px)); /* Adjust based on your card height and row gap */
overflow-y: scroll; /* Enable vertical scrolling */
height: fit-content; /* Adjust based on your card height and row gap */
}
.developer-column{
display:flex;
align-items: center;
justify-content: space-around;
flex-direction: column;
gap: 50px;
}
.developer-card {
width: 528px;
Expand Down
17 changes: 17 additions & 0 deletions src/Pages/Projects/Projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { ProjectContext } from "../../contexts/ProjectContext";
import { Pagination } from "@mui/material";
import Drawer from "../Developers/Drawer";
import { ThemeContext } from "../../App";
import AOS from "aos";
import "aos/dist/aos.css";
const Projects = () => {
// const [projects, setProjects] = useState([]);
const { projects, loading } = useContext(ProjectContext);
Expand Down Expand Up @@ -68,6 +70,21 @@ const Projects = () => {
setPages(Math.ceil(filteredProjects.length / 12));
};

useEffect(() => {
AOS.init();
let resizeTimeout;
const handleResize = () => {
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(() => {
AOS.refresh();
}, 200);
};
window.addEventListener("resize", handleResize);
return () => {
window.removeEventListener("resize", handleResize);
};
}, []);

useEffect(() => {
filterProjects();
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down

0 comments on commit 318b13b

Please sign in to comment.