Skip to content

Commit 2c7717d

Browse files
committed
발표 영상 섹션 추가 및 트랙 영상 링크 제거
1 parent 7c80214 commit 2c7717d

File tree

4 files changed

+14
-58
lines changed

4 files changed

+14
-58
lines changed

frontend/locales/en/label.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,6 @@ export default {
6060
'PyCon Korea 2022 will be held both online and offline. The talks will be streamed on the PyCon Korea YouTube(https://www.youtube.com/c/PyConKRtube).',
6161
pyConKrYoutube: 'PyCon Korea YouTube',
6262
firstFloor: 'First Floor',
63-
secondFloor: 'Second Floor'
63+
secondFloor: 'Second Floor',
64+
videoLink: 'Video Link'
6465
}

frontend/locales/ko/label.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,6 @@ export default {
6565
'파이콘 한국 2022는 파이콘 한국 유튜브 채널(https://www.youtube.com/c/PyConKRtube)에서 시청 가능합니다. 세션은 온라인과 오프라인 동시에 진행됩니다.',
6666
pyConKrYoutube: '파이콘 한국 유튜브',
6767
firstFloor: '1층',
68-
secondFloor: '2층'
68+
secondFloor: '2층',
69+
videoLink: '발표 영상'
6970
}

frontend/pages/program/talk-schedule.tsx

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ interface TalkTableProps extends PageProps {
1616
data: ITalkList
1717
}
1818

19-
const LinkList = styled.li`
20-
list-style: disc;
21-
a {
22-
color: ${(props) => props.theme.colors.blue0};
23-
}
24-
`
25-
2619
const ButtonWrap = styled.div`
2720
margin-top: 1.5rem;
2821
`
@@ -66,58 +59,9 @@ const TalkSchedule: NextPage = (props: TalkTableProps) => {
6659
isSameDay(new Date(item.video_open_at), new Date(2022, 9, 2))
6760
)
6861

69-
const trackLinkGroup = [
70-
{
71-
day: 'day1',
72-
links: [
73-
{
74-
track: '트랙1',
75-
link: `https://youtu.be/OrrquS5PFtw`
76-
},
77-
{
78-
track: '트랙2',
79-
link: `https://youtu.be/pJGRoe-jt9E`
80-
}
81-
]
82-
},
83-
{
84-
day: 'day2',
85-
links: [
86-
{
87-
track: '트랙3',
88-
link: `https://youtu.be/L6Lz793mzrU`
89-
},
90-
{
91-
track: '트랙4',
92-
link: `https://youtu.be/10qBldkS0wk`
93-
}
94-
]
95-
}
96-
]
97-
9862
return (
9963
<div>
10064
<PageTitle title={pageName} />
101-
<ul>
102-
{trackLinkGroup
103-
.filter((item) => item.day === selectedDay)
104-
.map((item, index) => (
105-
<div key={`linkGroup-${index}`}>
106-
{item.links.map((linkItem, index) => (
107-
<LinkList key={`linkItem-${index}`}>
108-
세션 {linkItem.track} 링크:{' '}
109-
<a
110-
href={linkItem.link}
111-
target={'_blank'}
112-
rel="noreferrer"
113-
>
114-
{linkItem.link}
115-
</a>
116-
</LinkList>
117-
))}
118-
</div>
119-
))}
120-
</ul>
12165
<ButtonWrap>
12266
<TalkTableToggleButton handleClick={updateSelectedDay} />
12367
</ButtonWrap>

frontend/pages/program/talks/[id].tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ const DetailContainer = styled.div`
2424
const Description = styled.div`
2525
margin-top: 2rem;
2626
white-space: pre-line;
27+
& + & {
28+
margin-top: 4rem;
29+
}
2730
`
2831

2932
const SpeakerContainer = styled.div`
@@ -39,6 +42,7 @@ const TalkListDetail: NextPage = (props: TalkListDetailProps) => {
3942
name: item.user_name,
4043
introduction: item.introduction
4144
}
45+
const videoUrl = item.video_url ?? ''
4246

4347
return (
4448
<DetailContainer>
@@ -59,6 +63,12 @@ const TalkListDetail: NextPage = (props: TalkListDetailProps) => {
5963
<Heading3 useGradient={true}>{t('label:description')}</Heading3>
6064
<Linkify>{item.desc}</Linkify>
6165
</Description>
66+
<Description>
67+
<Heading3 useGradient={true}>{t('label:videoLink')}</Heading3>
68+
<a href={videoUrl} target={'_blank'} rel="noreferrer">
69+
{videoUrl}
70+
</a>
71+
</Description>
6272
<SpeakerContainer>
6373
<Heading3 useGradient={true}>
6474
{t('label:speakerIntro')}

0 commit comments

Comments
 (0)