diff --git a/public/assets/cs/decor/stories/joe-miles.jpg b/public/assets/cs/decor/stories/joe-miles.jpg new file mode 100644 index 0000000000..7810bf4d8d Binary files /dev/null and b/public/assets/cs/decor/stories/joe-miles.jpg differ diff --git a/public/assets/cs/decor/stories/lella-halloum.png b/public/assets/cs/decor/stories/lella-halloum.png deleted file mode 100644 index 5605396767..0000000000 Binary files a/public/assets/cs/decor/stories/lella-halloum.png and /dev/null differ diff --git a/public/assets/cs/decor/stories/matt-arnmor.png b/public/assets/cs/decor/stories/matt-arnmor.png new file mode 100644 index 0000000000..422c36bb71 Binary files /dev/null and b/public/assets/cs/decor/stories/matt-arnmor.png differ diff --git a/public/assets/cs/decor/stories/max-fordham.png b/public/assets/cs/decor/stories/max-fordham.png deleted file mode 100644 index 4a7755e8a4..0000000000 Binary files a/public/assets/cs/decor/stories/max-fordham.png and /dev/null differ diff --git a/public/assets/cs/decor/stories/meghna-asthana.png b/public/assets/cs/decor/stories/meghna-asthana.png deleted file mode 100644 index 97da04a9cc..0000000000 Binary files a/public/assets/cs/decor/stories/meghna-asthana.png and /dev/null differ diff --git a/src/app/components/elements/cards/AdaCard.tsx b/src/app/components/elements/cards/AdaCard.tsx index 6b61305057..851cb1c319 100644 --- a/src/app/components/elements/cards/AdaCard.tsx +++ b/src/app/components/elements/cards/AdaCard.tsx @@ -25,7 +25,9 @@ export const AdaCard = ({card, ...props}: AdaCardProps) => { const {title, image, bodyText, clickUrl, buttonText, buttonStyle, buttonAltText, disabled} = card; return
- {image && } + {image &&
+ +
}

{title}

diff --git a/src/app/components/pages/StudentResources.tsx b/src/app/components/pages/StudentResources.tsx index 9f3cfe7804..e5d7844cb3 100644 --- a/src/app/components/pages/StudentResources.tsx +++ b/src/app/components/pages/StudentResources.tsx @@ -175,25 +175,18 @@ export const StudentResources = () => { -
diff --git a/src/scss/cs/cards.scss b/src/scss/cs/cards.scss index 5bf23e15f9..171279957c 100644 --- a/src/scss/cs/cards.scss +++ b/src/scss/cs/cards.scss @@ -32,24 +32,29 @@ $cards-per-line: ( display: flex; flex-direction: column; - > img { + > div.cs-card-image-container > img { aspect-ratio: 16/9; border-radius: 1rem 1rem 0 0; object-fit: cover; } } -@container cs-card (min-width: 560px) { +@container cs-card (min-width: 760px) { .cs-card { flex-direction: row-reverse; - > div { - width: 50%; + > div:not(.cs-card-image-container) { + flex: 1 1 50%; } - > img { - width: 50%; - border-radius: 0 1rem 3rem 0; + > div.cs-card-image-container { + flex: 1 0 auto; + max-width: 60%; + height: 100%; + > img { + border-radius: 0 1rem 3rem 0; + height: 100%; + } } } }