Skip to content

Commit f49a2a9

Browse files
authored
adjusting the blog picture size (#1477)
* adjusting the blog picture size * Adjustments according to review
1 parent 72c8dac commit f49a2a9

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

pages/blog/index.page.tsx

+10-6
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,19 @@ export default function StaticMarkdownPage({
246246

247247
return (
248248
<section key={blogPost.slug}>
249-
<div className='sm:h-[498px] flex border rounded-lg shadow-sm hover:shadow-lg transition-all overflow-hidden dark:border-slate-500'>
249+
<div className='h-[510px] flex border rounded-lg shadow-sm hover:shadow-lg transition-all overflow-hidden dark:border-slate-500'>
250250
<Link
251251
href={`/blog/posts/${blogPost.slug}`}
252252
className='inline-flex flex-col flex-1 w-full'
253253
>
254-
<div
255-
className='bg-slate-50 h-[160px] w-full self-stretch mr-3 bg-cover bg-center'
256-
style={{ backgroundImage: `url(${frontmatter.cover})` }}
257-
/>
254+
<div className=' h-max-[200px] w-full object-cover'>
255+
<div
256+
className='bg-slate-50 h-[160px] w-full self-stretch mr-3 bg-cover bg-center'
257+
style={{
258+
backgroundImage: `url(${frontmatter.cover})`,
259+
}}
260+
/>
261+
</div>
258262
<div className=' p-4 flex flex-col flex-1 justify-between'>
259263
<div>
260264
<div>
@@ -277,7 +281,7 @@ export default function StaticMarkdownPage({
277281
{frontmatter.type || 'Unknown Type'}
278282
</div>
279283
</div>
280-
<div className='text-lg font-semibold'>
284+
<div className='text-lg h-[80px] font-semibold'>
281285
{frontmatter.title}
282286
</div>
283287

0 commit comments

Comments
 (0)