mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
magzine seo
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import LazyImage from '@/components/LazyImage'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
import { useRouter } from 'next/router'
|
||||
|
||||
/**
|
||||
* 用户信息卡
|
||||
@@ -9,6 +10,7 @@ import { useGlobal } from '@/lib/global'
|
||||
*/
|
||||
const InfoCard = props => {
|
||||
const { siteInfo } = useGlobal()
|
||||
const router = useRouter()
|
||||
|
||||
return (
|
||||
<div id='info-card'>
|
||||
@@ -16,7 +18,7 @@ const InfoCard = props => {
|
||||
<div
|
||||
className='hover:scale-105 transform duration-200 cursor-pointer flex justify-start'
|
||||
onClick={() => {
|
||||
Router.push('/about')
|
||||
router.push('/about')
|
||||
}}>
|
||||
<LazyImage
|
||||
src={siteInfo?.icon}
|
||||
|
||||
@@ -2,7 +2,6 @@ import { siteConfig } from '@/lib/config'
|
||||
import Link from 'next/link'
|
||||
|
||||
export default function LogoBar(props) {
|
||||
const { siteInfo } = props
|
||||
return (
|
||||
<div id='top-wrapper' className='w-full flex items-center '>
|
||||
<Link
|
||||
|
||||
@@ -46,6 +46,7 @@ const PostGroupLatest = props => {
|
||||
className={'my-3 flex'}>
|
||||
<div className='w-20 h-14 overflow-hidden relative'>
|
||||
<LazyImage
|
||||
alt={post?.title}
|
||||
src={`${headerImage}`}
|
||||
className='object-cover w-full h-full'
|
||||
/>
|
||||
|
||||
@@ -25,6 +25,7 @@ const PostItemCard = ({ post }) => {
|
||||
}>
|
||||
<div className='w-full h-40 aspect-video overflow-hidden mb-2'>
|
||||
<LazyImage
|
||||
alt={post?.title}
|
||||
src={cover}
|
||||
style={cover ? {} : { height: '0px' }}
|
||||
className='w-full h-40 aspect-video object-cover'
|
||||
|
||||
@@ -33,6 +33,8 @@ const PostItemCardTop = ({ post, showSummary }) => {
|
||||
}>
|
||||
<div className='w-full max-h-80 object-cover overflow-hidden mb-2'>
|
||||
<LazyImage
|
||||
priority
|
||||
alt={post?.title}
|
||||
src={post.pageCoverThumbnail}
|
||||
style={post.pageCoverThumbnail ? {} : { height: '0px' }}
|
||||
className='w-full max-h-80 object-cover hover:scale-125 duration-150'
|
||||
|
||||
@@ -60,7 +60,7 @@ const PostItemCardWide = ({ post, showSummary }) => {
|
||||
|
||||
<div
|
||||
className={
|
||||
'flex items-center justify-start flex-wrap space-x-3 text-gray-400'
|
||||
'flex items-center justify-start flex-wrap space-x-3 text-gray-500'
|
||||
}>
|
||||
{/* {siteConfig('MAGZINE_POST_LIST_TAG') &&
|
||||
post?.tagItems?.map(tag => (
|
||||
@@ -73,6 +73,7 @@ const PostItemCardWide = ({ post, showSummary }) => {
|
||||
{/* 卡牌右侧图片 */}
|
||||
<div className='w-40 h-40 object-cover overflow-hidden mb-2'>
|
||||
<LazyImage
|
||||
alt={post?.title}
|
||||
src={post.pageCoverThumbnail}
|
||||
style={post.pageCoverThumbnail ? {} : { height: '0px' }}
|
||||
className='w-40 h-40 object-cover hover:scale-125 duration-150'
|
||||
|
||||
Reference in New Issue
Block a user