Skip to content

Commit a6bfaee

Browse files
committed
Merge branch 'main' of https://github.com/pythonkr/pyconkr-web-2022 into devdev
2 parents 0875d0e + b887ab7 commit a6bfaee

File tree

24 files changed

+321
-55
lines changed

24 files changed

+321
-55
lines changed

frontend/assets/styles/markdown.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,20 @@ const MarkdownStyle = styled.div`
1818
h2 ~ h2 {
1919
margin: 3rem 0 1.2rem;
2020
}
21+
ol,
22+
ul {
23+
margin-left: 2rem;
24+
}
2125
ul,
2226
li {
23-
margin: 0.3rem 0.6rem;
2427
padding: 0;
28+
line-height: 1.6;
2529
}
2630
ol li {
27-
list-style: numeric;
31+
list-style: decimal !important;
2832
}
2933
ul li {
30-
list-style: circle;
34+
list-style: disc !important;
3135
}
3236
hr {
3337
margin: 1rem 0;
@@ -63,6 +67,9 @@ const MarkdownStyle = styled.div`
6367
td {
6468
padding: 0.6rem;
6569
}
70+
p {
71+
margin-top: 1rem;
72+
}
6673
`
6774

6875
export default MarkdownStyle

frontend/assets/styles/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const Theme = {
33
primary0: '#1F1A24',
44
primary1: '#62599C',
55
primary2: '#0070f3',
6+
violet0: '#4c0097', // TODO: temporary color
67
black: '#000000',
78
white: '#ffffff',
89
grey_f9: '#f9f9f9',
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react'
2+
3+
const LinkRenderer = (props) => {
4+
return (
5+
<a href={props.href} target="_blank" rel="noreferrer">
6+
{props.children}
7+
</a>
8+
)
9+
}
10+
11+
export default LinkRenderer

frontend/components/core/NavBar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import styled from 'styled-components'
44
import { useTranslation } from 'react-i18next'
55
import { useRouter } from 'next/router'
66
import { media } from '../../assets/styles/mixin'
7+
import SnsLink from './SnsLink'
78

89
const Container = styled.nav`
910
${media.mobile(`
@@ -174,6 +175,7 @@ const NavBar = (props: NavProps) => {
174175
</LanguageChangeButton>
175176
</ListItem>
176177
)}
178+
<SnsLink />
177179
</List>
178180
</Container>
179181
)

frontend/components/core/NavBarMobile.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
SubMenuToggleLabel,
1414
SubMenuToggleSpan
1515
} from './NavBar'
16+
import SnsLink from './SnsLink'
1617

1718
const Container = styled.div`
1819
display: none;
@@ -252,6 +253,7 @@ const NavBarMobile = (props: NavProps) => {
252253
</LanguageChangeButton>
253254
</ListItem>
254255
)}
256+
<SnsLink />
255257
</List>
256258
</Navigation>
257259
)}

frontend/components/core/NavLink.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import React from 'react'
2+
import Icon from '@mdi/react'
3+
import { mdiFacebook, mdiTwitter } from '@mdi/js'
4+
import styled from 'styled-components'
5+
import Resource from '../../data/constants/resources'
6+
import { media } from '../../assets/styles/mixin'
7+
8+
const List = styled.ul`
9+
display: flex;
10+
`
11+
const ListItem = styled.li`
12+
padding: 0.4rem;
13+
color: ${(props) => props.theme.colors.white};
14+
${media.mobile(`
15+
padding: 1.3rem 0;
16+
`)}
17+
& + & {
18+
${media.mobile(`
19+
padding-left: 1rem;
20+
`)}
21+
}
22+
`
23+
24+
export const Link = styled.a`
25+
display: flex;
26+
cursor: pointer;
27+
`
28+
29+
const SnsLink = () => {
30+
return (
31+
<List>
32+
<ListItem>
33+
<Link
34+
target="_blank"
35+
aria-label="Facebook Link"
36+
href={Resource.pyconkrFacebook}
37+
>
38+
<Icon path={mdiFacebook} size={1} />
39+
</Link>
40+
</ListItem>
41+
<ListItem>
42+
<Link
43+
target="_blank"
44+
aria-label="Twitter Link"
45+
href={Resource.pyconkrTwitter}
46+
>
47+
<Icon path={mdiTwitter} size={1} />
48+
</Link>
49+
</ListItem>
50+
</List>
51+
)
52+
}
53+
54+
export default SnsLink

frontend/components/layout/Layout.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,9 @@ const Body = styled.div`
2828
`
2929

3030
const Layout = (props: LayoutProps) => {
31-
const { t } = useTranslation()
32-
33-
const title =
34-
props.pageName !== ''
35-
? `${t(`pageTitle:${props.pageName}`)} : ${t(`label:siteTitle`)}`
36-
: `${t(`label:siteTitle`)}`
37-
3831
// TODO: locale을 context로 관리
3932
return (
4033
<>
41-
<NextSeo
42-
title={title}
43-
description=""
44-
openGraph={{
45-
type: 'website',
46-
url: 'https://pycon.kr',
47-
title: title,
48-
site_name: title
49-
}}
50-
/>
5134
<NavBarMobile locale={props.locale} />
5235
<NavBar locale={props.locale} />
5336
<Container>

frontend/components/service/Home/Main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const MainBackground = () => {
5858
<>
5959
<Container>
6060
<Title>{t(`label:pyconkrTitle`)}</Title>
61-
<BodyText>{t(`label:comingSoon`)}</BodyText>
61+
<BodyText>{t(`label:pyconkrDate`)}</BodyText>
6262
</Container>
6363
<Background />
6464
</>

frontend/data/constants/resources.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const Resources = {
1818

1919
PYCONKR_2014_IMG:
2020
'https://live.staticflickr.com/3912/14958407280_c7e9e6717e_z.jpg'
21-
}
21+
},
22+
pyconkrFacebook: 'https://www.facebook.com/pyconkorea',
23+
pyconkrTwitter: 'https://twitter.com/PyConKR'
2224
}
2325

2426
export default Resources

0 commit comments

Comments
 (0)