@@ -3,10 +3,29 @@ import Link from 'next/link'
33import { Box , Typography } from '@mui/material'
44import { Button } from 'src/components/atoms'
55import { useTranslation } from 'react-i18next'
6- import { Colors } from 'src/styles/color'
6+ import { Colors , confettiColors } from 'src/styles/color'
7+ import {
8+ GopherConductor ,
9+ GopherDrummer ,
10+ GopherFlowerBlue ,
11+ GopherFlowerPink ,
12+ GopherPartyPopper ,
13+ GopherPomPom ,
14+ GopherTrumpeter
15+ } from 'src/images/gopher'
16+ import Image from 'next/image'
17+ import { useSize } from 'src/modules/hooks'
18+ import { useReward } from 'react-rewards'
719
820export const SponsorsSection : FC = ( ) => {
921 const { t } = useTranslation ( )
22+ const { isTabletOrOver } = useSize ( )
23+ const { reward } = useReward ( 'confettiGopherPopper' , 'confetti' , {
24+ angle : 135 ,
25+ colors : confettiColors ,
26+ position : 'absolute' ,
27+ startVelocity : 20
28+ } )
1029
1130 return (
1231 < Box
@@ -32,11 +51,47 @@ export const SponsorsSection: FC = () => {
3251 <SponsorsCard planType="silver" logoImages={[]}/>
3352 <SponsorsCard planType="bronze" logoImages={[]}/>
3453 </Box> */ }
35- < Link href = "https://drive.google.com/file/d/1wwFeJk0rT0SydwDi2wx4wVVAD6psDUrL/view?usp=share_link" >
36- < a target = "_blank" >
37- < Button text = { t ( 'consider_a_sponsor' ) } />
38- </ a >
39- </ Link >
54+ < Box display = "grid" gridTemplateColumns = { isTabletOrOver ? '1fr 1fr 1fr' : '1fr' } gap = { 2 } >
55+ { isTabletOrOver && (
56+ < Box display = "flex" alignItems = "flex-end" justifyContent = "flex-end" gap = { 0.5 } >
57+ < Image src = { GopherConductor } alt = "gopher conductor" />
58+ < Image src = { GopherDrummer } alt = "gopher drummer" />
59+ < Image src = { GopherTrumpeter } alt = "gopher trumpeter" />
60+ < Image src = { GopherPomPom } alt = "gopher pom pom" />
61+ </ Box >
62+ ) }
63+ < Link href = "https://drive.google.com/file/d/1wwFeJk0rT0SydwDi2wx4wVVAD6psDUrL/view?usp=share_link" >
64+ < a target = "_blank" >
65+ < Button text = { t ( 'consider_a_sponsor' ) } />
66+ </ a >
67+ </ Link >
68+ { isTabletOrOver && (
69+ < Box display = "flex" alignItems = "flex-end" gap = { 0.5 } >
70+ < Image src = { GopherFlowerBlue } alt = "gopher flower blue" />
71+ < Image src = { GopherFlowerPink } alt = "gopher flower pink" />
72+ < Box onClick = { reward } sx = { { '&:hover' : { cursor : 'pointer' } } } >
73+ < span id = "confettiGopherPopper" />
74+ < Image src = { GopherPartyPopper } alt = "gopher party popper" />
75+ </ Box >
76+ </ Box >
77+ ) }
78+ </ Box >
79+ { ! isTabletOrOver && (
80+ < Box
81+ sx = { {
82+ position : 'absolute' ,
83+ zIndex : 0 ,
84+ top : '56px' ,
85+ right : 0 ,
86+ display : 'flex' ,
87+ alignItems : 'flex-end' ,
88+ opacity : 0.7
89+ } }
90+ >
91+ < Image src = { GopherConductor } alt = "gopher conductor" width = "56px" objectFit = "contain" />
92+ < Image src = { GopherDrummer } alt = "gopher drummer" width = "52px" objectFit = "contain" />
93+ </ Box >
94+ ) }
4095 </ Box >
4196 )
4297}
0 commit comments