Skip to content

Commit

Permalink
feat: copy/pasta from the previous quake aid fundraiser (#330)
Browse files Browse the repository at this point in the history
* feat: copy/pasta from the previous quake aid fundraiser

* Fix typo

* text updates

* fix typo

---------

Co-authored-by: Merchant Coppola <[email protected]>
  • Loading branch information
Zir0h and merchantcoppola authored Sep 15, 2023
1 parent bd0692e commit 8f01aed
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/components/header/feed_toolbar/FeedToolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const locationMap = new Map([
['/feed/friends', 'Friends'],
// separator
['---fund_feeds', 'fund_feeds'],
['/feed/quake-aid', 'Quake Aid'],
['/feed/morocco-quake-aid', '🇲🇦 Quake Aid'],
['/feed/quake-aid', '🇹🇷🇸🇾 Quake Aid'],
['/feed/ukraine', '🇺🇦 Ukraine'],
['/feed/pakistan', '🇵🇰 Pakistan'],
['/feed/iran', '🇮🇷 Iran'],
Expand Down
16 changes: 13 additions & 3 deletions src/components/header/sample_events.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
// DEV SAMPLES
export const sample_events = [
{
title: 'TezQuakeAid - Morocco',
icon: '🇲🇦 ',
feed: 'morocco-quake-aid',
link: 'https://app.joyn.xyz/space/tezquakeaid-ec7f1f650671',
subtitle: '9th September 2023 - ',
content:
'In September 2023, Morocco has been hit by a devastating earthquake. The TezQuateAid team launched a fundraising campaign dedicated to assisting those who have been impacted by this tragic catastrophe.',
},
{
title: 'Tezos Pride',
icon: '🏳️‍🌈',
Expand All @@ -9,14 +18,15 @@ export const sample_events = [
content:
'TezosPride is a continuous event to celebrate and support the 2SLGBTQ+ community in the Tezos ecosystem. The main event spans Pride Month (June) annually.',
},

{
title: 'TezQuakeAid - Earthquake Relief',
icon: '',
title: 'TezQuakeAid - Turkey/Syria',
icon: '🇹🇷🇸🇾 ',
feed: 'quake-aid',
link: 'https://app.joyn.xyz/space/tezquakeaid-ec7f1f650671',
subtitle: '8st February 2023 - March 2023',
content:
'The earthquakes in Turkey and Syria in February 2023 have caused immense devastation. In an attempt to support relief efforts, the Tezos community has set up donation opportunities to recognised, independent relief organisations. Artists and collectors can contribute through art sales and promotion of this fundraiser. Direct donations of XTZ are also possible.',
'The earthquakes in Turkey and Syria in February 2023 have caused immense devastation. The Tezos community has set up donation opportunities to recognised, independent relief organisations. Donations after April 2023 will be directed towards the current flood relief event for Morocco',
},
{
title: 'Tezos for Iran',
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export const UKRAINE_FUNDING_CONTRACT = 'KT1DWnLiUkNtAQDErXxudFEH63JC6mqg3HEx'
export const PAKISTAN_FUNDING_CONTRACT = 'KT1Jpf2TAcZS7QfBraQMBeCxjFhH6kAdDL4z'
export const IRAN_FUNDING_CONTRACT = 'KT1KYfj97fpdomqyKsZSBdSVvh9afh93b4Ge'
export const QUAKE_FUNDING_CONTRACT = 'KT1X1jyohFrZyDYWvCPXw9KvWxk2VDwxyg2g'
export const MOROCCO_QUAKE_FUNDING_CONTRACT = 'KT1RwXEP8Sj1UQDHPG4oEjRohBdzG2R7FCpA'

export const DAO_TOKEN_CLAIM_CONTRACT = 'KT1NrfV4e2qWqFrnrKyPTJth5wq2KP9VyBei'
export const DISTRIBUTION_MAPPING_IPFS_PATH =
Expand Down
2 changes: 2 additions & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
PdfFeed,
MarkdownFeed,
QuakeFeed,
MoroccoQuakeFeed,
} from '@pages/home/feeds'
import Mint from '@pages/mint'
import { ObjktDisplay } from '@pages/objkt-display'
Expand Down Expand Up @@ -86,6 +87,7 @@ const router = createBrowserRouter(
/>

<Route path="iran" element={<IranFeed />} />
<Route path="morocco-quake-aid" element={<MoroccoQuakeFeed />} />
<Route path="quake-aid" element={<QuakeFeed />} />
<Route path="iran" element={<IranFeed />} />
<Route path="pakistan" element={<PakistanFeed />} />
Expand Down
4 changes: 2 additions & 2 deletions src/pages/home/feeds/fund-feed.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function FundFeed({
infoUrl,
contractAddress,
cause,
namepsace,
namespace,
tags = null,
}) {
return (
Expand All @@ -27,7 +27,7 @@ function FundFeed({
<TokenCollection
feeds_menu
label={`Fundraise for ${cause}`}
namespace={namepsace}
namespace={namespace}
maxItems={600}
extractTokensFromResponse={({ tokens_by_share, tokens_by_tag }) => {
// tokensFromSplitContract
Expand Down
29 changes: 24 additions & 5 deletions src/pages/home/feeds/fund-feeds.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
IRAN_FUNDING_CONTRACT,
MOROCCO_QUAKE_FUNDING_CONTRACT,
PAKISTAN_FUNDING_CONTRACT,
QUAKE_FUNDING_CONTRACT,
UKRAINE_FUNDING_CONTRACT,
Expand All @@ -17,7 +18,7 @@ export function IranFeed() {
}
contractAddress={IRAN_FUNDING_CONTRACT}
cause="Iran"
namepsace="iran-feed"
namespace="iran-feed"
tags={['tezos4iran', '#tezos4iran']}
infoUrl="https://github.com/teia-community/teia-docs/wiki/Tezos-for-Iran"
/>
Expand All @@ -35,7 +36,7 @@ export function PakistanFeed() {
}
contractAddress={PAKISTAN_FUNDING_CONTRACT}
cause="Pakistan"
namepsace="pakistan-feed"
namespace="pakistan-feed"
infoUrl="https://github.com/teia-community/teia-docs/wiki/Pakistan-Fundraiser"
/>
)
Expand All @@ -52,7 +53,7 @@ export function UkraineFeed() {
}
contractAddress={UKRAINE_FUNDING_CONTRACT}
cause="Ukraine"
namepsace="ukraine-feed"
namespace="ukraine-feed"
infoUrl="https://github.com/teia-community/teia-docs/wiki/Ukranian-Fundraising"
/>
)
Expand All @@ -64,13 +65,31 @@ export function QuakeFeed() {
introText={
<>
Tezos community initiative to support those affected by the recent
earthquake in Turkey and Syria. Given the events in Morocco, we are
earthquake in Turkey and Syria. Given the events in Morocco, we are
channeling our current support toward emergency relief there.
</>
}
contractAddress={QUAKE_FUNDING_CONTRACT}
cause="Morocco, Turkey and Syria Earthquakes"
namepsace="quake-feed"
namespace="quake-feed"
tags={['TezQuakeAid', '#TezQuakeAid']}
infoUrl="https://app.joyn.xyz/space/tezquakeaid-ec7f1f650671"
/>
)
}

export function MoroccoQuakeFeed() {
return (
<FundFeed
introText={
<>
Tezos community initiative to support those affected by the recent
earthquake in Morocco.
</>
}
contractAddress={MOROCCO_QUAKE_FUNDING_CONTRACT}
cause="Morocco Earthquakes"
namespace="morocco-quake-feed"
tags={['TezQuakeAid', '#TezQuakeAid']}
infoUrl="https://app.joyn.xyz/space/tezquakeaid-ec7f1f650671"
/>
Expand Down
8 changes: 7 additions & 1 deletion src/pages/home/feeds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ export {
MarkdownFeed,
} from './mime-type-feed'

export { IranFeed, PakistanFeed, UkraineFeed, QuakeFeed } from './fund-feeds'
export {
IranFeed,
PakistanFeed,
UkraineFeed,
QuakeFeed,
MoroccoQuakeFeed,
} from './fund-feeds'
export { FriendsFeed } from './friends-feed'
export { RandomFeed } from './random-feed'
export { RecentSalesFeed } from './recent-sales-feed'
Expand Down

0 comments on commit 8f01aed

Please sign in to comment.