Skip to content

Commit

Permalink
chore: change galxe mobile banner text (#8034)
Browse files Browse the repository at this point in the history
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->

<!--
copilot:all
-->
### <samp>🤖 Generated by Copilot at 07dfcae</samp>

### Summary
📱🗣️💰

<!--
1. 📱 - This emoji represents the mobile version of the components, which
is the target of the changes. It also implies that the changes are
related to the layout and responsiveness of the components.
2. 🗣️ - This emoji represents the text and translation changes, which
are the main content of the changes. It also implies that the changes
are related to the communication and localization of the components.
3. 💰 - This emoji represents the $10,000 rewards, which are the
incentive and feature of the components. It also implies that the
changes are related to the value proposition and marketing of the
components.
-->
Changed the subheadings of the mobile versions of `GalxePredictBanner`
and `GalxeSyndicateBanner` components to match the design and the
message of the banners. Added the translations for the new texts to the
`translations.json` file.

> _`Galxe` banners change_
> _Texts and translations update_
> _Autumn leaves design_

### Walkthrough
* Change the text of the subheadings for the mobile version of the
GalxePredictBanner and GalxeSyndicateBanner components to match the
design and the message of the banners
([link](https://github.com/pancakeswap/pancake-frontend/pull/8034/files?diff=unified&w=0#diff-08f5a8d839d3da84f27465ad90c0a2548a127ee8fcaed7b6197bff4d0dd0c6faL118-R119),
[link](https://github.com/pancakeswap/pancake-frontend/pull/8034/files?diff=unified&w=0#diff-b610cba50bb9368e720b3b60c6f6e5242a248cdd5193ca136d43bc2760fd6bc8L125-R130))
* Add the translations for the new texts to the `translations.json`
file, which is used by the localization package to support multiple
languages
([link](https://github.com/pancakeswap/pancake-frontend/pull/8034/files?diff=unified&w=0#diff-eb2ab983e2cefc22516cb7814c86346f4b2bd2b971980952868173095d48f459L2804-R2808))
  • Loading branch information
ChefBingbong authored Oct 4, 2023
1 parent 6f75d42 commit c0706f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ const GalxePredictBanner = () => {
{t('Predict, win and share $10,000 rewards')}
</StyledSubheading>
) : null}
{isMobile ? <StyledSubheading data-text={t('Jupiter')}>{t('Jupiter')}</StyledSubheading> : null}
{isMobile ? <StyledSubheading data-text={t('Predictors:')}>{t('Predictors:')}</StyledSubheading> : null}
{isMobile ? <StyledSubheading data-text={t('Predict and')}>{t('Predict and')}</StyledSubheading> : null}
{isMobile ? <StyledSubheading data-text={t('Share $10,000')}>{t('Share $10,000')}</StyledSubheading> : null}
</Box>

<Flex marginTop={isMobile ? '24px' : '12px'}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ const GalaxeSyndicateBanner = () => {
)}
</StyledSubheading>
) : null}
{isMobile ? <StyledSubheading data-text={t('Saturn')}>{t('Saturn')}</StyledSubheading> : null}
{isMobile ? <StyledSubheading data-text={t('Syndicate:')}>{t('Syndicate:')}</StyledSubheading> : null}
{isMobile ? (
<StyledSubheading data-text={t('Trade Perpetual')}>{t('Trade Perpetual')}</StyledSubheading>
) : null}
{isMobile ? (
<StyledSubheading data-text={t('and Share $10,000')}>{t('and Share $10,000')}</StyledSubheading>
) : null}
</Box>

<Flex marginTop={isMobile ? '24px' : '12px'}>
Expand Down
8 changes: 4 additions & 4 deletions packages/localization/src/config/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2801,11 +2801,11 @@
"opBNB is LIVE!": "opBNB is LIVE!",
"PancakeSwap Now Live on opBNB!": "PancakeSwap Now Live on opBNB!",
"Predict, win and share $10,000 rewards": "Predict, win and share $10,000 rewards",
"Jupiter": "Jupiter",
"Predictors:": "Predictors:",
"Jupiter Predictors:": "Jupiter Predictors:",
"Saturn": "Saturn",
"Syndicate:": "Syndicate:",
"and Share $10,000": "and Share $10,000",
"Trade Perpetual": "Trade Perpetual",
"Predict and": "Predict and",
"Share $10,000": "Share $10,000",
"Predict now": "Predict now",
"Trade now": "Trade now",
"Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard": "Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard"
Expand Down

1 comment on commit c0706f3

@vercel
Copy link

@vercel vercel bot commented on c0706f3 Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

uikit – ./packages/uikit

uikit.pancake.run
uikit-git-develop.pancake.run

Please sign in to comment.