Skip to content

Commit ffb6cdd

Browse files
committed
개인 후원자 목록 라우트 생성
1 parent 384c8b1 commit ffb6cdd

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

frontend/data/enums/PageName.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export enum PageName {
1212
CfpGuide = 'CfpGuide',
1313
Sponsor = 'Sponsor',
1414
SponsorList = 'SponsorList',
15+
SponsorPatrons = 'SponsorPatrons',
1516
SponsorProspectus = 'SponsorProspectus',
1617
SponsorJoin = 'SponsorJoin',
1718
SponsorBenefit = 'SponsorBenefit',

frontend/locales/en/pageTitle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default {
1414
[PageName.CfpGuide]: 'How to Submit a Proposal',
1515
[PageName.Sponsor]: 'Sponsor',
1616
[PageName.SponsorList]: 'Sponsors',
17+
[PageName.SponsorPatrons]: 'Patrons',
1718
[PageName.SponsorProspectus]: 'Prospectus',
1819
[PageName.SponsorJoin]: 'Join as Sponsor',
1920
[PageName.SponsorBenefit]: 'Benefit',

frontend/locales/ko/pageTitle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default {
1414
[PageName.CfpGuide]: '발표안 작성 가이드',
1515
[PageName.Sponsor]: '후원하기',
1616
[PageName.SponsorList]: '후원사',
17+
[PageName.SponsorPatrons]: '개인 후원자',
1718
[PageName.SponsorProspectus]: '후원사 안내',
1819
[PageName.SponsorJoin]: '후원사로 참여하기',
1920
[PageName.SponsorBenefit]: '후원사 혜택 설명',

frontend/pages/sponsor/patrons.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import React from 'react'
2+
import type { NextPage, GetServerSideProps } from 'next'
3+
import { useTranslation } from 'react-i18next'
4+
import { PageName } from '../../data/enums/PageName'
5+
import PageTitle from '../../components/core/PageTitle'
6+
import { PageProps } from '../../interfaces/PageProps'
7+
8+
const Patrons: NextPage = (props: PageProps) => {
9+
const { t } = useTranslation()
10+
11+
return (
12+
<div>
13+
<PageTitle title={props.pageName} />
14+
{t('label:preparing')}
15+
</div>
16+
)
17+
}
18+
19+
export const getServerSideProps: GetServerSideProps = async () => {
20+
return {
21+
props: {
22+
title: PageName.SponsorPatrons
23+
}
24+
}
25+
}
26+
27+
export default Patrons

frontend/routes/routes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ export const routes: RouteType[] = [
6161
path: '/sponsor/list',
6262
name: PageName.SponsorList
6363
},
64+
{
65+
path: '/sponsor/patron',
66+
name: PageName.SponsorPatrons
67+
},
6468
{
6569
path: '/sponsor/prospectus',
6670
name: PageName.SponsorProspectus

0 commit comments

Comments
 (0)