Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add information about CfP result #165

Merged
merged 1 commit into from
Feb 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 6 additions & 53 deletions src/components/organisms/SpeakersSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ import { Box, Typography } from '@mui/material'
import { Button } from 'src/components/atoms'
import { useTranslation } from 'react-i18next'
import { Colors, confettiColors } from 'src/styles/color'
import {
GopherConductor,
GopherDrummer,
GopherFlowerBlue,
GopherFlowerPink,
GopherPartyPopper,
GopherPomPom,
GopherTrumpeter
} from 'src/images/gopher'
import Image from 'next/image'
import { useSize } from 'src/modules/hooks'
import { useReward } from 'react-rewards'

Expand All @@ -38,50 +28,13 @@ export const SpeakersSection: FC = () => {
>
<Typography variant="h2">Call for Speakers!</Typography>
<Box mb={1}>
<Typography variant="body2">{t('application_started')}: 2022.12.01 Thu</Typography>
<Typography variant="body2">{t('application_closed')}: 2023.01.31 Tue</Typography>
<Typography variant="body2">{t('application_result_will_be_noticed')}</Typography>
</Box>
<Box display="grid" gridTemplateColumns={isTabletOrOver ? '1fr 1fr 1fr' : '1fr'} gap={2}>
{isTabletOrOver && (
<Box display="flex" alignItems="flex-end" justifyContent="flex-end" gap={0.5}>
<Image src={GopherConductor} alt="gopher conductor" />
<Image src={GopherDrummer} alt="gopher drummer" />
<Image src={GopherTrumpeter} alt="gopher trumpeter" />
<Image src={GopherPomPom} alt="gopher pom pom" />
</Box>
)}
<Link href="https://sessionize.com/go-conference-2023-online/">
<a target="_blank">
<Button text={t('apply_for_speaker')} />
</a>
</Link>
{isTabletOrOver && (
<Box display="flex" alignItems="flex-end" gap={0.5}>
<Image src={GopherFlowerBlue} alt="gopher flower blue" />
<Image src={GopherFlowerPink} alt="gopher flower pink" />
<Box onClick={reward} sx={{ '&:hover': { cursor: 'pointer' } }}>
<span id="confettiGopherPopper" />
<Image src={GopherPartyPopper} alt="gopher party popper" />
</Box>
</Box>
)}
</Box>
{!isTabletOrOver && (
<Box
sx={{
position: 'absolute',
zIndex: 0,
top: '56px',
right: 0,
display: 'flex',
alignItems: 'flex-end',
opacity: 0.7
}}
>
<Image src={GopherConductor} alt="gopher conductor" width="56px" objectFit="contain" />
<Image src={GopherDrummer} alt="gopher drummer" width="52px" objectFit="contain" />
</Box>
)}
<Link href="https://sessionize.com/go-conference-2023-online/">
<a target="_blank">
<Button text={t('check_cfp')} />
</a>
</Link>
</Box>
)
}
9 changes: 8 additions & 1 deletion src/components/pages/PageTop/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import type { NextPage } from 'next'
import { Layout } from 'src/components/commons'
import { useTranslation } from 'react-i18next'
import { MainVisual, TopDescription, SponsorsSection, CommunityBoothSection } from 'src/components/organisms'
import {
MainVisual,
TopDescription,
SponsorsSection,
CommunityBoothSection,
SpeakersSection
} from 'src/components/organisms'

export const PageTop: NextPage = () => {
const { t } = useTranslation()
Expand All @@ -10,6 +16,7 @@ export const PageTop: NextPage = () => {
<Layout>
<MainVisual />
<TopDescription />
<SpeakersSection />
<SponsorsSection />
<CommunityBoothSection />
</Layout>
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"apply_for_speaker": "Call for Speakers",
"application_started": "Application started",
"application_closed": "Application closed",
"application_result_will_be_noticed": "CfP results will be sent to the email registered on sessionize on March 9, 2023",
"consider_a_sponsor": "Consider sponsoring",
"consider_a_community_booth": "Consider applying for a community booth",
"community_booth_description": "We are looking for Community Booth!",
"about": "Go Conference is a conference for Go programming language users. It's the 10th anniversary!",
"check_cfp": "check CfP",
"session": "session",
"session_num": "30 or more sessions(Open call for paper at 2022/12)",
"target": "target",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
"apply_for_speaker": "スピーカーに応募する",
"application_started": "応募開始",
"application_closed": "応募締切",
"application_result_will_be_noticed": "CfPの結果は2023年3月9日に、sessionizeに登録されたメールにお送りする予定です",
"consider_a_sponsor": "スポンサーを検討する",
"consider_a_community_booth": "コミュニティブースを検討する",
"community_booth_description": "コミュニティブース募集中です!",
"check_cfp": "CfPを確認する",
"about": "Go Conference は<wbr/>プログラミング言語Goユーザーの<wbr/>ための<wbr/>カンファレンスです。<wbr/>今年で10周年!",
"session": "セッション",
"session_num": "30セッション程度(2022年12月公募開始)",
Expand Down