Skip to content

Commit

Permalink
Final changes to members
Browse files Browse the repository at this point in the history
  • Loading branch information
divyansh-4 committed Jan 31, 2025
1 parent ca0ec63 commit 439e00f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/components/Blog/BlogPreview.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ const authorName = authorFName + " " + authorLName;
class="flex flex-col md:flex-row md:min-h-[34vh] shadow-[0px_2px_10px_4px_rgba(0,0,0,0.1)] rounded-2xl cursor-pointer"
>
<p class="p-5 md:max-w-xs lg:max-w-sm bg-[#767696] rounded-t-2xl md:rounded-tr-none md:rounded-l-2xl">
{blog.previewImg.asset.url ? (
{blog.previewImg?.asset?.url ? (
<img
src={blog.previewImg.asset.url}
src={blog.previewImg?.asset?.url}
alt={blog.previewImg.alt}
class="w-full object-cover rounded-t-2xl md:rounded-tr-none md:rounded-l-2xl"
/>
) : (
<img
src={blog.coverImg.asset.url}
alt={blog.coverImg.alt}
src={blog.coverImg?.asset?.url}
alt={blog.coverImg?.alt}
class="w-full object-cover rounded-2xl md:rounded-2xl"
/>
)}
Expand Down

0 comments on commit 439e00f

Please sign in to comment.