Skip to content

Commit

Permalink
feat: add new chains to Homepage marquee (#240)
Browse files Browse the repository at this point in the history
* feat: add PULL_REQUEST_TEMPLATE.md

* feat: add new chains NetworkChips

* reorder network chips

* fix: update logos quality
  • Loading branch information
DiogoSoaress authored Sep 19, 2023
1 parent e5cbc00 commit 5d555c9
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## What it solves

Resolves #

## How this PR fixes it
Binary file added public/images/chainsLogos/PolygonZkEVMLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/chainsLogos/ZkSyncEraLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/common/Networks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const NetworksRow = ({ networksRow, chainsData }: { networksRow: NetworkChipProp
{networksRow.map(({ name, icon, textColor, backgroundColor, isNew }, i) => {
const chainData = chainsData?.find((chain) => chain.chainName === name)
const chainColors = {
textColor: chainData?.textColor || textColor || defaultThemeColors.textColor,
backgroundColor: chainData?.backgroundColor || backgroundColor || defaultThemeColors.backgroundColor,
textColor: textColor || chainData?.textColor || defaultThemeColors.textColor,
backgroundColor: backgroundColor || chainData?.backgroundColor || defaultThemeColors.backgroundColor,
}
return <NetworkChip key={`${name}_${i}`} icon={icon} name={name} isNew={isNew} {...chainColors} />
})}
Expand Down
21 changes: 19 additions & 2 deletions src/content/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@
"alt": "Arbitrum logo"
}
},
{
"name": "zkSync Era Mainnet",
"icon": {
"src": "/images/chainsLogos/ZkSyncEraLogo.png",
"alt": "zkSync Era logo"
},
"textColor": "#000000",
"backgroundColor": "#FFFFFF",
"isNew": true
},
{
"name": "Polygon",
"icon": {
Expand Down Expand Up @@ -104,13 +114,20 @@
"alt": "Arbitrum logo"
}
},
{
"name": "Polygon zkEVM",
"icon": {
"src": "/images/chainsLogos/PolygonZkEVMLogo.png",
"alt": "Polygon zkEVM logo"
},
"isNew": true
},
{
"name": "Celo",
"icon": {
"src": "/images/chainsLogos/CeloLogo.png",
"alt": "Celo logo"
},
"isNew": true
}
}
],
"component": "common/Networks"
Expand Down

0 comments on commit 5d555c9

Please sign in to comment.