Repalce img with Image tags
This commit is contained in:
parent
c7862b8fe7
commit
7c1d39950b
2 changed files with 7 additions and 4 deletions
|
@ -1,8 +1,10 @@
|
|||
import Image from "next/image";
|
||||
|
||||
function FogImages() {
|
||||
return <>
|
||||
<img className='fog left' src={`/fog/fog2.png`} alt={`fog1.png`} />
|
||||
<img className='fog right' src={`/fog/fog2.png`} alt={`fog1.png`} />
|
||||
<img className='fog middle' src={`/fog/fog4.png`} alt={`fog4.png`} />
|
||||
<Image className='fog left' src={`/fog/fog2.png`} alt={`fog1.png`} />
|
||||
<Image className='fog right' src={`/fog/fog2.png`} alt={`fog1.png`} />
|
||||
<Image className='fog middle' src={`/fog/fog4.png`} alt={`fog4.png`} />
|
||||
</>
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import Image from 'next/image';
|
||||
import { CSSProperties } from 'react'
|
||||
|
||||
function Ships() {
|
||||
|
@ -10,7 +11,7 @@ function Ships() {
|
|||
return <>
|
||||
{shipIndexes.map(i =>
|
||||
<div key={i} className={`ship s${i}`} style={{'--x': i+3} as CSSProperties}>
|
||||
<img src={`/svgs/${i}.svg`} alt={`${i}.svg`}/>
|
||||
<Image src={`/svgs/${i}.svg`} alt={`${i}.svg`}/>
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue