Skip to content

Commit f3e1745

Browse files
committed
resolve long vertical card in mobile view
1 parent 906d333 commit f3e1745

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/components/NonProfit.astro

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ const { name, description, image, startColor, endColor, url } = Astro.props;
3838
flex-direction: column;
3939
justify-content: flex-end;
4040

41+
&:last-child {
42+
@media (min-width: breakpoints.$laptop) {
43+
grid-column: 2;
44+
}
45+
}
46+
4147
.bg {
4248
position: absolute;
4349
top: 0;

src/components/NonProfits.astro

+8-14
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,14 @@ import clouds from '../graphics/clouds_star_twirl_2.svg';
6969
endColor="rgba(165, 51, 214, 1)"
7070
url="https://www.queerlifespace.org/"
7171
/>
72-
<div class="centered">
73-
<NonProfit
74-
name="ARTZ Philadelphia"
75-
description="Enhance well-being of people living with dementia and their care partners through joyful interactions around arts and culture."
76-
image="/nonprofits/artz.jpg"
77-
startColor="rgba(91, 192, 222, 0.3)"
78-
endColor="rgba(91, 192, 222, 1)"
79-
url="https://www.artzphilly.org/"
80-
/>
81-
</div>
72+
<NonProfit
73+
name="ARTZ Philadelphia"
74+
description="Enhance well-being of people living with dementia and their care partners through joyful interactions around arts and culture."
75+
image="/nonprofits/artz.jpg"
76+
startColor="rgba(91, 192, 222, 0.3)"
77+
endColor="rgba(91, 192, 222, 1)"
78+
url="https://www.artzphilly.org/"
79+
/>
8280
</section>
8381
</div>
8482

@@ -127,10 +125,6 @@ import clouds from '../graphics/clouds_star_twirl_2.svg';
127125
padding: 0 156px;
128126
grid-template-columns: 1fr 1fr 1fr;
129127
}
130-
131-
.centered {
132-
grid-column: 2;
133-
}
134128
}
135129

136130
.container {

0 commit comments

Comments
 (0)