Skip to content

Commit

Permalink
Merge pull request #1447 from rluodev/remove-128-collective
Browse files Browse the repository at this point in the history
Remove 128 Collective
  • Loading branch information
garyhtou authored Jan 13, 2025
2 parents 85594d5 + 9e15453 commit fa185d4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 124 deletions.
99 changes: 1 addition & 98 deletions pages/fiscal-sponsorship/climate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,6 @@ export const badges = [
icon: 'explore',
match: org => org.isTransparent
},
// The "128 Collective Funded" is hidden for now. It may be re-added in the
// future after 128 Collective has more multi-year grants.
// {
// label: 'Funded',
// id: '128CollectiveFunded',
// tooltip: '128 Collective Funded',
// match: org => org.is128Funded,
// image:
// 'https://d33wubrfki0l68.cloudfront.net/5fc90935f8126233f42919a6c68601a5d735d798/fa4b2/images/logo.svg'
// },
{
label: 'Recommended',
id: '128CollectiveRecommended',
tooltip: '128 Collective Recommended',
match: org => org.is128Recommended,
image:
'https://d33wubrfki0l68.cloudfront.net/5fc90935f8126233f42919a6c68601a5d735d798/fa4b2/images/logo.svg'
}
]

badges.__proto__.forOrg = function (org) {
Expand Down Expand Up @@ -1147,69 +1129,6 @@ export default function ClimatePage({ rawOrganizations, pageRegion }) {
</Grid>
</Container>
</Grid>
<Box
sx={{
mt: [5, 3, 0],
pt: [5, null, null, null, 6],
pb: [3, 4, 5, null, 6],
minHeight: ['70vh', 'none'],
textAlign: 'center',
backgroundImage:
"linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), url('https://cloud-hc1lyhwxy-hack-club-bot.vercel.app/0marita-kavelashvili-ugnrxk1129g-unsplash.jpg')",
backgroundSize: 'cover',
backgroundPosition: 'center center',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
color: 'white'
}}
>
<Box
sx={{
width: '100%',
maxWidth: 'calc(48rem + 312px)',
mx: 'auto',
px: '16px'
}}
>
<Heading
sx={{
textAlign: 'center',
mt: [2, 4],
textShadow: '0 0 16px rgba(0, 0, 0, 1)',
fontSize: [5, null, 6, 6]
}}
as="h3"
variant="subheadline"
>
Join us in supporting <br /> climate initiatives.
</Heading>
<Box
sx={{
fontSize: [2, 3, 3],
textAlign: 'center',
my: 3
}}
>
Let your money work for change by donating to all climate-focused
nonprofits on HCB. Donate to 128 Collective’s curated list of
recommended organizations.
</Box>
<Button
variant="ctaLg"
as="a"
href="https://hcb.hackclub.com/donations/start/128-collective-fund"
target="_blank"
sx={{
ml: [0, 3],
mt: 2,
backgroundImage: t => t.util.gx('green', 'blue')
}}
>
<Text>Donate to the climate&nbsp;fund</Text>
</Button>
</Box>
</Box>
</Box>
<Footer />
</div>
Expand Down Expand Up @@ -1316,7 +1235,7 @@ export class Organization {
return {
type: this.raw.category,
category: 'Coding',
badges: ['128_collective_funded']
badges: []
}
}

Expand Down Expand Up @@ -1362,22 +1281,6 @@ export class Organization {
}
}

/**
* Checks if the organization is recommended by 128 Collective.
* @type {boolean}
*/
get is128Recommended() {
return this.raw.partners?.['128_collective']?.recommended
}

/**
* Checks if the organization is funded by 128 Collective.
* @type {boolean}
*/
get is128Funded() {
return this.raw.partners?.['128_collective']?.funded
}

/**
* Updates the organization data by making an API call.
* @returns {Organization} The updated Organization instance.
Expand Down
18 changes: 1 addition & 17 deletions pages/fiscal-sponsorship/directory/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ export class Organization {
return {
type: this.raw.category,
category: 'Coding',
badges: ['128_collective_funded']
badges: []
}
}

Expand Down Expand Up @@ -1156,22 +1156,6 @@ export class Organization {
}
}

/**
* Checks if the organization is recommended by 128 Collective.
* @type {boolean}
*/
get is128Recommended() {
return this.raw.partners?.['128_collective']?.recommended
}

/**
* Checks if the organization is funded by 128 Collective.
* @type {boolean}
*/
get is128Funded() {
return this.raw.partners?.['128_collective']?.funded
}

/**
* Updates the organization data by making an API call.
* @returns {Organization} The updated Organization instance.
Expand Down
17 changes: 8 additions & 9 deletions pages/fiscal-sponsorship/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ export default function Page() {
</Grid>
</Container>
</Box>
{/** removed for now
<Box as="section" bg="snow" sx={{ py: 5 }}>
<Container>
<Grid columns={[null, null, 2]} gap={[4, 5]}>
Expand All @@ -340,7 +341,7 @@ export default function Page() {
}
}}
>
{['128.png', 'ycjf.png', 'first.png'].map(file => (
{['ycjf.png', 'first.png'].map(file => (
<img
key={file}
src={`/fiscal-sponsorship/${file}`}
Expand All @@ -362,9 +363,7 @@ export default function Page() {
textIndent: '-0.33em'
}}
>
“HCB’s Climate fiscal sponsorship program removes funding
barriers with a blend of youth-centered, tech-savvy services and
a deep commitment to authentic youth empowerment.”
“Quote goes here”
</Text>
<Text
as="p"
Expand All @@ -373,18 +372,18 @@ export default function Page() {
>
<Text as="strong" color="slate">
Kate Goss
FirstName LastName
</Text>
, Executive Director,{' '}
<UILink href="https://128collective.org">
128&nbsp;Collective
, Title,{' '}
<UILink href="https://example.com">
Organization
</UILink>
</Text>
</Card>
</Grid>
</Container>
</Box>

*/}
<Container>
<Grid
columns={[null, null, 2]}
Expand Down
Binary file removed public/fiscal-sponsorship/128.png
Binary file not shown.

0 comments on commit fa185d4

Please sign in to comment.