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

Add chains logos #239

Merged
merged 2 commits into from
May 8, 2024
Merged
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
76 changes: 69 additions & 7 deletions web-portal/frontend/components/home/04-Supported-Chains.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,71 @@
import { Container } from "@mantine/core";
import SectionTitle from "./common/SectionTitle";
import { Container, Flex, Title, Text, Stack, Grid, Box } from "@mantine/core";
import { redRose, crimson } from "@frontend/utils/theme";
import { chainLogos } from "@frontend/utils/consts";
import Image from "next/image";

const chainLogosInGrid = chainLogos.map((c: (typeof chainLogos)[0]) => (
<Box
key={c.src}
m={8}
h={c.height}
w={c.width}
opacity={0.8}
bg="#fff"
style={{
display: "flex",
borderRadius: 10,
alignItems: "center",
justifyContent: "center",
}}
>
<Image
src={c.src}
height={(c.height * 2) / 4}
width={(c.width * 2) / 4}
alt={"logo"}
/>
</Box>
));

export default function SupportedChains() {
return (
<Container size="md" mt={"xl"}>
<SectionTitle title="Supported Chains" />
</Container>
);
return (
<Container
size="md"
mt={"xl"}
c="umbra"
style={{
textAlign: "center",
justifyContent: "center",
alignItems: "center",
}}
>
<Title
style={{
fontFamily: redRose.style.fontFamily,
fontWeight: 600,
fontSize: 40,
}}
>
More than 40+
<br />
supported chains
</Title>
<Text
opacity={0.9}
mt="md"
style={{
fontFamily: crimson.style.fontFamily,
fontSize: 20,
textAlign: "center",
}}
>
Look ma {` `}
<s>no hands</s> how many chains we support!
</Text>

<Grid m={24} p={10} align="center" justify="center">
{chainLogosInGrid}
</Grid>
</Container>
);
}
Binary file added web-portal/frontend/public/chains/abt.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 web-portal/frontend/public/chains/avax.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 web-portal/frontend/public/chains/boba.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 web-portal/frontend/public/chains/celo.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 web-portal/frontend/public/chains/dog.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 web-portal/frontend/public/chains/eth.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 web-portal/frontend/public/chains/evmos.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 web-portal/frontend/public/chains/frax.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 web-portal/frontend/public/chains/ftm.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 web-portal/frontend/public/chains/fuse.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 web-portal/frontend/public/chains/glmr.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 web-portal/frontend/public/chains/gno.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 web-portal/frontend/public/chains/kava.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 web-portal/frontend/public/chains/klay.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 web-portal/frontend/public/chains/matic.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 web-portal/frontend/public/chains/metis.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 web-portal/frontend/public/chains/movr.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 web-portal/frontend/public/chains/mtrg.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 web-portal/frontend/public/chains/near.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 web-portal/frontend/public/chains/oas.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 web-portal/frontend/public/chains/one.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 web-portal/frontend/public/chains/op.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 web-portal/frontend/public/chains/osmo.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 web-portal/frontend/public/chains/pokt.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 web-portal/frontend/public/chains/sol.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 web-portal/frontend/public/chains/sui.png
Binary file added web-portal/frontend/public/chains/tia.png
Binary file added web-portal/frontend/public/chains/vlx.png
Binary file added web-portal/frontend/public/chains/xrd.png
61 changes: 61 additions & 0 deletions web-portal/frontend/utils/consts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
import { Address } from "viem";
import { IToken } from "./types";
import abt from "@frontend/public/chains/abt.png";
import avax from "@frontend/public/chains/avax.png";
import boba from "@frontend/public/chains/boba.png";
import celo from "@frontend/public/chains/celo.png";
import dog from "@frontend/public/chains/dog.png";
import eth from "@frontend/public/chains/eth.png";
import evmos from "@frontend/public/chains/evmos.png";
import frax from "@frontend/public/chains/frax.png";
import ftm from "@frontend/public/chains/ftm.png";
import fuse from "@frontend/public/chains/fuse.png";
import glmr from "@frontend/public/chains/glmr.png";
import gno from "@frontend/public/chains/gno.png";
import kava from "@frontend/public/chains/kava.png";
import klay from "@frontend/public/chains/klay.png";
import matic from "@frontend/public/chains/matic.png";
import metis from "@frontend/public/chains/metis.png";
import movr from "@frontend/public/chains/movr.png";
import mtrg from "@frontend/public/chains/mtrg.png";
import near from "@frontend/public/chains/near.png";
import oas from "@frontend/public/chains/oas.png";
import one from "@frontend/public/chains/one.png";
import op from "@frontend/public/chains/op.png";
import osmo from "@frontend/public/chains/osmo.png";
import pokt from "@frontend/public/chains/pokt.png";
import sol from "@frontend/public/chains/sol.png";
import sui from "@frontend/public/chains/sui.png";
import tia from "@frontend/public/chains/tia.png";
import vlx from "@frontend/public/chains/vlx.png";
import xrd from "@frontend/public/chains/xrd.png";

export const portrAddress = "0x54d5f8a0e0f06991e63e46420bcee1af7d9fe944";

Expand Down Expand Up @@ -32,3 +61,35 @@ export const supportedChains = [
portrAddress: "to-be-deployed",
},
];

export const chainLogos = [
abt,
avax,
boba,
celo,
dog,
eth,
evmos,
frax,
ftm,
fuse,
glmr,
gno,
kava,
klay,
matic,
metis,
movr,
mtrg,
near,
oas,
one,
op,
osmo,
pokt,
sol,
sui,
tia,
vlx,
xrd,
];
Loading