Skip to content

Commit

Permalink
Fix link fill text
Browse files Browse the repository at this point in the history
  • Loading branch information
sivert-io committed Nov 26, 2023
1 parent 5d7847c commit 1f2e2b2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions components/FeaturedCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,28 @@ export async function getStaticProps() {

export default function FeaturedCard({
post,
className = '',
className = "",
}: {
post: Post;
className?: string;
}) {
return (
<motion.div
variants={ArticleCardVariant}
className={`md:grid flex flex-col md:grid-cols-[2.13fr_1fr] w-full gap-4 md:gap-12 ${className}`}
className={`md:grid flex flex-col items-start justify-center md:grid-cols-[2.13fr_1fr] w-full gap-4 md:gap-12 ${className}`}
>
{post.image && (
<Link scroll={false} href={post.url} className="md:max-h-[420px] sm:max-h-72 max-h-52 flex">
<Link
scroll={false}
href={post.url}
className="md:max-h-[420px] sm:max-h-72 max-h-52 flex"
>
<div className="rounded-2xl border-2 p-1 border-base-300 flex">
<ImageWithFallback
quality={100}
width={1200}
heigth={512}
alt={post.imageAlt || 'A placeholder image'}
alt={post.imageAlt || "A placeholder image"}
className="object-cover rounded-xl"
imageName={post.image}
/>
Expand Down

1 comment on commit 1f2e2b2

@vercel
Copy link

@vercel vercel bot commented on 1f2e2b2 Nov 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.