File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
components/service/Program Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ const SpeakerName = styled.div`
3333const 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
4138const Speaker = ( props : { item : ISpeaker } ) => {
Original file line number Diff line number Diff line change @@ -9,11 +9,18 @@ import Speaker from '../../../components/service/Program/Speaker'
99import { DEFAULT_PROFILE_PATH } from '../../../data/constants/config'
1010import styled from 'styled-components'
1111import { Heading3 } from '../../../assets/styles/typo'
12+ import Linkify from 'react-linkify'
1213
1314interface 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+
1724const 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
You can’t perform that action at this time.
0 commit comments