-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add contributors spotlight widget and page
- Loading branch information
Showing
17 changed files
with
365 additions
and
102 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 @@ | ||
import { Box, Typography } from '@mui/material' | ||
import PlainHeader from './common/PlainHeader' | ||
import contributorsService from '../services/contributors.service' | ||
import { SimpleInfoCard, SimpleInfoCardProps } from './common/SimpleInfoCard' | ||
import Grid2 from '@mui/material/Unstable_Grid2' | ||
|
||
export const ContributorsPage = () => { | ||
const contributors = contributorsService.getContributors() | ||
const contributorCardData: SimpleInfoCardProps[] = contributors.map( | ||
(contributor) => ({ | ||
title: contributor.name, | ||
subTitle: contributor.subTitle, | ||
subjectUrl: contributor.profileUrl, | ||
callout: '', | ||
href: contributor.githubUrl, | ||
}), | ||
) | ||
return ( | ||
<Box sx={{ padding: '2rem' }}> | ||
<PlainHeader title="Contributors" /> | ||
<Box sx={{ mt: 4 }}> | ||
<Typography sx={{ mb: 2 }}> | ||
Thank you to all our amazing contributors! | ||
</Typography> | ||
<Grid2 container spacing={2}> | ||
{contributorCardData.map((contributor) => ( | ||
<Grid2 key={contributor.title} xs={12} sm={6} md={4} lg={3}> | ||
<SimpleInfoCard {...contributor} /> | ||
</Grid2> | ||
))} | ||
</Grid2> | ||
</Box> | ||
</Box> | ||
) | ||
} |
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
69 changes: 0 additions & 69 deletions
69
packages/app/src/components/Home/Extensions/ExtensionCard.tsx
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { Box, Typography } from '@mui/material' | ||
|
||
import { Logo } from '../common/Logo/Logo' | ||
import CodeClimbersButton from '../common/CodeClimbersButton' | ||
import { useNavigate } from 'react-router-dom' | ||
import { Close } from '@mui/icons-material' | ||
|
||
type Props = { | ||
title: string | ||
} | ||
|
||
const PlainHeader = ({ title }: Props) => { | ||
const navigate = useNavigate() | ||
|
||
const handleClick = () => { | ||
navigate('/') | ||
} | ||
|
||
return ( | ||
<> | ||
<Box | ||
display="flex" | ||
sx={{ justifyContent: 'space-between', width: '100%' }} | ||
> | ||
<Box display="flex" flexDirection="row" gap={2}> | ||
<CodeClimbersButton | ||
variant="text" | ||
onClick={handleClick} | ||
eventName="plain_header_logo_click" | ||
> | ||
<Logo /> | ||
</CodeClimbersButton> | ||
</Box> | ||
<Box display="flex" flexDirection="row" gap={2}> | ||
<CodeClimbersButton | ||
variant="text" | ||
onClick={handleClick} | ||
eventName="plain_header_logo_click" | ||
sx={{ textTransform: 'none' }} | ||
color="inherit" | ||
> | ||
<Typography sx={{ mr: 2 }}>{title}</Typography> | ||
<Close /> | ||
</CodeClimbersButton> | ||
</Box> | ||
</Box> | ||
</> | ||
) | ||
} | ||
|
||
export default PlainHeader |
Oops, something went wrong.