Single svg as background
- Add svg in nextjs image component.
- In image component add negative z index to make it background
- In image component use object-cover, object-contain etc object property.
- Give image component widht and height to use object-cover
<Image alt='background' src={bg2} className='absolute top-0 -z-10 h-full w-full object-cover' />