Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Superform Interface #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@
"migrationAppCardTitle": "Cabana Migrations",
"migrationAppCardDescription": "An interface to easily migrate funds from older versions of PoolTogether.",
"ptlistCardTitle": "PTList",
"ptlistCardDescription": "Quickly generate a vault list from an account's deposits."
"ptlistCardDescription": "Quickly generate a vault list from an account's deposits.",
"superformCardTitle": "Superform",
"superformCardDescription": "Easily save with multiple prize vaults via pooled deposits."
},
"Community": {
"dipInThePool": "Take a <purple-400>dip</purple-400> in the pool",
Expand Down
Binary file added public/icons/superformIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/components/Ecosystem/EcosystemCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type EcosystemCardType =
| 'prizeCalc'
| 'migrationApp'
| 'ptlist'
| 'superform'

interface EcosystemCardProps {
type: EcosystemCardType
Expand Down Expand Up @@ -167,6 +168,14 @@ export const EcosystemCard = (props: EcosystemCardProps) => {
author: 'Ncookie & Trmid',
tags: ['extensions', 'v5'],
description: t('ptlistCardDescription')
},
superform: {
href: 'https://app.superform.xyz/protocol/pooltogether',
iconSrc: '/icons/superformIcon.png',
title: t('superformCardTitle'),
author: 'Superform',
tags: ['ui', 'v5'],
description: t('superformCardDescription')
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Ecosystem/MainSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const CardRows = (props: CardRowsProps) => {
<EcosystemCards
iconSrc='/icons/addIcon.svg'
title={t('interfacesSectionTitle')}
cards={['cabanaApp', 'pooltimeApp', 'migrationApp']}
cards={['cabanaApp', 'pooltimeApp', 'superform', 'migrationApp']}
/>
<EcosystemCards
iconSrc='/icons/puzzleIcon.svg'
Expand Down
6 changes: 6 additions & 0 deletions src/components/Interfaces/InterfaceCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type InterfaceCardType =
| 'ptApp_v4'
| 'poolExplorer'
| 'migrationApp'
| 'superform'

interface InterfaceCardProps {
type: InterfaceCardType
Expand Down Expand Up @@ -49,6 +50,11 @@ export const InterfaceCard = (props: InterfaceCardProps) => {
href: 'https://migrate.cabana.fi/',
iconSrc: '/icons/cabanaIcon.svg',
title: t('migrationAppCardTitle')
},
superform: {
href: 'https://app.superform.xyz/protocol/pooltogether/',
iconSrc: '/icons/superformIcon.png',
title: t('superformCardTitle')
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/interfaces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function InterfacesPage() {
className='px-4 py-16 bg-gradient-to-b from-pt-bg-purple-darker to-pt-purple-800'
>
<InterfacesHeader />
<InterfaceCards cards={['cabanaApp', 'pooltimeApp']} className='mt-8' />
<InterfaceCards cards={['cabanaApp', 'pooltimeApp', 'superform']} className='mt-8' />
<InterfaceCards title={t('migrationPrompt')} cards={['migrationApp']} className='mt-8' />
</Layout>
)
Expand Down