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

New Board Photos #65

Merged
merged 2 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Binary file removed public/assets/alexis.jpeg
Binary file not shown.
Binary file removed public/assets/alexis_pfp.PNG
Binary file not shown.
Binary file removed public/assets/angela.jpeg
Binary file not shown.
Binary file removed public/assets/angela_pfp.PNG
Binary file not shown.
Binary file added public/assets/board/angela.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/board/kevin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/board/nathan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/board/pansy.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/board/shreya.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/board/uliyaah.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/charvi.jpeg
Binary file not shown.
Binary file removed public/assets/charvi_pfp.PNG
Binary file not shown.
Binary file removed public/assets/khushi.jpeg
Binary file not shown.
Binary file removed public/assets/khushi_pfp.PNG
Binary file not shown.
Binary file removed public/assets/nathan.jpeg
Binary file not shown.
Binary file removed public/assets/nikhil.JPG
Binary file not shown.
Binary file removed public/assets/nikhil2_pfp.JPG
Binary file not shown.
Binary file removed public/assets/uliyaah.jpg
Binary file not shown.
86 changes: 42 additions & 44 deletions src/components/team-card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,78 +1,76 @@
import React from 'react';
import styles from './style.module.css';

import Image from 'next/image';
import EmailIcon from './email';
import LinkedInIcon from './linkedin';
import styles from './style.module.css';

