This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MCSS-62: Add Volunteer & Mentor Signup Tiles (#63)
- Loading branch information
1 parent
b092a02
commit 72f112b
Showing
10 changed files
with
132 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import EngineeringIcon from '@mui/icons-material/Engineering' | ||
import Card from '@mui/material/Card' | ||
import CardActionArea from '@mui/material/CardActionArea' | ||
import CardContent from '@mui/material/CardContent' | ||
import Typography from '@mui/material/Typography' | ||
|
||
type Props = { | ||
href: string | ||
disabled?: boolean | ||
} | ||
|
||
const TileMentorForm = (props: Props) => { | ||
const { href, disabled = false } = props | ||
|
||
return ( | ||
<Card | ||
variant={disabled ? 'outlined' : 'elevation'} | ||
{...(!disabled && { | ||
sx: { | ||
backgroundImage: | ||
'radial-gradient(circle closest-corner at 20% 6%, rgb(32 218 133 / 25%), rgb(255 255 255 / 6%)),radial-gradient(circle farthest-side at 71% 16%, rgba(154, 39, 238, 0.15), rgba(255, 255, 255, 0) 35%),radial-gradient(circle closest-corner at 73% 64%, rgb(214 142 19 / 22%), rgba(255, 255, 255, 0) 76%),radial-gradient(circle farthest-side at 69% 81%, rgb(56 40 202 / 25%), rgba(255, 255, 255, 0) 76%),linear-gradient(#202124, #202124)', | ||
}, | ||
})} | ||
> | ||
<CardActionArea rel="noopener" href={href} target="_blank" disabled={disabled}> | ||
<CardContent sx={{ gap: '2rem' }}> | ||
<Typography | ||
color={disabled ? 'text.disabled' : 'primary'} | ||
variant="h2" | ||
display="flex" | ||
alignItems="center" | ||
gap="0.5rem" | ||
gutterBottom | ||
> | ||
<EngineeringIcon fontSize="inherit" /> | ||
Mentor Signup | ||
</Typography> | ||
<Typography variant="body2" color={disabled ? 'text.disabled' : 'text.primary'}> | ||
{disabled | ||
? 'Signup is unavailable while user is unverified' | ||
: 'Interested in mentoring hackers? Apply to be a mentor before {TBD DATE}'} | ||
</Typography> | ||
</CardContent> | ||
</CardActionArea> | ||
</Card> | ||
) | ||
} | ||
|
||
export default TileMentorForm |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import EmojiPeopleIcon from '@mui/icons-material/EmojiPeople' | ||
import Card from '@mui/material/Card' | ||
import CardActionArea from '@mui/material/CardActionArea' | ||
import CardContent from '@mui/material/CardContent' | ||
import Typography from '@mui/material/Typography' | ||
|
||
type Props = { | ||
href: string | ||
disabled?: boolean | ||
} | ||
|
||
const TileVolunteerForm = (props: Props) => { | ||
const { href, disabled = false } = props | ||
|
||
return ( | ||
<Card | ||
variant={disabled ? 'outlined' : 'elevation'} | ||
{...(!disabled && { | ||
sx: { | ||
backgroundImage: | ||
'radial-gradient(circle closest-corner at 74% 18%, rgb(218 189 32 / 25%), rgb(255 255 255 / 6%)),radial-gradient(circle farthest-side at 71% 16%, rgba(154, 39, 238, 0.15), rgba(255, 255, 255, 0) 35%),radial-gradient(circle closest-corner at 59% 57%, rgb(214 19 19 / 22%), rgba(255, 255, 255, 0) 76%),radial-gradient(circle farthest-side at 49% 65%, rgb(213 109 20 / 25%), rgba(255, 255, 255, 0) 76%),linear-gradient(#202124, #202124)', | ||
}, | ||
})} | ||
> | ||
<CardActionArea rel="noopener" href={href} target="_blank" disabled={disabled}> | ||
<CardContent sx={{ gap: '2rem' }}> | ||
<Typography | ||
color={disabled ? 'text.disabled' : 'primary'} | ||
variant="h2" | ||
display="flex" | ||
alignItems="center" | ||
gap="0.5rem" | ||
gutterBottom | ||
> | ||
<EmojiPeopleIcon fontSize="inherit" /> | ||
Volunteer Signup | ||
</Typography> | ||
<Typography variant="body2" color={disabled ? 'text.disabled' : 'text.primary'}> | ||
{disabled | ||
? 'Signup is unavailable while user is unverified' | ||
: 'Want to volunteer for DeerHacks? Apply to be a volunteer before {TBD DATE}'} | ||
</Typography> | ||
</CardContent> | ||
</CardActionArea> | ||
</Card> | ||
) | ||
} | ||
|
||
export default TileVolunteerForm |
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
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.