Skip to content

Commit 16df432

Browse files
committed
발표 목록 및 상세 페이지 스타일 수정
1 parent 5bd43fe commit 16df432

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

frontend/components/service/Program/CategoryListItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const SpeakerProfile = styled.div`
4040
height: 6rem;
4141
background-image: url(${(props) => props.image});
4242
background-size: cover;
43+
background-position: center;
4344
border-radius: 50%;
4445
`
4546

frontend/components/service/Program/Speaker.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ const SpeakerName = styled.div`
3333
const SpeakerIntro = styled.p`
3434
margin-top: 0.8rem;
3535
white-space: pre-wrap;
36-
a {
37-
color: ${(props) => props.theme.colors.blue0};
38-
}
3936
`
4037

4138
const Speaker = (props: { item: ISpeaker }) => {

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ import Speaker from '../../../components/service/Program/Speaker'
99
import { DEFAULT_PROFILE_PATH } from '../../../data/constants/config'
1010
import styled from 'styled-components'
1111
import { Heading3 } from '../../../assets/styles/typo'
12+
import Linkify from 'react-linkify'
1213

1314
interface TalkListDetailProps extends LocalePage<ITalkItem> {
1415
locale: string
1516
}
1617

18+
const DetailContainer = styled.div`
19+
a {
20+
color: ${(props) => props.theme.colors.blue0};
21+
}
22+
`
23+
1724
const Description = styled.div`
1825
margin-top: 2rem;
1926
white-space: pre-line;
@@ -34,7 +41,7 @@ const TalkListDetail: NextPage = (props: TalkListDetailProps) => {
3441
}
3542

3643
return (
37-
<>
44+
<DetailContainer>
3845
<PageTitle title={item.title} />
3946
<div>
4047
{t('label:category')}: {item.category}
@@ -50,15 +57,15 @@ const TalkListDetail: NextPage = (props: TalkListDetailProps) => {
5057
</div>
5158
<Description>
5259
<Heading3 useGradient={true}>{t('label:description')}</Heading3>
53-
{item.desc}
60+
<Linkify>{item.desc}</Linkify>
5461
</Description>
5562
<SpeakerContainer>
5663
<Heading3 useGradient={true}>
5764
{t('label:speakerIntro')}
5865
</Heading3>
5966
<Speaker item={speaker} />
6067
</SpeakerContainer>
61-
</>
68+
</DetailContainer>
6269
)
6370
}
6471

0 commit comments

Comments
 (0)