-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Staff Completed (except continuous scroll)
- Loading branch information
1 parent
cc370f6
commit 1499816
Showing
8 changed files
with
105 additions
and
14 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
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
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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
import React from 'react'; | ||
import StaffHeader from './StaffHeader'; | ||
import StaffLine from './StaffLine'; | ||
|
||
export type Staff = { | ||
name: string, | ||
surname: string, | ||
team: string, | ||
image: string, | ||
} | ||
|
||
export default function Staff() { | ||
return ( | ||
<div className={'flex-col justify-center items-center bg-no-repeat bg-cover bg-center pb-14'}> | ||
<StaffHeader/> | ||
<StaffHeader /> | ||
<StaffLine /> | ||
</div> | ||
); | ||
} |
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,18 @@ | ||
import React from 'react'; | ||
import { Staff } from './Staff'; | ||
import Image from 'next/image'; | ||
|
||
export default function StaffCard({ key, person }: { key: number, person: Staff }) { | ||
return ( | ||
<div key={key} className={'flex flex-col justify-center items-center px-5 font-manrope'}> | ||
<Image src={person.image} alt={person.name + ' ' + person.surname} width={200} height={200} | ||
className={'rounded-full'} /> | ||
<div className={'font-semibold text-base text-black pt-3'}> | ||
{person.name} {person.surname} | ||
</div> | ||
<div className={'font-normal text-xs text-[#8A8998]'}> | ||
{person.team} | ||
</div> | ||
</div> | ||
); | ||
} |
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,55 @@ | ||
import React from 'react'; | ||
import { Staff } from './Staff'; | ||
import StaffCard from './StaffCard'; | ||
import Sample from './assets/Sample.svg'; | ||
|
||
export default function StaffLine() { | ||
const staff: Staff[] = [ | ||
{ | ||
name: 'John Doe', | ||
surname: 'Doe', | ||
team: 'Team', | ||
image: Sample.src, | ||
}, | ||
{ | ||
name: 'John Doe', | ||
surname: 'Doe', | ||
team: 'Team', | ||
image: Sample.src, | ||
}, | ||
{ | ||
name: 'John Doe', | ||
surname: 'Doe', | ||
team: 'Team', | ||
image: Sample.src, | ||
}, | ||
{ | ||
name: 'John Doe', | ||
surname: 'Doe', | ||
team: 'Team', | ||
image: Sample.src, | ||
}, | ||
{ | ||
name: 'John Doe', | ||
surname: 'Doe', | ||
team: 'Team', | ||
image: Sample.src, | ||
}, | ||
{ | ||
name: 'John Doe', | ||
surname: 'Doe', | ||
team: 'Team', | ||
image: Sample.src, | ||
}, | ||
]; | ||
|
||
return ( | ||
<div className={'flex flex-wrap justify-center items-center pt-10'}> | ||
{ | ||
staff.map((person, index) => ( | ||
<StaffCard key={index} person={person} /> | ||
)) | ||
} | ||
</div> | ||
); | ||
} |
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.