Skip to content

Commit 6494b54

Browse files
committed
theme: deprecate runNodeGradient
leave TODO for runNodeGradient2 with replacement tw gradient classes; marked as deprecated
1 parent 9d808a7 commit 6494b54

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

src/pages/run-a-node.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ const GappedContent = (props: ChildOnlyProp) => (
8787
/>
8888
)
8989

90-
const HeroContainer = (props: ChildOnlyProp) => (
91-
<Box w="full" bg="runNodeGradient" {...props} />
92-
)
93-
9490
const Content = (props: BoxProps) => <Box w="full" py="4" px="8" {...props} />
9591

9692
const TwoColumnContent = (props: ChildOnlyProp) => (
@@ -443,11 +439,11 @@ const RunANodePage = () => {
443439
description={t("page-run-a-node-meta-description")}
444440
image="/images/run-a-node/ethereum-inside.png"
445441
/>
446-
<HeroContainer>
447-
<Box pb="8">
442+
<div className="w-full bg-gradient-to-br from-accent-b/5 via-primary/10 to-accent-b/15 dark:from-accent-b/20 dark:via-primary/15 dark:to-accent-a/20">
443+
<div className="pb-8">
448444
<PageHero content={heroContent} isReverse />
449-
</Box>
450-
</HeroContainer>
445+
</div>
446+
</div>
451447

452448
<Content id="what-is-a-node">
453449
<TwoColumnContent>
@@ -483,6 +479,7 @@ const RunANodePage = () => {
483479
contentPreview={
484480
<Translation id="page-run-a-node:page-run-a-node-who-preview" />
485481
}
482+
// TODO: Replace "runNodeGradient2" with classes "bg-gradient-to-br from-blue-500/20 from-10% to-pink-600/20 to-90%" once component supports, and then remove token from src/theme.ts
486483
background="runNodeGradient2"
487484
forceOpen
488485
>

src/theme.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ const baseColors = {
147147
// TODO replace random variables w/ baseColor variables
148148
const lightColors = {
149149
buttonColor: white,
150-
runNodeGradient:
151-
"linear-gradient(0deg, rgba(153, 157, 244, 0.1) 0%, rgba(153, 157, 244, 0) 100%), linear-gradient(270.72deg, #FDF0FF 0.62%, rgba(236, 195, 195, 0.557292) 32.61%, rgba(207, 189, 230, 0.296875) 49.67%, rgba(196, 196, 196, 0) 72.88%);",
150+
/** @deprecated */
152151
runNodeGradient2:
153152
"linear-gradient(135deg, rgba(79, 113, 235, 0.2) 9.8%, rgba(232, 79, 235, 0.2) 92.84%);",
154153
ghostCardBackground: white,
@@ -262,8 +261,7 @@ const lightColors = {
262261
// TODO replace random variables w/ baseColor variables
263262
const darkColors = {
264263
buttonColor: black300,
265-
runNodeGradient:
266-
"linear-gradient(0deg, rgba(153, 157, 244, 0.35) 0%, rgba(153, 157, 244, 0) 100%), linear-gradient(89.24deg, rgba(253, 240, 255, 0.7) -64.3%, rgba(212, 119, 119, 0.390104) -7.43%, rgba(188, 163, 220, 0.207813) 46.66%, rgba(196, 196, 196, 0) 99.16%);",
264+
/** @deprecated */
267265
runNodeGradient2:
268266
"linear-gradient(135deg, rgba(79, 113, 235, 0.2) 9.8%, rgba(232, 79, 235, 0.2) 92.84%);",
269267
primaryHover: primaryDark400,

0 commit comments

Comments
 (0)