-
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
Alder Whiteford
authored and
Alder Whiteford
committed
May 29, 2024
1 parent
cc3ac45
commit 02f8175
Showing
10 changed files
with
271 additions
and
112 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 was deleted.
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
55 changes: 55 additions & 0 deletions
55
...le/app/(design-system)/components/ClubRecruitment/RecruitmentItem/ClubRecruitmentItem.tsx
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 { IconDefinition } from '@fortawesome/fontawesome-svg-core'; | ||
|
||
import { Box, SACColors, Text, createStyles } from '@/app/(design-system)'; | ||
import { firstLetterUppercase } from '@/utils/string'; | ||
|
||
import { Icon } from '../../Icon/Icon'; | ||
|
||
interface RecruitmentItemProps { | ||
icon: IconDefinition; | ||
title: string; | ||
text: string; | ||
color: SACColors; | ||
} | ||
|
||
export const RecruitmentItem = ({ | ||
icon, | ||
title, | ||
text, | ||
color | ||
}: RecruitmentItemProps) => { | ||
return ( | ||
<Box {...styles.recruitmentItem}> | ||
<Box {...styles.recruitmentItemContent}> | ||
<Icon size={'medium'} color={color} icon={icon} /> | ||
<Text variant="body-1" {...styles.recruitmentItemTitle}> | ||
{firstLetterUppercase(title)} | ||
</Text> | ||
<Text variant="caption-1" style={{ textAlign: 'center' }}> | ||
{firstLetterUppercase(text)} | ||
</Text> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
const styles = createStyles({ | ||
recruitmentItem: { | ||
alignItems: 'center', | ||
borderWidth: 1, | ||
borderRadius: 'base', | ||
borderColor: 'gray', | ||
width: '33%' | ||
}, | ||
recruitmentItemContent: { | ||
paddingTop: 'm', | ||
paddingBottom: 'm', | ||
gap: 'xs', | ||
flexDirection: 'column', | ||
alignItems: 'center' | ||
}, | ||
recruitmentItemTitle: { | ||
textAlign: 'center', | ||
fontWeight: '600' | ||
} | ||
}); |
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 was deleted.
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
Oops, something went wrong.