-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature/BAR-146] 헤더, 푸터 링크 및 기능 처리 (#59)
* feat: api 추가 * feat: ROUTE 객체 추가 * feat: 미들웨어에서의 처리 추가 * feat: react-notion-x 설치 * feat: Layout 내부에서 버튼 처리 * feat: 약관 페이지 추가 * feat: pathname 변경시 모달 제거 * feat: 로그아웃및 프로필네임 설정 --------- Co-authored-by: wonjin-dev <[email protected]>
- Loading branch information
1 parent
cb9ca0f
commit 1a197b2
Showing
24 changed files
with
780 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import Layout from '@components/Layout'; | ||
|
||
const Intro = () => { | ||
return <Layout headerType="intro" isShowFooter></Layout>; | ||
return <Layout isFooter></Layout>; | ||
}; | ||
|
||
export default Intro; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { NotionRenderer } from 'react-notion-x'; | ||
import { NotionAPI } from 'notion-client'; | ||
import { type ExtendedRecordMap } from 'notion-types'; | ||
|
||
import Layout from '@components/Layout'; | ||
|
||
interface PrivacyProps { | ||
blockMap: ExtendedRecordMap; | ||
} | ||
|
||
const Privacy = ({ blockMap }: PrivacyProps) => { | ||
return ( | ||
<Layout> | ||
<NotionRenderer | ||
recordMap={blockMap} | ||
fullPage | ||
darkMode={false} | ||
disableHeader | ||
/> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default Privacy; | ||
|
||
export const getStaticProps = async () => { | ||
const notion = new NotionAPI(); | ||
const recordMap = await notion.getPage('045e6bc33a544855a4a18c839ff746cc'); | ||
|
||
return { | ||
props: { | ||
blockMap: recordMap, | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { NotionRenderer } from 'react-notion-x'; | ||
import { NotionAPI } from 'notion-client'; | ||
import { type ExtendedRecordMap } from 'notion-types'; | ||
|
||
import Layout from '@components/Layout'; | ||
|
||
interface UseProps { | ||
blockMap: ExtendedRecordMap; | ||
} | ||
|
||
const Use = ({ blockMap }: UseProps) => { | ||
return ( | ||
<Layout> | ||
<NotionRenderer | ||
recordMap={blockMap} | ||
fullPage | ||
darkMode={false} | ||
disableHeader | ||
/> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default Use; | ||
|
||
export const getStaticProps = async () => { | ||
const notion = new NotionAPI(); | ||
const recordMap = await notion.getPage('50e74a36bd484d888c975f111488a6df'); | ||
|
||
return { | ||
props: { | ||
blockMap: recordMap, | ||
}, | ||
}; | ||
}; |
Oops, something went wrong.