diff --git a/pages/debug.tsx b/pages/debug.tsx new file mode 100644 index 0000000..c482bdb --- /dev/null +++ b/pages/debug.tsx @@ -0,0 +1,88 @@ +import { useTheme } from 'next-themes' +import { useFormik } from 'formik' + +import Container from '../components/Container' +import Divider from '../components/Divider' +import Segment from '../components/Segment' +import Package from '../package.json' +import { checkBrowser } from '../utils/Tools' +import MarkdownView from 'react-showdown' +import sanitizeHtml from 'sanitize-html' + +const ClientInfo = ( ):JSX.Element => { + const formik = useFormik({ + initialValues: { + markdown: `
+

Hello, World

+
+X키를 눌러 Joy를 표하세요. +\`\`\` +코드 블럭 +\`\`\` + +*도* **레** ***미*** __***파***__ + +[트위터](https://twitter.com/koreanbots) +https://github.com/koreanbots +` + }, + onSubmit: ()=>{ alert('Pong') } + }) + const { theme, systemTheme } = useTheme() + return +

개발자모드

+

정보들

+ +
+

빌드정보

+ + +

클라이언트 정보

+

브라우저

+ {checkBrowser()} +

User-Agent

+
{navigator.userAgent}
+

Darkmode

+ + + + + + + + + + + + + + + +
ThemeSystem CachedSystem
{theme}{localStorage.detected}{systemTheme}
+
+
+ +

테스트

+

마크다운

+ +
+
+