Skip to content

Commit

Permalink
theme-game load bg cover
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Apr 1, 2024
1 parent de2fe3b commit e4dbf91
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions themes/game/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,18 +377,18 @@ const LayoutSlug = props => {
<div className='z-20 absolute bg-black bg-opacity-75 w-full h-full flex flex-col gap-4 justify-center items-center'>
<h2 className='text-3xl text-white flex gap-2 items-center'>
<i className='fas fa-spinner animate-spin'></i>
{siteConfig('TITLE')}
{siteInfo.title || siteConfig('TITLE')}
</h2>
<h3 className='text-xl text-white'>
{siteConfig('DESCRIPTION')}
{siteInfo.description || siteConfig('DESCRIPTION')}
</h3>
</div>

{/* 游戏封面图 */}
{game?.img && (
{game?.pageCoverThumbnail && (
<img
src={game?.img}
className='w-full h-full blur-md absolute top-0 left-0 z-0'
src={game?.pageCoverThumbnail}
className='w-full h-full object-cover blur-md absolute top-0 left-0 z-0'
/>
)}
</div>
Expand Down

0 comments on commit e4dbf91

Please sign in to comment.