From 6bd4927656cd5af08042c233e56dfd1d4af6d5ae Mon Sep 17 00:00:00 2001 From: Gerhard Steenkamp Date: Wed, 7 Aug 2024 14:00:07 +0200 Subject: [PATCH 1/4] add zora logos --- src/app/_assets/logos/zora.svg | 25 +++++++ .../_components/icons/gradient/logos/zora.tsx | 73 +++++++++++++++++++ src/app/_components/icons/index.tsx | 1 + .../_components/supported-chains-section.tsx | 6 ++ .../_components/supported-chains-ticker.tsx | 4 + 5 files changed, 109 insertions(+) create mode 100644 src/app/_assets/logos/zora.svg create mode 100644 src/app/_components/icons/gradient/logos/zora.tsx diff --git a/src/app/_assets/logos/zora.svg b/src/app/_assets/logos/zora.svg new file mode 100644 index 0000000..69bc7b8 --- /dev/null +++ b/src/app/_assets/logos/zora.svg @@ -0,0 +1,25 @@ + + + + + diff --git a/src/app/_components/icons/gradient/logos/zora.tsx b/src/app/_components/icons/gradient/logos/zora.tsx new file mode 100644 index 0000000..f52af2a --- /dev/null +++ b/src/app/_components/icons/gradient/logos/zora.tsx @@ -0,0 +1,73 @@ +import { LogoIconProps, LogoIconVariant } from "./types"; + +export function ZoraIcon({ variant = "aqua", ...props }: LogoIconProps) { + const linearGradientBasedId = `paint_radial_gradient_${variant}`; + + // use the darkest color in the gradient for the border + const baseColors: Record = { + purple: "#542999", + aqua: "#009A76", + teal: "#00719A", + }; + + return ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); +} diff --git a/src/app/_components/icons/index.tsx b/src/app/_components/icons/index.tsx index 2ed1270..9b94594 100644 --- a/src/app/_components/icons/index.tsx +++ b/src/app/_components/icons/index.tsx @@ -50,3 +50,4 @@ export { ModeIcon } from "./gradient/logos/mode"; export { BlastIcon } from "./gradient/logos/blast"; export { ScrollIcon } from "./gradient/logos/scroll"; export { LiskIcon } from "./gradient/logos/lisk"; +export { ZoraIcon } from "./gradient/logos/zora"; diff --git a/src/app/_components/supported-chains-section.tsx b/src/app/_components/supported-chains-section.tsx index 8dbb10a..55fc60d 100644 --- a/src/app/_components/supported-chains-section.tsx +++ b/src/app/_components/supported-chains-section.tsx @@ -11,6 +11,7 @@ import { BlastIcon, ScrollIcon, LiskIcon, + ZoraIcon, } from "@/app/_components/icons"; import { Text } from "@/app/_components/text"; @@ -61,6 +62,11 @@ const chains = [ Icon: LiskIcon, containerClassName: "sm:col-start-3", }, + { + label: "Zora", + Icon: ZoraIcon, + containerClassName: "sm:col-start-4", + }, ]; const variants = { diff --git a/src/app/_components/supported-chains-ticker.tsx b/src/app/_components/supported-chains-ticker.tsx index bfffdda..8e6b711 100644 --- a/src/app/_components/supported-chains-ticker.tsx +++ b/src/app/_components/supported-chains-ticker.tsx @@ -13,6 +13,7 @@ import modeLogoSrc from "@/app/_assets/logos/mode.svg"; import blastLogoSrc from "@/app/_assets/logos/blast.svg"; import scrollLogoSrc from "@/app/_assets/logos/scroll.svg"; import liskLogoSrc from "@/app/_assets/logos/lisk.svg"; +import zoraLogoSrc from "@/app/_assets/logos/zora.svg"; const chains = [ { @@ -48,6 +49,9 @@ const chains = [ { logo: lisk logo, }, + { + logo: zora logo, + }, ]; export function SupportedChainsTicker() { From ebdff99f51c27145f7952604801739aa5113ce9c Mon Sep 17 00:00:00 2001 From: Gerhard Steenkamp Date: Mon, 19 Aug 2024 11:22:54 +0200 Subject: [PATCH 2/4] jsx fixes --- src/app/_components/icons/gradient/chart-up.tsx | 2 +- src/app/_components/icons/gradient/logos/zora.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/_components/icons/gradient/chart-up.tsx b/src/app/_components/icons/gradient/chart-up.tsx index 7c6976f..f6d96f7 100644 --- a/src/app/_components/icons/gradient/chart-up.tsx +++ b/src/app/_components/icons/gradient/chart-up.tsx @@ -22,7 +22,7 @@ export function ChartUpIcon(props: SVGProps) { strokeWidth="10" strokeLinecap="round" strokeLinejoin="round" - stroke-dasharray="26 26" + strokeDasharray="26 26" mask="url(#path-1-inside-1_1942_3398)" /> From 59631584409cf369e47426cc4ac584863c3acca3 Mon Sep 17 00:00:00 2001 From: Gerhard Steenkamp Date: Tue, 20 Aug 2024 17:26:12 +0200 Subject: [PATCH 3/4] auto columns on supported chains grid --- .../_components/supported-chains-section.tsx | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/app/_components/supported-chains-section.tsx b/src/app/_components/supported-chains-section.tsx index 8582e3b..fda9b3b 100644 --- a/src/app/_components/supported-chains-section.tsx +++ b/src/app/_components/supported-chains-section.tsx @@ -12,6 +12,7 @@ import { ScrollIcon, LiskIcon, RedstoneIcon, + ZoraIcon, } from "@/app/_components/icons"; import { Text } from "@/app/_components/text"; @@ -67,6 +68,11 @@ const chains = [ Icon: RedstoneIcon, containerClassName: "", }, + { + label: "Zora", + Icon: ZoraIcon, + containerClassName: "", + }, ]; const variants = { @@ -94,18 +100,26 @@ export function SupportedChainsSection(props: { variant: "teal" | "purple" }) { Supported Chains -
+
{chains.map((chain, index) => (
From 7b4dbe3887f5d9228aa615f172f4a0d32aad7042 Mon Sep 17 00:00:00 2001 From: Gerhard Steenkamp Date: Tue, 20 Aug 2024 17:34:19 +0200 Subject: [PATCH 4/4] refactor --- src/app/_components/supported-chains-section.tsx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/app/_components/supported-chains-section.tsx b/src/app/_components/supported-chains-section.tsx index fda9b3b..4ced50a 100644 --- a/src/app/_components/supported-chains-section.tsx +++ b/src/app/_components/supported-chains-section.tsx @@ -100,26 +100,18 @@ export function SupportedChainsSection(props: { variant: "teal" | "purple" }) { Supported Chains
-
+
{chains.map((chain, index) => (