Skip to content

Commit

Permalink
improve padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed Jan 17, 2024
1 parent 4b4b7f7 commit d9676bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/components/NonProfit.astro
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const { name, description, image, startColor, endColor, url } = Astro.props;
position: relative;
overflow: hidden;
border-radius: 12px;
padding-top: 120px;
display: flex;
flex-direction: column;
justify-content: flex-end;

.bg {
position: absolute;
Expand All @@ -56,17 +58,18 @@ const { name, description, image, startColor, endColor, url } = Astro.props;

a {
width: 100%;
padding: 32px;
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 12px;
color: white;
font-weight: 400;
line-height: 100%;
padding: 32px;
padding-top: 120px;

@media (min-width: breakpoints.$laptop) {
padding-top: 0;
padding-top: 32px;
aspect-ratio: 10 / 9;
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/components/NonProfits.astro
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ import clouds from '../graphics/clouds_star_twirl_2.svg';

.nonprofits {
width: 100%;
padding-left: 1rem;
padding-right: 1rem;
padding: 0 10%;
position: relative;
display: grid;
grid-template-rows: min-content;
Expand Down

0 comments on commit d9676bb

Please sign in to comment.