const TeamCard: React.FC = () => {
const teamMembers = [
{
name: 'Nikhil Dange',
name: 'Angela Hu',
position: 'Hack President',
email: 'nikhil@acmucsd.org',
linkedinLink: 'https://www.linkedin.com/in/nsdange/',
imageUrl: 'assets/nikhil.JPG',
email: 'angelahu@acmucsd.org',
linkedinLink: 'https://www.linkedin.com/in/angelahu925/',
imageUrl: '/assets/board/angela.jpeg',
},
{
name: 'Angela Hu',
name: 'Kevin Lu',
position: 'Hack Technical Event Director',
email: 'angelahu@acmucsd.org',
linkedinLink: 'https://www.linkedin.com/in/angelahu925/',
imageUrl: 'assets/angela.jpeg',
email: 'kevinlu@acmucsd.org',
linkedinLink: 'https://www.linkedin.com/in/kevin-lu-92b026245/',
imageUrl: '/assets/board/kevin.png',
},
{
name: 'Khushi Patel',
name: 'Nathan Wang',
position: 'Hack Technical Event Director',
email: 'khushi@acmucsd.org',
email: 'nathan@acmucsd.org',
linkedinLink: 'http://www.linkedin.com/in/pateljkhushi',
imageUrl: 'assets/khushi.jpeg',
uliyaah marked this conversation as resolved.
Show resolved Hide resolved
imageUrl: '/assets/board/nathan.png',
},
{
name: 'Charvi Shukla',
name: 'Pansy Kuang',
position: 'Hack Technical Event Director',
email: 'charvi@acmucsd.org',
linkedinLink: 'https://www.linkedin.com/in/charvi-shukla-439b681b2/',
imageUrl: 'assets/charvi.jpeg',
email: 'pansy@acmucsd.org',
linkedinLink: 'http://www.linkedin.com/in/pansykuang',
imageUrl: '/assets/board/pansy.jpeg',
},
{
name: 'Alexis Vergnet',
name: 'Shreya Nagunuri',
position: 'Hack Technical Event Director',
email: 'alexis@acmucsd.org',
linkedinLink: 'https://www.linkedin.com/in/avergnet/',
imageUrl: 'assets/alexis.jpeg',
email: 'shreya@acmucsd.org',
linkedinLink: 'https://www.linkedin.com/in/shreya-nagunuri/',
imageUrl: '/assets/board/shreya.png',
},
{
name: 'Uliyaah Dionisio',
position: 'Hack Diamond Staff',
position: 'Hack Technical Event Director',
email: '[email protected]',
linkedinLink: 'https://www.linkedin.com/in/uliyaah-dionisio-246695233/',
imageUrl: 'assets/uliyaah.jpg',
},
{
name: 'Nathan Wang',
position: 'Hack Diamond Staff',
email: '[email protected]',
linkedinLink: 'https://www.linkedin.com/in/nathan-wang-100b1a212/',
imageUrl: 'assets/nathan.jpeg',
imageUrl: '/assets/board/uliyaah.png',
},
];

return (
<div className={styles.team}>
{teamMembers.map((member, index) => (
{teamMembers.map(member => (
<div key={member.name} className={styles.card}>
<div className={styles.cardOutline}>
<img src={member.imageUrl} alt={member.name} />
<h4>{member.name}</h4>
<h5>{member.position}</h5>
<div className={styles.icons}>
<a href={`mailto:${member.email}`} target="_blank" rel="noopener noreferrer">
<EmailIcon />
</a>
<a href={member.linkedinLink} target="_blank" rel="noopener noreferrer">
<LinkedInIcon />
</a>
</div>
<div className={styles.imageCropper}>
<Image
className={styles.cardImage}
src={member.imageUrl}
alt={member.name}
width={100}
height={100}
/>
</div>
<h4>{member.name}</h4>
<h5>{member.position}</h5>
<div className={styles.icons}>
<a href={`mailto:${member.email}`} target="_blank" rel="noopener noreferrer">
<EmailIcon />
</a>
<a href={member.linkedinLink} target="_blank" rel="noopener noreferrer">
<LinkedInIcon />
</a>
</div>
</div>
))}
Expand Down
103 changes: 40 additions & 63 deletions src/components/team-card/style.module.css
Original file line number Diff line number Diff line change
@@ -1,74 +1,51 @@
.team {
display: flex;
flex-wrap: wrap;
row-gap: 2rem;
column-gap: 2rem;
max-width: 90%;
text-align: center;
justify-content: center;
gap: 2rem;
margin-bottom: 2rem;
margin-top: 1rem;
margin-left: 13%;
margin-right: 13%;
max-width: 80%;
text-align: center;
}

.card {
text-align: center;
flex-basis: 20%;
}

.cardOutline {
border: 2px solid #f9a857;
padding: 16px;
border-radius: 10px;
height: 100%;
}
.card {
display: flex;
flex-direction: column;
width: 250px;
height: 325px;
min-height: 100%;
padding: 1rem 1.5rem;
border: 2px solid #f9a857;
border-radius: 10px;
}

.card h4 {
font-weight: bold;
margin-top: 10px;
}

.icons {
display: flex;
align-items: center;
justify-content: center;
gap: 1.5rem;
margin-top: 0.25rem;
}

.icons svg {
fill: #f9a857;
}

.card img {
border-radius: 50%;
}
.card h4 {
margin-top: 1rem;
font-weight: bold;
}

@media screen and (max-width: 1100px) {
.card {
text-align: center;
flex-basis: 28%;
}
}
.icons {
display: flex;
align-items: center;
justify-content: center;
gap: 1.5rem;
margin-top: 0.25rem;
}

.icons svg {
fill: #f9a857;
}

.imageCropper {
margin: 0 auto;
width: 180px;
height: 180px;
position: relative;
overflow: hidden;
border-radius: 50%;
}

@media screen and (max-width: 810px) {
.team {
margin-left: 5%;
margin-right: 5%;
}
.card {
text-align: center;
flex-basis: 33%;
}
}
@media screen and (max-width: 600px) {
.team {
display: grid;
grid-template-columns: 50%;
gap: 0.3rem;
margin-left: 5%;
margin-right: 5%;
}
}

.cardImage {
min-width: 100%;
}
11 changes: 5 additions & 6 deletions src/sections/Team/style.module.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.team {
display: flex;
justify-content: center;
align-items: center;
height: 30vh;
max-height: 100vh;
.container {
display: flex;
flex-direction: column;
align-items: center;

}

.h1 {
Expand Down
Loading