Hiya,
I am customizing for the “Next.js i18n blog” repository.
But I am not able to make the image smaller[1]. Also, I rounded the image on the home by editing cover-image.js2 but it is not effective on the post. Would you please help me to find where I should fix ?
[1]: imges of home and post.
import { Image } from 'react-datocms'
import cn from 'classnames'
import Link from 'next/link'
import { useRouter } from "next/router";
export default function CoverImage({ title, responsiveImage, slug }) {
const router = useRouter();
console.log(router)
console.log(router.pathname)
const image = (
<Image
data={{
...responsiveImage,
alt: `Cover Image for ${title}`,
}}
className={cn('shadow-small', {
'rounded-3xl hover:shadow-medium transition-shadow duration-200': slug,
})}
/>
)
return (
<div className="rounded-3xl -mx-5 sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
</Link>
) : (
image
)}
</div>
)
}