header-img-position

This commit is contained in:
tangly1024
2023-03-12 22:29:00 +08:00
parent 6cdf9874ba
commit b9144b8df8
2 changed files with 3 additions and 2 deletions

View File

@@ -56,9 +56,9 @@ const Header = props => {
return (
<header
id="header"
className="md:bg-fixed w-full h-screen bg-black text-white relative"
className="w-full h-screen bg-black text-white relative"
>
<div className='w-full h-full fixed'>
<div className='w-full h-full'>
<Image src={siteInfo.pageCover} fill
style={{ objectFit: 'cover' }}
className='opacity-70'

View File

@@ -96,6 +96,7 @@ const Header = props => {
placeholder='blur'
blurDataURL='/bg_image.jpg' />
</div>
<div className="absolute flex flex-col h-full items-center justify-center w-full ">
<div className='text-4xl md:text-5xl text-white shadow-text'>{siteInfo?.title}</div>
<div className='mt-2 h-12 items-center text-center shadow-text text-white text-lg'>