Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helen/update headshots #35

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/MemberCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const MemberCard = ({ memberData }) => {
alt={name}
width={180}
height={240}

/>
<div className="overflow-y-auto group-hover:translate-y-[-240px] transition duration-200">
<div className="pt-2 px-1">
Expand Down
6 changes: 5 additions & 1 deletion components/MemberShowcase.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ const MemberShowcase = () => {

useEffect(() => {
const randomList = memberList.sort(() => 0.5 - Math.random());
let committee = committeeName;
committee = committee.replace("Dev", "Development");
committee = committee.replace("HE", "Hacker Experience");

const filteredList = randomList.filter(
member =>
committeeName == 'All' || member.committee.includes(committeeName)
committeeName == 'All' || member.committee.includes(committee)
);
setTeamList(filteredList);
}, [memberList, committeeName]);
Expand Down
Loading