Skip to content

Commit c11ae45

Browse files
committed
Chain Page Updates for Creator & Metal (#5679)
## Problem solved Short description of the bug fixed or feature added Linear: Dash-573 Added to chains for custom chainlist pages - Metal L2 (1750) - Creator Chain (66665) - Treasure Topaz (978658) Enabled white space preserving for new lines on chain 'About' section. <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces new assets and updates `chainMetaRecord` to enhance the dashboard with additional blockchain information, including two new chains: `Creator` and `Metal L2`, along with their respective metadata and call-to-action details. ### Detailed summary - Added new images: `creatorBanner`, `creatorCTA`, `metalBanner`, `metalCTA`. - Updated `layout.tsx` to use `whitespace-pre-line` for `chainMetadata.about`. - Introduced `Creator` chain metadata with details and CTA. - Introduced `Metal L2` chain metadata with details and CTA. - Added `Treasure Topaz` and `Treasure Mainnet` chain metadata with details and CTA. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 462138d commit c11ae45

File tree

6 files changed

+54
-2
lines changed

6 files changed

+54
-2
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/(chainPage)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export default async function ChainPageLayout(props: {
189189

190190
{/* description */}
191191
{chainMetadata?.about && (
192-
<p className="mb-2 text-muted-foreground text-sm lg:text-base">
192+
<p className="mb-2 whitespace-pre-line text-muted-foreground text-sm lg:text-base">
193193
{chainMetadata.about}
194194
</p>
195195
)}
Loading
Loading
Loading
Loading

apps/dashboard/src/app/(dashboard)/(chain)/utils.ts

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ import laosCTA from "./temp-assets/laosCTA.jpg";
2424
import liskBanner from "./temp-assets/liskBanner.png";
2525
import liskCTA from "./temp-assets/liskCTA.png";
2626

27+
import creatorBanner from "./temp-assets/creatorBanner.png";
28+
import creatorCTA from "./temp-assets/creatorCTA.png";
2729
import lumiaCTA from "./temp-assets/lumia-cta.png";
2830
import lumiaBanner from "./temp-assets/lumiaBanner.png";
2931
import mantleBanner from "./temp-assets/mantle.png";
32+
import metalBanner from "./temp-assets/metalBanner.png";
33+
import metalCTA from "./temp-assets/metalCTA.png";
3034
import plumeBanner from "./temp-assets/plumeBanner.png";
3135
import plumeCTA from "./temp-assets/plumeCTA.png";
3236
import rootStockBanner from "./temp-assets/rootstock-banner.png";
@@ -298,6 +302,18 @@ const chainMetaRecord = {
298302
buttonText: "Learn more",
299303
},
300304
},
305+
//Creator Mainnet
306+
66665: {
307+
headerImgUrl: creatorBanner.src,
308+
about:
309+
"From Builders to Builders, From Idea to Creation ⚡\nCreator is AI Superhero Layer 2 Blockchain 🦇\nBuilt on the OP Stack, leveraging the robust foundation of Optimism 🟡🔴. We adopt the OP Stack's design principles because, as builders, we know they work and align perfectly with our values.\nWhy Creator?\nWe're constructing our Testnet on the Bedrock release of the OP Stack, ensuring a scalable and modular infrastructure that supports innovative and decentralized applications.\nCore Features:\n- Lightning Fast Transactions: Say goodbye to slow speeds with Creator's Layer 2 technology.\n- Low Fees: Lower transaction costs make blockchain accessible to all.\n- Scalable Infrastructure: Creator's network adapts effortlessly as you grow.",
310+
cta: {
311+
backgroundImageUrl: creatorCTA.src,
312+
title: "From Builders to Builders, From Idea to Creation ⚡",
313+
buttonLink: "https://www.creatorchain.io/",
314+
buttonText: "Learn More",
315+
},
316+
},
301317
//Donatuz
302318
42026: {
303319
headerImgUrl: thirdwebBanner.src,
@@ -405,6 +421,18 @@ const chainMetaRecord = {
405421
cta: OP_CTA,
406422
gasSponsored: true,
407423
},
424+
//Metal L2
425+
1750: {
426+
headerImgUrl: metalBanner.src,
427+
about:
428+
"Metal L2 is a banking-focused Layer 2 blockchain built on the Optimism Superchain, designed to enable direct on-chain fiat deposits through its connection to The Digital Banking Network—an open-source blockchain banking protocol developed by Metallicus",
429+
cta: {
430+
backgroundImageUrl: metalCTA.src,
431+
title: "Connect to The Banking Layer, Metal L2",
432+
buttonLink: "https://metall2.com/",
433+
buttonText: "Connect Here",
434+
},
435+
},
408436
//0G-Newton-Testnet
409437
16600: {
410438
headerImgUrl: zeroGBanner.src,
@@ -453,7 +481,7 @@ const chainMetaRecord = {
453481
buttonText: "Learn more",
454482
},
455483
},
456-
//treasure
484+
//treasure-Ruby
457485
978657: {
458486
headerImgUrl: treasureBanner.src,
459487
about:
@@ -465,6 +493,30 @@ const chainMetaRecord = {
465493
buttonText: "Learn more",
466494
},
467495
},
496+
//Treasure Topaz
497+
978658: {
498+
headerImgUrl: treasureBanner.src,
499+
about:
500+
'Treasure is the decentralized game console. Powered by $MAGIC, the Treasure L2 serves as the base layer for the best cryptonative games and projects. Treasure and its network of "Infinity Chains" L3s offers EVM compatibility, massive scale, and decentralized infrastructure enshrined throughout. Combined with a passionate community and builder support, developers on Treasure are equipped with all of the tools they need to not only build great games and products, but also distribute to the masses.',
501+
cta: {
502+
backgroundImageUrl: treasureCTA.src,
503+
title: "Start building on Treasure!",
504+
buttonLink: "https://portal.treasure.lol",
505+
buttonText: "Learn more",
506+
},
507+
},
508+
//Treasure Mainnet
509+
61166: {
510+
headerImgUrl: treasureBanner.src,
511+
about:
512+
'Treasure is the decentralized game console. Powered by $MAGIC, the Treasure L2 serves as the base layer for the best cryptonative games and projects. Treasure and its network of "Infinity Chains" L3s offers EVM compatibility, massive scale, and decentralized infrastructure enshrined throughout. Combined with a passionate community and builder support, developers on Treasure are equipped with all of the tools they need to not only build great games and products, but also distribute to the masses.',
513+
cta: {
514+
backgroundImageUrl: treasureCTA.src,
515+
title: "Start building on Treasure!",
516+
buttonLink: "https://portal.treasure.lol",
517+
buttonText: "Learn more",
518+
},
519+
},
468520
//AssetChain
469521
42421: {
470522
headerImgUrl: assetChainBanner.src,

0 commit comments

Comments
 (0)