-
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.
Merge pull request #11 from leslieyip02/KAN-12-Create-About-Page
KAN-12 Create About Page
- Loading branch information
Showing
49 changed files
with
696 additions
and
65 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
md:px-20 | ||
py-4 | ||
bg-white | ||
z-50 | ||
; | ||
} |
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,35 @@ | ||
.window { | ||
@apply | ||
rounded-2xl | ||
border-outline | ||
border-2 | ||
overflow-hidden | ||
drop-shadow-window | ||
; | ||
} | ||
|
||
.action-bar { | ||
@apply | ||
flex | ||
flex-row | ||
p-2 | ||
bg-[#f2f2f2] | ||
border-outline | ||
border-b-2 | ||
; | ||
} | ||
|
||
.action-button { | ||
@apply | ||
rounded-full | ||
w-4 | ||
h-4 | ||
mx-1 | ||
; | ||
} | ||
|
||
.window-content { | ||
@apply | ||
bg-white | ||
; | ||
} |
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,27 @@ | ||
import React from 'react'; | ||
import './WindowCard.css'; | ||
|
||
interface WindowProps { | ||
content: React.ReactNode; | ||
heightClass?: string; | ||
widthClass?: string; | ||
} | ||
|
||
function WindowCard(props: WindowProps) { | ||
return ( | ||
<div className={ | ||
`window ${props.heightClass || ''} ${props.widthClass || ''}` | ||
}> | ||
<div className='action-bar'> | ||
<div className='action-button bg-[#ff605c]'></div> | ||
<div className='action-button bg-[#ffbd44]'></div> | ||
<div className='action-button bg-[#00ca4e]'></div> | ||
</div> | ||
<div className='window-content'> | ||
<div>{props.content}</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default WindowCard; |
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,40 @@ | ||
.role-card { | ||
@apply | ||
w-48 | ||
p-4 | ||
flex | ||
flex-col | ||
items-start | ||
gap-1 | ||
; | ||
} | ||
|
||
.role-card>img { | ||
@apply | ||
rounded-md | ||
w-32 | ||
h-32 | ||
object-cover | ||
object-top | ||
self-center | ||
; | ||
} | ||
|
||
.role-label { | ||
@apply | ||
h-20 | ||
m-2 | ||
; | ||
} | ||
|
||
.role-label>h4 { | ||
@apply | ||
font-bold | ||
; | ||
} | ||
|
||
.role-label>p { | ||
@apply | ||
text-sm | ||
; | ||
} |
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,27 @@ | ||
import React from 'react'; | ||
import WindowCard from '../../layout/WindowCard'; | ||
import './RoleCard.css'; | ||
|
||
interface RoleCardProps { | ||
name: string; | ||
role: string; | ||
imgSrc: string; | ||
} | ||
|
||
function RoleCard(props: RoleCardProps) { | ||
const content = ( | ||
<div className='role-card'> | ||
<img src={props.imgSrc}></img> | ||
<div className='role-label'> | ||
<h4>{props.name}</h4> | ||
<p>{props.role}</p> | ||
</div> | ||
</div> | ||
); | ||
|
||
return ( | ||
<WindowCard content={content}></WindowCard> | ||
); | ||
} | ||
|
||
export default RoleCard; |
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,26 @@ | ||
.wing { | ||
@apply | ||
my-8 | ||
; | ||
} | ||
|
||
.wing>h1 { | ||
@apply | ||
text-3xl | ||
text-primary | ||
text-center | ||
font-bold | ||
; | ||
} | ||
|
||
.member-container { | ||
@apply | ||
p-8 | ||
md:px-20 | ||
flex | ||
flex-wrap | ||
justify-center | ||
gap-8 | ||
md:gap-16 | ||
; | ||
} |
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,37 @@ | ||
import React from 'react'; | ||
import RoleCard from './RoleCard'; | ||
import roles from './roles.json' with {type: 'json'}; | ||
import './RolesSection.css'; | ||
|
||
function RolesSection() { | ||
return ( | ||
<> | ||
{ | ||
Object.entries(roles).map((value) => { | ||
const [wing, members] = value; | ||
return ( | ||
<div className='wing' key={wing}> | ||
<h1>{wing}</h1> | ||
<div className='member-container'> | ||
{ | ||
members.map((member) => { | ||
const imgSrc: string = | ||
`members/${member.name.replace(/\s/g, '')}.jpg`; | ||
return <RoleCard | ||
name={member.name} | ||
role={member.role} | ||
imgSrc={imgSrc} | ||
key={member.name} | ||
></RoleCard>; | ||
}) | ||
} | ||
</div> | ||
</div> | ||
); | ||
}) | ||
} | ||
</> | ||
); | ||
} | ||
|
||
export default RolesSection; |
Oops, something went wrong.