Skip to content

Commit

Permalink
Add Graphics To Nonprofits Section + Patch Design
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoder committed Jan 13, 2024
1 parent a71bc58 commit c71ecde
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 62 deletions.
11 changes: 11 additions & 0 deletions public/clouds_star_twirl_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions public/shapes_sparkle_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
158 changes: 96 additions & 62 deletions src/components/NonProfits.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,72 +2,76 @@
import NonProfit from './NonProfit.astro';
---

<section class="lead">
<h4 id="nonprofits">NON-PROFITS</h4>
<h3>
We’re a hackathon with <b class="emphasis">social good</b> at its heart.
</h3>
<p>
Our nonprofits have presented several problem areas and projects to tackle
their most pressing needs. Here are the incredible organizations that we’ve
partnered with:
</p>
</section>

<section class="nonprofits">
<NonProfit
name="Bay Area Street Soccer"
description="Building life-changing community-based sports programs reaching the least-served communities across the U.S."
image="/nonprofits/street-soccer.webp"
startColor="rgba(223, 114, 145, 0.3)"
endColor="rgba(223, 114, 145, 1)"
url="https://www.streetsoccerusa.org/cities/san-francisco/"
/>
<NonProfit
name="1951 Coffee"
description="Promoting the well-being of the refugee community in the U.S. through job training and employment"
image="/nonprofits/1951-coffee-company.webp"
startColor="rgba(247, 207, 82, 0.3)"
endColor="rgba(247, 207, 82, 1)"
url="https://www.1951coffee.com/"
/>
<NonProfit
name="The Dancing Cat"
description="Animal rescue organization dedicated to saving at-risk cats from the San Jose Animal Care Center"
image="/nonprofits/dancing-cat.webp"
startColor="rgba(128, 211, 241, 0.3)"
endColor="rgba(128, 211, 241, 1)"
url="https://www.thedancingcat.org/"
/>
<NonProfit
name="Coming soon..."
description="This amazing nonprofit will be announced soon!"
image="/nonprofits/coming-soon.webp"
startColor="rgba(120, 120, 120, 0.3)"
endColor="rgba(120, 120, 120, 1)"
/>
<NonProfit
name="Coming soon..."
description="This amazing nonprofit will be announced soon!"
image="/nonprofits/coming-soon.webp"
startColor="rgba(120, 120, 120, 0.3)"
endColor="rgba(120, 120, 120, 1)"
/>
<NonProfit
name="Coming soon..."
description="This amazing nonprofit will be announced soon!"
image="/nonprofits/coming-soon.webp"
startColor="rgba(120, 120, 120, 0.3)"
endColor="rgba(120, 120, 120, 1)"
/>
</section>
<div class="container">
<img src="/shapes_sparkle_2.svg" class="sparkles" />
<img src="/clouds_star_twirl_2.svg" class="clouds" />
<section class="lead">
<h4 id="nonprofits">NON-PROFITS</h4>
<h3>
We’re a hackathon with <b class="emphasis">social good</b> at its heart.
</h3>
<p>
Our nonprofits have presented several problem areas and projects to tackle
their most pressing needs. Here are the incredible organizations that we’ve
partnered with:
</p>
</section>

<section class="nonprofits">
<NonProfit
name="Bay Area Street Soccer"
description="Building life-changing community-based sports programs reaching the least-served communities across the U.S."
image="/nonprofits/street-soccer.webp"
startColor="rgba(223, 114, 145, 0.3)"
endColor="rgba(223, 114, 145, 1)"
url="https://www.streetsoccerusa.org/cities/san-francisco/"
/>
<NonProfit
name="1951 Coffee"
description="Promoting the well-being of the refugee community in the U.S. through job training and employment"
image="/nonprofits/1951-coffee-company.webp"
startColor="rgba(247, 207, 82, 0.3)"
endColor="rgba(247, 207, 82, 1)"
url="https://www.1951coffee.com/"
/>
<NonProfit
name="The Dancing Cat"
description="Animal rescue organization dedicated to saving at-risk cats from the San Jose Animal Care Center"
image="/nonprofits/dancing-cat.webp"
startColor="rgba(128, 211, 241, 0.3)"
endColor="rgba(128, 211, 241, 1)"
url="https://www.thedancingcat.org/"
/>
<NonProfit
name="Coming soon..."
description="This amazing nonprofit will be announced soon!"
image="/nonprofits/coming-soon.webp"
startColor="rgba(120, 120, 120, 0.3)"
endColor="rgba(120, 120, 120, 1)"
/>
<NonProfit
name="Coming soon..."
description="This amazing nonprofit will be announced soon!"
image="/nonprofits/coming-soon.webp"
startColor="rgba(120, 120, 120, 0.3)"
endColor="rgba(120, 120, 120, 1)"
/>
<NonProfit
name="Coming soon..."
description="This amazing nonprofit will be announced soon!"
image="/nonprofits/coming-soon.webp"
startColor="rgba(120, 120, 120, 0.3)"
endColor="rgba(120, 120, 120, 1)"
/>
</section>
</div>

<style lang="scss">
@use '../styles/breakpoints';
@use '../styles/colors';

.lead {
width: 100%;
width: 80%;
padding-left: 1rem;
position: relative;
display: flex;
Expand All @@ -77,11 +81,14 @@ import NonProfit from './NonProfit.astro';
text-align: center;
color: colors.$text;
padding-bottom: 2rem;
margin-top: 180px;
margin: auto;
margin-top: 90px;

@media (min-width: breakpoints.$laptop) {
margin-top: 180px;
padding: 0 20%;
padding-bottom: 80px;
padding-bottom: 30px;
width: 100%;
grid-template-columns: 1fr 1fr 1fr;
}
}
Expand All @@ -94,6 +101,7 @@ import NonProfit from './NonProfit.astro';
.nonprofits {
width: 100%;
padding-left: 1rem;
padding-right: 1rem;
position: relative;
display: grid;
grid-template-rows: min-content;
Expand All @@ -105,4 +113,30 @@ import NonProfit from './NonProfit.astro';
grid-template-columns: 1fr 1fr 1fr;
}
}

.container {
position: relative;
}

.clouds {
display: none;
position: absolute;
top: 72px;
right: 0;
height: 120px;
@media (min-width: breakpoints.$laptop) {
display: block;
}
}

.sparkles {
display: none;
position: absolute;
top: 0px;
left: -18px;
height: 90px;
@media (min-width: breakpoints.$laptop) {
display: block;
}
}
</style>

0 comments on commit c71ecde

Please sign in to comment.