Skip to content

Commit

Permalink
team section
Browse files Browse the repository at this point in the history
  • Loading branch information
angelazheng33 committed Feb 24, 2024
1 parent fcf1db0 commit 8b32fed
Show file tree
Hide file tree
Showing 6 changed files with 229 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Navbar from './components/NavBar';
import About from './sections/About';
import FAQ from './sections/FAQ';
import Sponsors from './sections/Sponsors';
import Team from './sections/Team';
import Footer from './components/Footer';
import Landing from './sections/Landing';
import styled from 'styled-components';
Expand All @@ -22,6 +23,7 @@ function App() {
<About />
<Sponsors />
<FAQ />
<Team />
<Footer />
</Container>
</>
Expand Down
Binary file added src/assets/members/profilepic.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions src/components/Member.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import styled from 'styled-components';
import { mobile } from '../styles';

const Container = styled.a`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
img {
height: 125px;
width: auto;
margin: 10px;
transition: transform 0.2s ease-in-out;
border-radius: 15px;
${mobile} {
max-width: auto;
height: 100px;
margin: 0px;
}
}
&:hover img {
transform: scale(1.02);
}
`;

const Name = styled.p`
font-size: 20px;
color: var(--beige);
`;

const Description = styled.p`
font-size: 15px;
color: var(--beige);
`;

interface IMember {
src: string;
alt: string;
name: string;
description: string;
h?: number;
}

export const Member: React.FC<IMember> = ({ src, alt, name, description }) => {
return (
<Container target="_blank" rel="noreferrer">
<img src={src} alt={alt} />
<Name>{name}</Name>
<Description>{description}</Description>
</Container>
);
};

export default Member;
71 changes: 71 additions & 0 deletions src/components/MemberBox.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import styled from 'styled-components';
import { mobile } from '../styles';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faBookmark } from '@fortawesome/free-regular-svg-icons';

const Container = styled.div`
margin-bottom: 2px;
background-color: var(--dark green);
margin: 50px;
border-radius: 15px;
padding-bottom: 50px;
padding-left: 150px;
padding-right: 150px;
${mobile} {
padding-left: 0px;
padding-right: 0px;
}
`;

const Title = styled.h2`
text-align: left;
padding-left: 0px;
padding-bottom: 30px;
font-size: 32px;
color: var(--gold);
font-family: GentiumBookPlus;
`;

const Content = styled.div`
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
column-gap: 50px;
row-gap: 20px;
`;

const TitleContainer = styled.div`
display: flex;
gap: 5px;
`;

const FontContainer = styled.div`
padding: 10px;
`;

interface IMemberBox {
title: string;
children: React.ReactNode;
}

export const MemberBox: React.FC<IMemberBox> = ({ title, children }) => {
return (
<Container>
<TitleContainer>
<FontContainer>
<FontAwesomeIcon
icon={faBookmark}
size="2x"
color="var(--red)"
margin="50px"

Check failure on line 61 in src/components/MemberBox.tsx

View workflow job for this annotation

GitHub Actions / Build

Type '{ icon: IconDefinition; size: "2x"; color: string; margin: string; }' is not assignable to type 'IntrinsicAttributes & FontAwesomeIconProps'.
/>
</FontContainer>
<Title>{title}</Title>
</TitleContainer>
<Content>{children}</Content>
</Container>
);
};

export default MemberBox;
1 change: 1 addition & 0 deletions src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const Navbar: React.FC = () => {
<NavLink href="#about">About</NavLink>
<NavLink href="#sponsors">Sponsors</NavLink>
<NavLink href="#faq">FAQ</NavLink>
<NavLink href="#team">Team</NavLink>
<Button href={dashboard} color="#654221">
Dashboard
</Button>
Expand Down
99 changes: 99 additions & 0 deletions src/sections/Team.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
import styled from 'styled-components';
import MemberBox from '../components/MemberBox';
import Member from '../components/Member';
import profilePic from '../assets/members/profilepic.jpg';

const Section = styled.div``;

const Container = styled.div`
background-color: var(--darkgreen);
`;

export default function Team() {
return (
<Section id="team">
<Container>
<MemberBox title="OUR TEAM">
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
<Member
src={profilePic}
alt="FName LName"
name="FName"
description="Team"
/>
</MemberBox>
</Container>
</Section>
);
}

0 comments on commit 8b32fed

Please sign in to comment.