diff --git a/apps/trading/client-pages/competitions/competitions-home.tsx b/apps/trading/client-pages/competitions/competitions-home.tsx index 79b1fa6dd..b1b2eb098 100644 --- a/apps/trading/client-pages/competitions/competitions-home.tsx +++ b/apps/trading/client-pages/competitions/competitions-home.tsx @@ -1,7 +1,12 @@ import { useT } from '../../lib/use-t'; import { ErrorBoundary } from '@sentry/react'; import { CompetitionsHeader } from '../../components/competitions/competitions-header'; -import { Intent, Loader, TradingButton } from '@vegaprotocol/ui-toolkit'; +import { + ExternalLink, + Intent, + Loader, + TradingButton, +} from '@vegaprotocol/ui-toolkit'; import { useEpochInfoQuery } from '../../lib/hooks/__generated__/Epoch'; import { Link, useNavigate } from 'react-router-dom'; import { Links } from '../../lib/links'; @@ -17,6 +22,8 @@ import { usePageTitle } from '../../lib/hooks/use-page-title'; import { TeamCard } from '../../components/competitions/team-card'; import { useMyTeam } from '../../lib/hooks/use-my-team'; import { useRewards } from '../../lib/hooks/use-rewards'; +import { Trans } from 'react-i18next'; +import { DocsLinks } from '@vegaprotocol/environment'; export const CompetitionsHome = () => { const t = useT(); @@ -44,10 +51,34 @@ export const CompetitionsHome = () => { return ( +

+ referral program.' + } + components={[ + + referral program + , + ]} + /> +

- {t( - 'Be a team player! Participate in games and work together to rake in as much profit to win.' - )} + propose an on-chain game yourself.' + } + components={[ + + propose an on-chain game + , + ]} + /> + {/** Docs: https://docs.vega.xyz/mainnet/tutorials/proposals/asset-transfer-proposal */}

@@ -74,7 +105,7 @@ export const CompetitionsHome = () => { variant="A" title={t('Create a team')} description={t( - 'Lorem ipsum dolor sit amet, consectetur adipisicing elit placeat ipsum minus nemo error dicta.' + 'Create a new team, share your code with potential members, or set a whitelist for an exclusive group.' )} actionElement={ { variant="B" title={t('Solo team / lone wolf')} description={t( - 'Lorem ipsum dolor sit amet, consectetur adipisicing elit placeat ipsum minus nemo error dicta.' + 'Want to compete but think the best team size is one? This is the option for you.' )} actionElement={ { variant="C" title={t('Join a team')} description={t( - 'Lorem ipsum dolor sit amet, consectetur adipisicing elit placeat ipsum minus nemo error dicta.' + 'Browse existing public teams to find your perfect match.' )} actionElement={ { )} {/** List of available games */} -

{t('Games')}

+

{t('Games')}

+

+ Find out how to create one.' + } + components={[ + + Find out how to create one + , + ]} + /> + {/** Docs: https://docs.vega.xyz/mainnet/tutorials/proposals/asset-transfer-proposal */} +

{gamesLoading ? ( @@ -139,12 +187,21 @@ export const CompetitionsHome = () => { )} {/** The teams ranking */} -
-

{t('Leaderboard')}

+
+

+ + {t('Leaderboard')} + +

{t('View all teams')}
+

+ {t( + 'Teams can earn rewards if they meet the goals set in the on-chain trading competitions. Track your earned rewards here, and see which teams are top of the leaderboard this month.' + )} +

{teamsLoading ? ( diff --git a/libs/environment/src/hooks/use-links.ts b/libs/environment/src/hooks/use-links.ts index f3a893156..ad860aba8 100644 --- a/libs/environment/src/hooks/use-links.ts +++ b/libs/environment/src/hooks/use-links.ts @@ -87,6 +87,7 @@ export const DocsLinks = VEGA_DOCS_URL QUANTUM: `${VEGA_DOCS_URL}/concepts/assets/asset-framework#quantum`, REFERRALS: `${VEGA_DOCS_URL}/tutorials/proposals/referral-program-proposal`, LIQUIDITY_FEE_PERCENTAGE: `${VEGA_DOCS_URL}/concepts/liquidity/rewards-penalties#determining-the-liquidity-fee-percentage`, + ASSET_TRANSFER_PROPOSAL: `${VEGA_DOCS_URL}/tutorials/proposals/asset-transfer-proposal`, } : undefined; diff --git a/libs/i18n/src/locales/en/trading.json b/libs/i18n/src/locales/en/trading.json index 58e9e521f..8a937d57e 100644 --- a/libs/i18n/src/locales/en/trading.json +++ b/libs/i18n/src/locales/en/trading.json @@ -445,7 +445,6 @@ "Leaderboard": "Leaderboard", "View all teams": "View all teams", "Competitions": "Competitions", - "Be a team player! Participate in games and work together to rake in as much profit to win.": "Be a team player! Participate in games and work together to rake in as much profit to win.", "Create a public team": "Create a public team", "Create a private team": "Create a private team", "Choose a team": "Choose a team", @@ -462,5 +461,12 @@ "Daily reward amount": "Daily reward amount", "Amount earned this epoch": "Amount earned this epoch", "Cumulative amount earned": "Cumulative amount earned", - "Game details": "Game details" + "Game details": "Game details", + "Check the cards below to see what community-created, on-chain games are active and how to compete. Joining a team also lets you take part in the on-chain <0>referral program.": "Check the cards below to see what community-created, on-chain games are active and how to compete. Joining a team also lets you take part in the on-chain <0>referral program.", + "Got an idea for a competition? Anyone can define and fund one -- <0>propose an on-chain game yourself.": "Got an idea for a competition? Anyone can define and fund one -- <0>propose an on-chain game yourself.", + "Create a new team, share your code with potential members, or set a whitelist for an exclusive group.": "Create a new team, share your code with potential members, or set a whitelist for an exclusive group.", + "Want to compete but think the best team size is one? This is the option for you.": "Want to compete but think the best team size is one? This is the option for you.", + "Browse existing public teams to find your perfect match.": "Browse existing public teams to find your perfect match.", + "See all the live games on the cards below. Every on-chain game is community funded and designed. <0>Find out how to create one.": "See all the live games on the cards below. Every on-chain game is community funded and designed. <0>Find out how to create one.", + "Teams can earn rewards if they meet the goals set in the on-chain trading competitions. Track your earned rewards here, and see which teams are top of the leaderboard this month.": "Teams can earn rewards if they meet the goals set in the on-chain trading competitions. Track your earned rewards here, and see which teams are top of the leaderboard this month." }