mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-19 07:26:50 +00:00
feature:
去掉tidio,优化性能; 卡牌图标微调; 侧边栏分类图标样式; 个人信息卡牌图片懒加载。
This commit is contained in:
@@ -4,7 +4,7 @@ import Link from 'next/link'
|
||||
import React from 'react'
|
||||
import Image from 'next/image'
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import { faFolderOpen } from '@fortawesome/free-solid-svg-icons'
|
||||
import { faFolder } from '@fortawesome/free-solid-svg-icons'
|
||||
|
||||
const BlogPostCard = ({ post, tags }) => {
|
||||
return (
|
||||
@@ -18,7 +18,7 @@ const BlogPostCard = ({ post, tags }) => {
|
||||
<div>
|
||||
<Link href={`/category/${post.category}`} passHref>
|
||||
<span className='cursor-pointer dark:text-gray-200 text-gray-400 text-sm py-1.5 mr-1 hover:underline hover:text-blue-500 transform'>
|
||||
<FontAwesomeIcon icon={faFolderOpen} className=' mr-1' />{post.category}
|
||||
<FontAwesomeIcon icon={faFolder} className='mr-1' />{post.category}
|
||||
</span>
|
||||
</Link>
|
||||
<span className='mx-1 dark:text-gray-400'>|</span>
|
||||
|
||||
@@ -10,7 +10,7 @@ const CategoryGroup = ({ currentCategory, categories }) => {
|
||||
const selected = currentCategory === category
|
||||
return <Link key={category} href={`/category/${category}`} passHref>
|
||||
<div className={(selected ? 'bg-gray-200 dark:bg-black dark:text-white text-black ' : 'dark:text-gray-400 text-gray-500 ') + ' hover:text-black dark:hover:text-white dark:hover:bg-gray-600 px-5 cursor-pointer py-2 hover:bg-gray-100'}>
|
||||
<FontAwesomeIcon icon={selected ? faFolderOpen : faFolder} className='mr-2 text-gray-400'/>{category}({categories[category]})</div>
|
||||
<FontAwesomeIcon icon={selected ? faFolderOpen : faFolder} className={`${selected ? 'text-black dark:text-white' : 'text-gray-400'} mr-2 `}/>{category}({categories[category]})</div>
|
||||
</Link>
|
||||
})}
|
||||
</div>
|
||||
|
||||
@@ -12,6 +12,7 @@ const InfoCard = () => {
|
||||
alt={BLOG.author}
|
||||
width={100}
|
||||
height={100}
|
||||
loading='lazy'
|
||||
src='/avatar.svg'
|
||||
className='rounded-full border-black'
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user