{configTheme.swapBox.inner.button.leftImg && (
)}
diff --git a/src/pages/UniversalSwap/index.module.scss b/src/pages/UniversalSwap/index.module.scss
index 026c4535a..d8d88fc3d 100644
--- a/src/pages/UniversalSwap/index.module.scss
+++ b/src/pages/UniversalSwap/index.module.scss
@@ -4,39 +4,76 @@
width: 100%;
height: 100vh;
position: absolute;
+ &.christmas {
+ .top {
+ position: sticky;
+ top: 68px;
+ left: 0;
- .top {
- position: sticky;
- top: 68px;
- left: 0;
+ width: 100px;
+ height: 119px;
+ z-index: 30;
- width: 100px;
- height: 119px;
- z-index: 30;
+ @include medium-desktop {
+ width: 70px;
+ height: 89px;
+ }
- @include medium-desktop {
- width: 70px;
- height: 89px;
+ @include mobile {
+ width: 70px;
+ height: 89px;
+ }
}
- @include mobile {
- width: 70px;
- height: 89px;
+ .bottom {
+ z-index: 30;
+ position: fixed;
+ right: -5px;
+ bottom: -10px;
+
+ width: 221.82px;
+ height: 156px;
+
+ @include mobile {
+ display: none;
+ }
}
}
- .bottom {
- z-index: 30;
- position: fixed;
- right: -50px;
- bottom: -50px;
+ &.halloween {
+ .top {
+ position: sticky;
+ top: 68px;
+ left: 0;
- width: 136.764px;
- height: 193px;
- transform: rotate(-12deg);
+ width: 100px;
+ height: 119px;
+ z-index: 30;
- @include mobile {
- display: none;
+ @include medium-desktop {
+ width: 70px;
+ height: 89px;
+ }
+
+ @include mobile {
+ width: 70px;
+ height: 89px;
+ }
+ }
+
+ .bottom {
+ z-index: 30;
+ position: fixed;
+ right: -50px;
+ bottom: -50px;
+
+ width: 136.764px;
+ height: 193px;
+ transform: rotate(-12deg);
+
+ @include mobile {
+ display: none;
+ }
}
}
}
@@ -93,8 +130,10 @@
position: sticky;
top: 800px;
margin-top: 32px;
-
+ width: 200px;
+ height: 60px;
@include mobile {
+ left: 30%;
margin-bottom: -100px;
}
}
diff --git a/src/pages/UniversalSwap/index.tsx b/src/pages/UniversalSwap/index.tsx
index cccc77779..7c0fa3dd7 100644
--- a/src/pages/UniversalSwap/index.tsx
+++ b/src/pages/UniversalSwap/index.tsx
@@ -27,6 +27,7 @@ import { initPairSwap } from './Swap/hooks/useFillToken';
import { NetworkFilter, TYPE_TAB_HISTORY, initNetworkFilter } from './helpers';
import { ChartTokenType, useChartUsdPrice } from './hooks/useChartUsdPrice';
import styles from './index.module.scss';
+import classNames from 'classnames';
const cx = cn.bind(styles);
@@ -77,7 +78,7 @@ const Swap: React.FC = () => {
return (
<>
{(configTheme.animation.topImg || configTheme.animation.bottomImg) && (
-
+
{configTheme.animation.topImg &&
}
{configTheme.animation.bottomImg && (
diff --git a/src/reducer/temporaryConfig.ts b/src/reducer/temporaryConfig.ts
index 4254cca31..e973be8f2 100644
--- a/src/reducer/temporaryConfig.ts
+++ b/src/reducer/temporaryConfig.ts
@@ -3,8 +3,8 @@ import { createSlice } from '@reduxjs/toolkit';
export enum EVENT_ENUM {
normal = 'normal',
- halloween = 'halloween'
- // christmas = 'christmas'
+ halloween = 'halloween',
+ christmas = 'christmas'
}
export interface TemporaryConfigState {
@@ -14,7 +14,7 @@ export interface TemporaryConfigState {
const initialState: TemporaryConfigState = {
customBanner: true,
- event: EVENT_ENUM.normal
+ event: EVENT_ENUM.christmas
};
export const temporaryConfigSlice = createSlice({