mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
feat: added categories page
This commit is contained in:
parent
4ab58a2327
commit
ba5907d10b
25
pages/categories/index.tsx
Normal file
25
pages/categories/index.tsx
Normal file
@ -0,0 +1,25 @@
|
||||
import { NextPage } from 'next'
|
||||
import dynamic from 'next/dynamic'
|
||||
|
||||
import { categories, categoryIcon } from '@utils/Constants'
|
||||
|
||||
const Container = dynamic(() => import('@components/Container'))
|
||||
const Tag = dynamic(() => import('@components/Tag'))
|
||||
const Segment = dynamic(() => import('@components/Segment'))
|
||||
|
||||
const Categories:NextPage = () => {
|
||||
return <Container paddingTop>
|
||||
<h1 className='text-2xl font-bold mb-5'>전체 카테고리</h1>
|
||||
<Segment>
|
||||
<div className='text-center flex flex-wrap'>
|
||||
{
|
||||
categories.map(t => <Tag key={t} text={<>
|
||||
<i className={categoryIcon[t]} /> {t}
|
||||
</>} href={`/categories/${t}`} dark bigger /> )
|
||||
}
|
||||
</div>
|
||||
</Segment>
|
||||
</Container>
|
||||
}
|
||||
|
||||
export default Categories
|
||||
Loading…
x
Reference in New Issue
Block a user