mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 15:10:23 +00:00
pic without next/Image
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import Image from 'next/image'
|
||||
// import Image from 'next/image'
|
||||
import { useEffect, useState } from 'react'
|
||||
import Typed from 'typed.js'
|
||||
import CONFIG_HEXO from '../config_hexo'
|
||||
@@ -59,11 +59,13 @@ const Header = props => {
|
||||
className="w-full h-screen bg-black text-white relative"
|
||||
>
|
||||
<div className='w-full h-full'>
|
||||
<Image src={siteInfo.pageCover} fill
|
||||
{/* <Image src={siteInfo.pageCover} fill
|
||||
style={{ objectFit: 'cover' }}
|
||||
className='opacity-70'
|
||||
placeholder='blur'
|
||||
blurDataURL='/bg_image.jpg' />
|
||||
blurDataURL='/bg_image.jpg' /> */}
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img src={siteInfo.pageCover} className='h-full w-full object-cover opacity-70 ' />
|
||||
</div>
|
||||
|
||||
<div className="absolute bottom-0 flex flex-col h-full items-center justify-center w-full ">
|
||||
|
||||
Reference in New Issue
Block a user