From 0af48f1eb637ea5fab1f6a8d825cc358d83af732 Mon Sep 17 00:00:00 2001 From: SKINMAKER Date: Sun, 9 Jul 2023 13:10:23 +0900 Subject: [PATCH] feat: add community rule (#618) * feat: add community rule * fix: rename guideline to community rule --- pages/community-rule.tsx | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/community-rule.tsx 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 +