Skip to content

Commit

Permalink
resolve long vertical card in mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed Feb 20, 2024
1 parent 906d333 commit f3e1745
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 6 additions & 0 deletions src/components/NonProfit.astro
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ const { name, description, image, startColor, endColor, url } = Astro.props;
flex-direction: column;
justify-content: flex-end;

&:last-child {
@media (min-width: breakpoints.$laptop) {
grid-column: 2;
}
}

.bg {
position: absolute;
top: 0;
Expand Down
22 changes: 8 additions & 14 deletions src/components/NonProfits.astro
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,14 @@ import clouds from '../graphics/clouds_star_twirl_2.svg';
endColor="rgba(165, 51, 214, 1)"
url="https://www.queerlifespace.org/"
/>
<div class="centered">
<NonProfit
name="ARTZ Philadelphia"
description="Enhance well-being of people living with dementia and their care partners through joyful interactions around arts and culture."
image="/nonprofits/artz.jpg"
startColor="rgba(91, 192, 222, 0.3)"
endColor="rgba(91, 192, 222, 1)"
url="https://www.artzphilly.org/"
/>
</div>
<NonProfit
name="ARTZ Philadelphia"
description="Enhance well-being of people living with dementia and their care partners through joyful interactions around arts and culture."
image="/nonprofits/artz.jpg"
startColor="rgba(91, 192, 222, 0.3)"
endColor="rgba(91, 192, 222, 1)"
url="https://www.artzphilly.org/"
/>
</section>
</div>

Expand Down Expand Up @@ -127,10 +125,6 @@ import clouds from '../graphics/clouds_star_twirl_2.svg';
padding: 0 156px;
grid-template-columns: 1fr 1fr 1fr;
}

.centered {
grid-column: 2;
}
}

.container {
Expand Down

0 comments on commit f3e1745

Please sign in to comment.