diff --git a/pages/community-rule.tsx b/pages/community-rule.tsx new file mode 100644 index 0000000..165c090 --- /dev/null +++ b/pages/community-rule.tsx @@ -0,0 +1,37 @@ +import { GetStaticProps, NextPage } from 'next' +import dynamic from 'next/dynamic' + +import { SpecialEndPoints } from '@utils/Constants' + + +const Docs = dynamic(()=> import('@components/Docs')) +const Markdown = dynamic(() => import('@components/Markdown')) + + +const CommunityRule: NextPage = ({ content }) => { + return ( + + + + ) +} + +interface CommunityRuleProps { + content: string +} + +export const getStaticProps: GetStaticProps = async () => { + const res = await fetch(SpecialEndPoints.Github.Content('koreanbots', 'terms', 'community-rule.md')) + const json = await res.json() + return { + props: { + content: Buffer.from(json.content, 'base64').toString('utf-8') + } + } +} + +export default CommunityRule +