Skip to content

Commit 144c5c5

Browse files
authored
feat: october rebate banner update (#1918)
1 parent 89a4cc7 commit 144c5c5

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@cosmjs/tendermint-rpc": "^0.32.1",
5656
"@datadog/browser-logs": "^5.23.3",
5757
"@dydxprotocol/v4-client-js": "3.0.3",
58-
"@dydxprotocol/v4-localization": "1.1.329",
58+
"@dydxprotocol/v4-localization": "1.1.330",
5959
"@dydxprotocol/v4-proto": "^7.0.0-dev.0",
6060
"@emotion/is-prop-valid": "^1.3.0",
6161
"@hugocxl/react-to-image": "^0.0.9",
@@ -234,4 +234,4 @@
234234
"includeClassNames": true
235235
}
236236
}
237-
}
237+
}

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/hedgiepercentage.png

71.7 KB
Loading

src/pages/markets/MarketsBanners.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export const MarketsBanners = ({
112112
const rebateBanner = shouldDisplayRebateBanner ? (
113113
<$RebateBanner>
114114
<div tw="mr-auto flex h-full flex-col justify-center">
115-
<span tw="mb-0.75 text-large font-extra-bold">
115+
<span tw="mb-0.75 text-large font-extra-large-bold">
116116
<span tw="mr-0.25 rounded-0 px-0.25 text-color-accent">
117117
{stringGetter({ key: STRING_KEYS.REBATE_BANNER_TITLE_SURGE })}
118118
</span>
@@ -127,15 +127,18 @@ export const MarketsBanners = ({
127127
href="https://dydx.trade/DYDX?utm_source=markets&utm_medium=markets-banner&utm_campaign=02092025-markets-surge-banner-dydx&utm_term=&utm_content=surge-banner"
128128
tw="relative z-10 w-12"
129129
>
130-
{stringGetter({ key: STRING_KEYS.REBATE_BANNER_CTA })}
130+
{stringGetter({ key: STRING_KEYS.GET_STARTED })}
131131
</Button>
132+
<span tw="text-color-text-2 font-base-book">
133+
{stringGetter({ key: STRING_KEYS.REBATE_BANNER_SUBTITLE })}
134+
</span>
132135
</div>
133136
</div>
134137

135138
<img
136-
src="/rebate-token.png"
139+
src="/hedgiepercentage.png"
137140
alt="rebate rewards hedgies"
138-
tw="h-full object-contain mobile:hidden"
141+
tw="absolute right-0 top-0 h-full object-contain mobile:hidden"
139142
/>
140143

141144
<IconButton
@@ -231,12 +234,11 @@ const $RebateBanner = styled($MarketsPageBanner)`
231234
content: '';
232235
position: absolute;
233236
bottom: 0;
234-
left: 50%;
235-
transform: translateX(-50%);
236-
width: 100%;
237-
height: 70%;
238-
background: radial-gradient(ellipse at center bottom, var(--color-accent) 0%, transparent 70%);
239-
opacity: 0.2;
237+
right: 0;
238+
width: 80%;
239+
height: 130%;
240+
background: radial-gradient(ellipse at bottom right, var(--color-accent) 0%, transparent 70%);
241+
opacity: 0.6;
240242
z-index: 0;
241243
}
242244

0 commit comments

Comments
 (0)