Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash Smith committed Sep 11, 2023
1 parent faa32d5 commit 26ae14c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
29 changes: 14 additions & 15 deletions src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,24 @@ import { formatDate } from '~/utils'
export default function Card({ post }: { post: Post }) {
return (
<div className="bg-white rounded-lg overflow-hidden ring-1 ring-slate-900/5 dark:bg-slate-800 dark:highlight-white/5 dark:ring-0 flex p-8 mb-5">

<div className="relative z-10 overflow-hidden flex-none -m-8 mr-8 w-64 h-auto bg-slate-100">
{post.mainImage && (
<Image
className="absolute max-w-none object-scale-down object-center w-full"
src={urlForImage(post.mainImage).width(300).height(200).url()}
width={300}
height={200}
alt=""
/>
)}
<div className="relative z-10 overflow-hidden flex-none -m-8 mr-8 w-64 h-auto bg-slate-100">
{post.mainImage && (
<Image
className="absolute max-w-none object-scale-down object-center w-full"
src={urlForImage(post.mainImage).width(300).height(200).url()}
width={300}
height={200}
alt=""
/>
)}
</div>
<div className="min-w-0 py-0.5 pr-5">
<h3 className="text-xl font-bold leading-loose text-gray-900 sm:text-2xl mb-2">
<a href={`/post/${post.slug.current}`}>
{post.title}
</a>
<a href={`/post/${post.slug.current}`}>{post.title}</a>
</h3>
<p className="text-normal leading-loose text-gray-800">{post.excerpt}</p>
<p className="text-normal leading-loose text-gray-800">
{post.excerpt}
</p>
<p className="card__date">{formatDate(post._createdAt)}</p>
</div>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/pages/post/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export default function ProjectSlugRoute(
{children}
</a>
),

},
block: {
blockquote: ({ children }) => (
Expand All @@ -99,7 +98,9 @@ export default function ProjectSlugRoute(
<h1 className="text-4xl mb-2 font-extrabold">{children}</h1>
),
h2: ({ children }) => (
<h2 className="text-2xl my-2 mt-4 font-extrabold">{children}</h2>
<h2 className="text-2xl my-2 mt-4 font-extrabold">
{children}
</h2>
),
},
types: {
Expand Down

0 comments on commit 26ae14c

Please sign in to comment.