feat: added calculator seo

This commit is contained in:
wonderlandpark 2021-03-27 12:39:14 +09:00
parent 907370fbe4
commit 5689c68fa6

View File

@ -7,6 +7,7 @@ import { ParsedUrlQuery } from 'node:querystring'
const Container = dynamic(() => import('@components/Container'))
const Input = dynamic(() => import('@components/Form/Input'))
const SEO = dynamic(() => import('@components/SEO'))
const Calculator:NextPage<CalculatorProps> = ({ query }) => {
const [ value, setValue ] = useState<{[perm: string]: boolean}>({})
@ -22,6 +23,7 @@ const Calculator:NextPage<CalculatorProps> = ({ query }) => {
}
return <Container paddingTop className='pb-10'>
<SEO title='봇 초대링크 생성기' description='디스코드 봇 초대링크를 간편하게 생성하세요' />
<h1 className='text-4xl font-bold mt-2 mb-4'> </h1>
<div className='text-2xl font-bold inline-flex items-center'>: {Object.keys(value).filter(el => value[el]).map(el => Number(el)).reduce((prev, curr) => prev | curr, 0)}
<span className='ml-2 text-lg font-semibold'>= { Object.keys(value).filter(el => value[el]).map(el => `0x${Number(el).toString(16)}`).join(' | ') }</span>