feature:

新增标签汇总页
This commit is contained in:
tangly1024
2021-11-11 17:01:17 +08:00
parent 635735c4e5
commit fcb4409af8
9 changed files with 71 additions and 22 deletions

View File

@@ -2,7 +2,7 @@ import Link from 'next/link'
const TagItemMini = ({ tag, selected = false, count }) => {
return <Link key={tag} href={selected ? '/' : `/tag/${encodeURIComponent(tag)}`}>
<div className={`cursor-pointer inline-block border rounded hover:bg-gray-300 duration-200
<div className={`cursor-pointer inline-block border rounded hover:bg-gray-300
mr-1 my-1 p-1 font-medium font-light text-xs whitespace-nowrap dark:text-gray-300 dark:hover:bg-gray-500
${selected
? 'text-white bg-black dark:hover:bg-gray-900 dark:bg-black dark:border-gray-800'