From d259a88c02b1ab75a0f91448e1323b349e91f89d Mon Sep 17 00:00:00 2001 From: Philippe Loctaux
Date: Sat, 3 Jun 2023 01:10:04 +0200 Subject: [PATCH] experience-card: force image breakpoint at 2xl, im tired of this shit --- src/components/experience-card.astro | 16 +++------------- src/components/projects.astro | 4 ++-- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/components/experience-card.astro b/src/components/experience-card.astro index 69d0d5a..a4a3dbd 100644 --- a/src/components/experience-card.astro +++ b/src/components/experience-card.astro @@ -8,7 +8,7 @@ interface Props { title: string; link?: { label: string; uri: string }; notAvailable?: boolean; - image?: { uri: string; breakpoint: string }; + image?: string; tech?: string[]; } const { @@ -28,21 +28,11 @@ const { const logoCss = `h-16 w-16 rounded-xl mr-4 ${ logoTransparentBackground === true ? "p-2 bg-white" : "" }`; - -// Card behavior with and without image -const cardCss = `${ - image - ? `${image.breakpoint}:flex ${image.breakpoint}:flex-row-reverse items-stretch justify-between` - : "" -} w-full rounded-2xl ${backgroundColor}`; - -// Image behavior -const imageCss = `flex ${image?.breakpoint}:w-1/2 grow ${image?.breakpoint}:rounded-tl-none ${image?.breakpoint}:rounded-r-2xl rounded-t-2xl object-cover`; --- -
canvas.place is a shared place to express creativity.