Skip to content

Commit c31f635

Browse files
committed
Merge branch 'add-staff', remote-tracking branch 'origin'
3 parents 4acdea4 + 84828a6 + 1ef5bd6 commit c31f635

File tree

2 files changed

+12
-58
lines changed

2 files changed

+12
-58
lines changed

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: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { GetServerSideProps, GetServerSidePropsContext, NextPage } from 'next'
22
import React from 'react'
33
import { LocalePage } from '../../../interfaces/PageProps'
4-
import { ISpeaker, ITalkItem } from '../../../interfaces/IProgram'
4+
import { IPerson, ITalkItem } from '../../../interfaces/IProgram'
55
import { getTalkById } from '../../api/program'
66
import PageTitle from '../../../components/core/PageTitle'
77
import { useTranslation } from 'react-i18next'
@@ -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`
@@ -34,11 +37,12 @@ const TalkListDetail: NextPage = (props: TalkListDetailProps) => {
3437
const { t } = useTranslation()
3538

3639
const item: ITalkItem = props[props.locale]
37-
const speaker: ISpeaker = {
40+
const speaker: IPerson = {
3841
image: item.speaker_profile_img ?? DEFAULT_PROFILE_PATH,
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)