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

team section #20

Open
wants to merge 2 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
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;
66 changes: 66 additions & 0 deletions src/components/MemberBox.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
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)" />
</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>
);
}
Loading