Currently, I am utilizing the Image component provided by Next.js, which requires setting specific width and height values. To address this, I am incorporating Tailwind CSS utility classes to establish the desired dimensions.
https://i.sstatic.net/A28fB.jpg
<Image
src={imageSrc}
alt={name}
className="object-cover object-center"
layout="fill"
/>
The effective HTML and CSS code goes as follows:
https://i.sstatic.net/lRTf9.jpg
<img
className="w-auto h-6 lg:block"
src="/img/logo-dark.png"
alt="nftHODL.club Logo"
/>