Merge branch 'main' into 3.7.2

This commit is contained in:
tangly1024
2023-01-01 18:57:39 +08:00
committed by GitHub
6 changed files with 22 additions and 11 deletions

View File

@@ -31,8 +31,8 @@ const SideBar = (props) => {
return (
<div id='side-bar' className=''>
<div className="h-48 w-full bg-indigo-700">
<div className='mx-5 pt-6'>
<div className="mh-48 w-full bg-indigo-700">
<div className='mx-5 pt-6 pb-2'>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src={siteInfo?.icon} className='cursor-pointer rounded-full' width={80} alt={BLOG.AUTHOR} />
<div className='text-white text-xl my-1'>{siteInfo?.title}</div>
@@ -45,7 +45,7 @@ const SideBar = (props) => {
const selected = (router.pathname === link.to) || (router.asPath === link.to)
return <Link key={link.to} title={link.to} href={link.to} >
<a target={link.to.indexOf('http') === 0 ? '_blank' : '_self'}
className={'py-2 px-5 duration-300 text-base justify-between hover:bg-gray-700 hover:text-white hover:shadow-lg cursor-pointer font-light flex flex-nowrap items-center ' +
className={'py-2 px-5 duration-300 text-base justify-between hover:bg-gray-700 hover:text-white hover:shadow-lg cursor-pointer font-light flex flex-nowrap items-center ' +
(selected ? 'bg-indigo-500 text-white ' : ' text-black dark:text-white ')} >
<div className='my-auto items-center justify-between flex '>
<i className={`${link.icon} w-4 ml-3 mr-6 text-center`} />