-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcf1db0
commit 8b32fed
Showing
6 changed files
with
229 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
/> | ||
</FontContainer> | ||
<Title>{title}</Title> | ||
</TitleContainer> | ||
<Content>{children}</Content> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default MemberBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |