Skip to content

Commit 83e53e1

Browse files
committed
티켓 정보 업데이트 및 다국어 라벨 적용
1 parent 08099c5 commit 83e53e1

File tree

4 files changed

+42
-10
lines changed

4 files changed

+42
-10
lines changed

frontend/components/service/Home/MainIdentity.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const MainIdentity = () => {
135135
</TitleContainer>
136136
<MainText>
137137
<div>{t(`label:pyconkrDate`)}</div>
138-
<div>온라인 및 오프라인 진행</div>
138+
<div>{t(`label:locationInfo`)}</div>
139139
</MainText>
140140
</Window>
141141
</MainTheme>

frontend/locales/en/label.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ export default {
4141
difficulty: 'Difficulty',
4242
duration: 'Duration',
4343
language: 'Language',
44-
ticketInfo:
45-
'Tickets for PyCon Korea 2022 are available at Festa (festa.io).\nPyCon Korea 2022 regular ticket has limited quantities are sold and may be sold out early, so please purchase as soon as possible.',
46-
buyTicket: 'Buy ticket'
44+
applyOnline: 'Apply Online',
45+
applyOffline: 'Apply Offline',
46+
onlineTicketInfo:
47+
'PyCon Korea 2022 will be held on PyCon Korea YouTube(https://www.youtube.com/c/PyConKRtube), so you can participate without a ticket.',
48+
offlineTicketInfo:
49+
'PyCon Korea 2022 merchandises and offline tickets are available at Festa (festa.io).\nOffline ticket has limited quantities are sold and may be sold out early, so please purchase as soon as possible.',
50+
buyTicket: 'Buy ticket',
51+
locationInfo: 'Simultaneous online-offline'
4752
}

frontend/locales/ko/label.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ export default {
4343
language: '언어',
4444
description: '설명',
4545
speakerIntro: '발표자 소개',
46-
ticketInfo:
47-
'파이콘 한국 2022 티켓은 페스타(festa.io)에서 구입할 수 있습니다.\n파이콘 한국 2022 일반 티켓은 한정된 수량만 판매되어 조기 매진이 될 가능성이 있으니 서둘러 구매해주시기 바랍니다.',
48-
buyTicket: '티켓 구입하기'
46+
applyOnline: '온라인 참가',
47+
applyOffline: '오프라인 참가',
48+
onlineTicketInfo:
49+
'파이콘 한국 2022는 파이콘 한국 유튜브(https://www.youtube.com/c/PyConKRtube)에 송출되어 티켓 없이도 참가할 수 있습니다.',
50+
offlineTicketInfo:
51+
'파이콘 한국 2022 굿즈 및 오프라인 티켓은 페스타(festa.io)에서 구입할 수 있습니다.\n오프라인 티켓은 한정된 수량만 판매되어 조기 매진이 될 가능성이 있으니 서둘러 구매해주시기 바랍니다.',
52+
buyTicket: '티켓 구입하기',
53+
locationInfo: '온/오프라인 동시 진행'
4954
}

frontend/pages/about/ticket.tsx

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,22 @@ import PageTitle from '../../components/core/PageTitle'
66
import { PageProps } from '../../interfaces/PageProps'
77
import Resources from '../../data/constants/resources'
88
import styled from 'styled-components'
9-
import { Paragraph } from '../../assets/styles/typo'
9+
import Linkify from 'react-linkify'
1010

11-
const TicketInfo = styled(Paragraph)`
11+
const TicketInfo = styled.div`
1212
margin: 2rem 0;
13+
`
14+
15+
const InfoTitle = styled.div`
16+
font-size: 1.2rem;
17+
font-weight: bold;
18+
margin: 1rem 0;
19+
`
20+
const InfoContent = styled.div`
1321
white-space: pre-line;
22+
a {
23+
color: ${(props) => props.theme.colors.blue0};
24+
}
1425
`
1526

1627
const TicketLink = styled.a`
@@ -29,7 +40,18 @@ const Ticket: NextPage = (props: PageProps) => {
2940
return (
3041
<div>
3142
<PageTitle title={props.pageName} />
32-
<TicketInfo>{t('label:ticketInfo')}</TicketInfo>
43+
<TicketInfo>
44+
<InfoTitle>{t('label:applyOnline')}</InfoTitle>
45+
<InfoContent>
46+
<Linkify>{t('label:onlineTicketInfo')}</Linkify>
47+
</InfoContent>
48+
</TicketInfo>
49+
<TicketInfo>
50+
<InfoTitle>{t('label:applyOffline')}</InfoTitle>
51+
<InfoContent>
52+
<Linkify>{t('label:offlineTicketInfo')}</Linkify>
53+
</InfoContent>
54+
</TicketInfo>
3355
<TicketLink
3456
href={Resources.FESTA_TICKET_LINK}
3557
target="_blank"

0 commit comments

Comments
 (0)