Skip to content

Commit 542069d

Browse files
committed
update initial UI
1 parent 5a6798a commit 542069d

File tree

6 files changed

+24
-14
lines changed

6 files changed

+24
-14
lines changed

src/components/NetworkAlert/NetworkAlert.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ const BG_COLORS_BY_DARK_MODE_AND_CHAIN_ID: {
5656
[SupportedChainId.CELO_ALFAJORES]:
5757
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(90, 190, 170, 0.15) 0%, rgba(80, 160, 40, 0.15) 100%)',
5858
[SupportedChainId.LUX]:
59-
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(90, 190, 170, 0.15) 0%, rgba(80, 160, 40, 0.15) 100%)',
59+
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.15) 100%)',
6060
[SupportedChainId.LUX_TESTNET]:
61-
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(90, 190, 170, 0.15) 0%, rgba(80, 160, 40, 0.15) 100%)',
61+
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.15) 100%)',
6262
[SupportedChainId.OPTIMISM]:
6363
'radial-gradient(948% 292% at 42% 0%, rgba(255, 58, 212, 0.01) 0%, rgba(255, 255, 255, 0.04) 100%),radial-gradient(98% 96% at 2% 0%, rgba(255, 39, 39, 0.01) 0%, rgba(235, 0, 255, 0.01) 96%)',
6464
[SupportedChainId.OPTIMISM_GOERLI]:
@@ -76,9 +76,9 @@ const BG_COLORS_BY_DARK_MODE_AND_CHAIN_ID: {
7676
[SupportedChainId.CELO]:
7777
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(63, 208, 137, 0.15) 0%, rgba(49, 205, 50, 0.15) 100%)',
7878
[SupportedChainId.LUX]:
79-
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(63, 208, 137, 0.15) 0%, rgba(49, 205, 50, 0.15) 100%)',
79+
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(0, 0, 0, 0.45) 0%, rgba(10, 10, 10, 0.75) 100%)',
8080
[SupportedChainId.LUX_TESTNET]:
81-
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(63, 208, 137, 0.15) 0%, rgba(49, 205, 50, 0.15) 100%)',
81+
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(0, 0, 0, 0.45) 0%, rgba(10, 10, 10, 0.75) 100%)',
8282
[SupportedChainId.CELO_ALFAJORES]:
8383
'radial-gradient(182.71% 150.59% at 2.81% 7.69%, rgba(63, 208, 137, 0.15) 0%, rgba(49, 205, 50, 0.15) 100%)',
8484
[SupportedChainId.OPTIMISM]:
@@ -143,8 +143,8 @@ const TEXT_COLORS: { [chainId in NetworkAlertChains]: string } = {
143143
[SupportedChainId.POLYGON]: 'rgba(130, 71, 229)',
144144
[SupportedChainId.POLYGON_MUMBAI]: 'rgba(130, 71, 229)',
145145
[SupportedChainId.CELO]: 'rgba(53, 178, 97)',
146-
[SupportedChainId.LUX]: 'rgba(53, 178, 97)',
147-
[SupportedChainId.LUX_TESTNET]: 'rgba(53, 178, 97)',
146+
[SupportedChainId.LUX]: 'rgba(250, 250, 250)',
147+
[SupportedChainId.LUX_TESTNET]: 'rgba(200, 200, 200)',
148148
[SupportedChainId.CELO_ALFAJORES]: 'rgba(53, 178, 97)',
149149
[SupportedChainId.OPTIMISM]: '#ff3856',
150150
[SupportedChainId.OPTIMISM_GOERLI]: '#ff3856',

src/constants/lists.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const CELO_LIST = 'https://celo-org.github.io/celo-token-list/celo.tokenl
2020
export const UNSUPPORTED_LIST_URLS: string[] = [BA_LIST, UNI_UNSUPPORTED_LIST]
2121

2222
// default lists to be 'active' aka searched across
23-
export const DEFAULT_ACTIVE_LIST_URLS: string[] = [UNI_LIST, LUX_LIST, CELO_LIST, ARBITRUM_LIST, OPTIMISM_LIST]
23+
export const DEFAULT_ACTIVE_LIST_URLS: string[] = [UNI_LIST, LUX_LIST, ARBITRUM_LIST, OPTIMISM_LIST]
2424
export const DEFAULT_INACTIVE_LIST_URLS: string[] = [
2525
UNI_EXTENDED_LIST,
2626
COMPOUND_LIST,
@@ -32,6 +32,7 @@ export const DEFAULT_INACTIVE_LIST_URLS: string[] = [
3232
WRAPPED_LIST,
3333
SET_LIST,
3434
ROLL_LIST,
35+
CELO_LIST,
3536
...UNSUPPORTED_LIST_URLS,
3637
]
3738

src/nft/themes/lightTheme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const lightTheme: Theme = {
44
colors: {
55
accentFailure: vars.color.red400,
66
accentFailureSoft: 'rgba(250, 43, 57, 0.12)',
7-
accentAction: vars.color.pink400,
7+
accentAction: vars.color.gray50,
88
accentActionSoft: vars.color.accentActionSoft,
99
accentSuccess: vars.color.green300,
1010

src/pages/Landing/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const TitleText = styled.h1<{ isDarkMode: boolean }>`
112112
background: ${({ isDarkMode }) =>
113113
isDarkMode
114114
? 'linear-gradient(20deg,rgb(129 92 255) 10%,rgb(255 47 47) 99.8%)'
115-
: 'linear-gradient(10deg, rgba(255,79,184,1) 0%, rgba(255,159,251,1) 100%)'};
115+
: 'linear-gradient(10deg, rgba(20,20,20,1) 0%, rgba(0,55,130,1) 100%)'};
116116
background-clip: text;
117117
-webkit-background-clip: text;
118118
@@ -337,9 +337,9 @@ export default function Landing() {
337337
</TraceEvent>
338338
</LandingSwapContainer>
339339
<Gradient isDarkMode={isDarkMode} />
340-
<GlowContainer>
340+
{/* <GlowContainer>
341341
<Glow />
342-
</GlowContainer>
342+
</GlowContainer> */}
343343
<ContentContainer isDarkMode={isDarkMode}>
344344
<TitleText isDarkMode={isDarkMode}>Trade anything, anywhere</TitleText>
345345
<SubTextContainer>

src/theme/colors.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ export const lightTheme: Theme = {
192192
textSecondary: colors.gray400,
193193
textTertiary: colors.gray300,
194194

195-
accentAction: colors.pink400,
195+
accentAction: colors.blue700,
196196
accentActive: colors.blue400,
197197
accentSuccess: colors.green300,
198198
accentWarning: colors.gold200,
199199
accentFailure: colors.red400,
200200
accentCritical: colors.red400,
201201

202-
accentActionSoft: opacify(24, colors.pink400),
202+
accentActionSoft: opacify(24, colors.blue700),
203203
accentActiveSoft: opacify(24, colors.blue400),
204204
accentSuccessSoft: opacify(24, colors.green300),
205205
accentWarningSoft: opacify(24, colors.gold200),
@@ -218,7 +218,7 @@ export const lightTheme: Theme = {
218218
shallowShadow:
219219
'6px 6px 10px rgba(51, 53, 72, 0.01), 2px 2px 6px rgba(51, 53, 72, 0.02), 1px 2px 2px rgba(51, 53, 72, 0.02);',
220220

221-
networkDefaultShadow: `0px 40px 120px ${opacify(12, colors.pink400)}`,
221+
networkDefaultShadow: `0px 40px 120px ${opacify(12, colors.blue700)}`,
222222

223223
stateOverlayHover: opacify(8, colors.gray300),
224224
stateOverlayPressed: opacify(24, colors.gray200),

src/theme/components/RadialGradientByChainUpdater.ts

+9
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ export default function RadialGradientByChainUpdater(): null {
8787
backgroundRadialGradientElement.style.background = darkMode ? celoDarkGradient : celoLightGradient
8888
break
8989
}
90+
case SupportedChainId.LUX:
91+
case SupportedChainId.LUX_TESTNET: {
92+
setBackground(backgroundResetStyles)
93+
const luxLightGradient =
94+
'radial-gradient(100% 100% at 50% 0%, rgba(0, 15, 50, 0.41) 0%, rgba(20, 20, 20, 0.24) 100%), #FFFFFF'
95+
const luxDarkGradient = 'radial-gradient(circle at center, #121212 0%, #000000 100%)'
96+
backgroundRadialGradientElement.style.background = darkMode ? luxDarkGradient : luxLightGradient
97+
break
98+
}
9099
default: {
91100
setBackground(initialStyles)
92101
const defaultLightGradient =

0 commit comments

Comments
 (0)