-
-
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.
* chore: install @giscus/react @giscus/react 패키지 설치. * feat: create Giscus.jsx component Giscus.jsx 컴포넌트 제작. * rename: move Giscus component from main to section Giscus 컴포넌트를 main에서 section으로 이동. * feat: create layouts/Section.jsx component layouts/Section.jsx 컴포넌트 제작. * feat: create app/docs/[...categories]/layout.jsx layout.jsx 제작.
- Loading branch information
1 parent
8247f82
commit d3e17b9
Showing
8 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,13 @@ | ||
import Section from '@/components/layouts/Section/Section'; | ||
import Giscus from '@/components/section/Giscus'; | ||
|
||
export default function Layout({ children }) { | ||
return ( | ||
<> | ||
{children} | ||
<Section> | ||
<Giscus /> | ||
</Section> | ||
</> | ||
); | ||
} |
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,5 @@ | ||
import styles from './Section.module.scss'; | ||
|
||
export default function Section({ children }) { | ||
return <section className={styles.section}>{children}</section>; | ||
} |
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,3 @@ | ||
.section { | ||
margin: 50px 0; | ||
} |
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,3 @@ | ||
import Section from './Section'; | ||
|
||
export default Section; |
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,24 @@ | ||
'use client'; | ||
|
||
import GiscusOriginal from '@giscus/react'; | ||
|
||
import { REPOSITORY } from '@/constants/github'; | ||
|
||
export default function Giscus() { | ||
return ( | ||
<GiscusOriginal | ||
repo={REPOSITORY.fullName} | ||
repoId="R_kgDOLa_QgA" | ||
category="comments" | ||
categoryId="DIC_kwDOLa_QgM4ChivI" | ||
mapping="pathname" | ||
strict="0" | ||
reactionsEnabled="1" | ||
emitMetadata="0" | ||
inputPosition="top" | ||
theme="preferred_color_scheme" | ||
lang="ko" | ||
loading="lazy" | ||
/> | ||
); | ||
} |
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,3 @@ | ||
import Giscus from './Giscus'; | ||
|
||
export default Giscus; |