chore: made some changes

This commit is contained in:
원더 2021-01-29 21:56:20 +09:00
parent ba5907d10b
commit 94e4563179

View File

@ -3,7 +3,7 @@ import dynamic from 'next/dynamic'
import { BotList } from '@types'
import * as Query from '@utils/Query'
import { cats } from '@utils/Constants'
import { categories, categoryIcon } from '@utils/Constants'
const Advertisement = dynamic(()=> import('@components/Advertisement'))
const Container = dynamic(()=> import('@components/Container'))
@ -22,9 +22,16 @@ const Index: NextPage<IndexProps> = ({ votes, newBots, trusted }) => {
</h1>
<Search />
<h2 className='text-xl font-bold mt-10 mb-1 text-gray-100'> </h2>
<div className='flex flex-wrap '>
{ cats.map(t=> <Tag key={t} text={t} dark href={`/categories/${t}`} />) }
<div className='flex flex-wrap mt-5'>
<Tag key='list' text={<>
<i className='fas fa-heart text-red-600'/>
</>} dark bigger href='/list/votes' />
{ categories.slice(0, 5).map(t=> <Tag key={t} text={<>
<i className={categoryIcon[t]} /> {t}
</>} dark bigger href={`/categories/${t}`} />) }
<Tag key='tag' text={<>
<i className='fas fa-tag'/>
</>} dark bigger href='/categories' />
</div>
</Container>
</div>