upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
Showing only changes of commit 5d77b1fc24 - Show all commits

View File

@ -3,9 +3,23 @@ import Link from './Link'
const Card = ({ title, description, imgSrc, href }) => ( const Card = ({ title, description, imgSrc, href }) => (
<div className="p-4 md:w-1/2 md" style={{ maxWidth: '544px' }}> <div className="p-4 md:w-1/2 md" style={{ maxWidth: '544px' }}>
<div className="h-full overflow-hidden border-2 border-gray-200 rounded-md border-opacity-60 dark:border-gray-700"> <div
{href ? ( className={`${
<Link href={href} aria-label={`Link to ${title}`}> imgSrc && 'h-full'
} overflow-hidden border-2 border-gray-200 rounded-md border-opacity-60 dark:border-gray-700`}
>
{imgSrc &&
(href ? (
<Link href={href} aria-label={`Link to ${title}`}>
<Image
alt={title}
src={imgSrc}
className="object-cover object-center lg:h-48 md:h-36"
width={544}
height={306}
/>
</Link>
) : (
<Image <Image
alt={title} alt={title}
src={imgSrc} src={imgSrc}
@ -13,16 +27,7 @@ const Card = ({ title, description, imgSrc, href }) => (
width={544} width={544}
height={306} height={306}
/> />
</Link> ))}
) : (
<Image
alt={title}
src={imgSrc}
className="object-cover object-center lg:h-48 md:h-36"
width={544}
height={306}
/>
)}
<div className="p-6"> <div className="p-6">
<h2 className="mb-3 text-2xl font-bold leading-8 tracking-tight"> <h2 className="mb-3 text-2xl font-bold leading-8 tracking-tight">
{href ? ( {href ? (