fix picture
This commit is contained in:
@@ -32,11 +32,11 @@ console.log(posts[0].frontmatter.image);
|
|||||||
<div class="grid md:grid-cols-2 gap-5 md:gap-10 items-center">
|
<div class="grid md:grid-cols-2 gap-5 md:gap-10 items-center">
|
||||||
<Picture
|
<Picture
|
||||||
src={post.frontmatter.image}
|
src={post.frontmatter.image}
|
||||||
widths={[400, 800]}
|
widths={[200, 400, 800]}
|
||||||
aspectRatio="16:9"
|
|
||||||
sizes="(max-width: 800px) 100vw, 800px"
|
sizes="(max-width: 800px) 100vw, 800px"
|
||||||
alt="descriptive text"
|
aspectRatio="16:9"
|
||||||
class="w-full rounded-md"
|
alt="Thumbnail"
|
||||||
|
class="w-full rounded-md aspect-video"
|
||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
<span class="text-blue-400 uppercase tracking-wider text-sm font-medium">
|
<span class="text-blue-400 uppercase tracking-wider text-sm font-medium">
|
||||||
|
|||||||
Reference in New Issue
Block a user