mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
25 lines
772 B
JavaScript
25 lines
772 B
JavaScript
import BLOG from '@/blog.config'
|
|
import Image from 'next/image'
|
|
import Router from 'next/router'
|
|
import React from 'react'
|
|
|
|
const InfoCard = ({ postCount }) => {
|
|
return <>
|
|
<div className='flex flex-col items-center justify-center cursor-pointer' onClick={ () => { Router.push('/') }}>
|
|
<div className='hover:rotate-45 hover:scale-125 transform duration-200 mx-auto'>
|
|
<Image
|
|
alt={BLOG.title}
|
|
width={120}
|
|
height={120}
|
|
loading='lazy'
|
|
src='/avatar.svg'
|
|
className='rounded-full border-black'
|
|
/>
|
|
</div>
|
|
<div className='text-3xl font-serif dark:text-white mx-auto py-4 hover:scale-105 transform duration-200'>{BLOG.title}</div>
|
|
</div>
|
|
</>
|
|
}
|
|
|
|
export default InfoCard
|