Skip to content

Commit

Permalink
feat: community booth section (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
maito1201 authored Feb 1, 2023
1 parent e30e733 commit e1347bb
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { ComponentMeta, ComponentStory } from '@storybook/react'
import { CommunityBoothSection } from '.'

const meta: ComponentMeta<typeof CommunityBoothSection> = {
component: CommunityBoothSection
}
export default meta

const Template: ComponentStory<typeof CommunityBoothSection> = args => <CommunityBoothSection {...args} />
export const Default = Template.bind({})
34 changes: 34 additions & 0 deletions src/components/organisms/CommunityBoothSection/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import type { FC } from 'react'
import Link from 'next/link'
import { Box, Typography } from '@mui/material'
import { Button } from 'src/components/atoms'
import { useTranslation } from 'react-i18next'
import { Colors } from 'src/styles/color'

export const CommunityBoothSection: FC = () => {
const { t } = useTranslation()

return (
<Box
bgcolor={Colors.background.primary}
display={'flex'}
flexDirection={'column'}
alignItems={'center'}
mb={{ md: 12.5, xs: 7.5 }}
px={{ xs: 2 }}
py={{ md: 10, xs: 4 }}
>
<Typography variant="h2" textAlign={'center'}>
Community Booth
</Typography>
<Typography variant="body1" mb={{ md: 5, xs: 2 }}>
{t('community_booth_description')}
</Typography>
<Link href="https://drive.google.com/file/d/1QUr1BWF7Mu1vU40UieBcvkMf5B-tAf91/view?usp=share_link">
<a target="_blank">
<Button text={t('consider_a_community_booth')} />
</a>
</Link>
</Box>
)
}
1 change: 1 addition & 0 deletions src/components/organisms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './MainVisual'
export * from './SpeakersSection'
export * from './SponsorsSection'
export * from './TopDescription'
export * from './CommunityBoothSection'
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, SpeakersSection, SponsorsSection } from 'src/components/organisms'
import {
MainVisual,
TopDescription,
SpeakersSection,
SponsorsSection,
CommunityBoothSection
} from 'src/components/organisms'

export const PageTop: NextPage = () => {
const { t } = useTranslation()
Expand All @@ -12,6 +18,7 @@ export const PageTop: NextPage = () => {
<TopDescription />
<SpeakersSection />
<SponsorsSection />
<CommunityBoothSection />
</Layout>
)
}
2 changes: 2 additions & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"application_started": "Application started",
"application_closed": "Application closed",
"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!",
"session": "session",
"session_num": "30 or more sessions(Open call for paper at 2022/12)",
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"application_started": "応募開始",
"application_closed": "応募締切",
"consider_a_sponsor": "スポンサーを検討する",
"consider_a_community_booth": "コミュニティブースを検討する",
"community_booth_description": "コミュニティブース募集中です!",
"about": "Go Conference は<wbr/>プログラミング言語Goユーザーの<wbr/>ための<wbr/>カンファレンスです。<wbr/>今年で10周年!",
"session": "セッション",
"session_num": "30セッション程度(2022年12月公募開始)",
Expand Down

0 comments on commit e1347bb

Please sign in to comment.