Skip to content

Commit

Permalink
Events page (#512)
Browse files Browse the repository at this point in the history
* WIP Events page

* Minor fix

* WIP Events page (desktop)

* Reuse custom styles

* Mobile version

* Responsive design

* Change banner URL

* Add EthGlobal Brussels 2024 data

* Minor fixes

* Add links; Add FAQ

* Implement requested changes
  • Loading branch information
louis-md committed Jul 9, 2024
1 parent ac9434e commit 9c41e7e
Show file tree
Hide file tree
Showing 32 changed files with 1,173 additions and 8 deletions.
Binary file added assets/diamond-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/diamond-dev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/german.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/louis.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/svg/building.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/svg/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/svg/ellipse-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/svg/ellipse-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/svg/ellipse-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/svg/ellipse-4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/svg/gift.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/svg/layers.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions assets/svg/stack-exchange.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/svg/teach.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions assets/svg/trophy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/valle.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions components/Events/Bounty.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import Link from 'next/link'
import Grid from '@mui/material/Grid'
import Typography from '@mui/material/Typography'
import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos'

import css from './styles.module.css'

const Bounty: React.FC<{
width: string | string[]
icon: JSX.Element
name: string
description: string
prize?: string
link?: string
linkLabel?: string
}> = ({ width, icon, name, description, prize, link, linkLabel }) => (
<Grid
container
flexDirection='column'
sx={{
p: 4,
width,
border: 'solid 1px',
borderColor: ({ palette }) => palette.border.light,
borderRadius: '8px',
mt: ['30px', '0px']
}}
justifyContent='space-between'
>
<Grid item>
{icon}
<Typography sx={{ mt: '30px' }} className={css.heading3}>
{name}
</Typography>
<Typography color='text.dark' sx={{ my: '40px' }} className={css.body}>
{description}
</Typography>
</Grid>
<Typography className={css.heading3}>{prize}</Typography>{' '}
{link != null && (
<Grid item alignItems='flex-end'>
<Link href={link} target='_blank' rel='noopener noreferrer'>
<Typography className={css.link} sx={{ mt: '20px' }}>
{linkLabel} {<ArrowForwardIosIcon sx={{ width: '16px' }} />}
</Typography>
</Link>
</Grid>
)}
</Grid>
)

export default Bounty
Loading

0 comments on commit 9c41e7e

Please sign in to comment.