diff --git a/apps/web/src/components/AdPanel/Card.tsx b/apps/web/src/components/AdPanel/Card.tsx
index ccb0f15702a9f..285886102d09a 100644
--- a/apps/web/src/components/AdPanel/Card.tsx
+++ b/apps/web/src/components/AdPanel/Card.tsx
@@ -2,9 +2,7 @@ import { Box, CloseIcon, Flex, IconButton, Image } from '@pancakeswap/uikit'
import styled from 'styled-components'
const BaseCard = styled(Box)`
- position: fixed;
- bottom: 30px;
- right: 30px;
+ position: relative;
padding: 16px;
width: 328px;
height: 164px;
@@ -39,7 +37,7 @@ const SliderContainer = styled(Box)`
left: 16px;
width: 148px;
- height: 8px;
+ height: 8px; /* temporary */
border: 1px solid gray;
`
diff --git a/apps/web/src/components/AdPanel/CardLayouts.tsx b/apps/web/src/components/AdPanel/CardLayouts.tsx
index e140366df319f..71bb3de3ad4b7 100644
--- a/apps/web/src/components/AdPanel/CardLayouts.tsx
+++ b/apps/web/src/components/AdPanel/CardLayouts.tsx
@@ -1,7 +1,22 @@
-import { getPortalRoot, useMatchBreakpoints } from '@pancakeswap/uikit'
+import { Box, getPortalRoot, useMatchBreakpoints } from '@pancakeswap/uikit'
import { createPortal } from 'react-dom'
+import styled from 'styled-components'
import { TitleContentAd } from './Variations/TitleContentAd'
+const FloatingContainer = styled(Box)`
+ position: fixed;
+ bottom: 30px;
+ right: 30px;
+`
+
+const MobileContainer = styled(Box)`
+ border: 1px solid red;
+ width: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+`
+
/**
* Renders floating Ad banners on desktop
*/
@@ -9,7 +24,14 @@ export const DesktopCard = () => {
const portalRoot = getPortalRoot()
const { isDesktop } = useMatchBreakpoints()
- return portalRoot && isDesktop ? createPortal(, portalRoot) : null
+ return portalRoot && isDesktop
+ ? createPortal(
+
+
+ ,
+ portalRoot,
+ )
+ : null
}
/**
@@ -17,5 +39,9 @@ export const DesktopCard = () => {
*/
export const MobileCard = () => {
const { isDesktop } = useMatchBreakpoints()
- return !isDesktop ? : null
+ return !isDesktop ? (
+
+
+
+ ) : null
}
diff --git a/apps/web/src/pages/_app.tsx b/apps/web/src/pages/_app.tsx
index 5ef84c5b1d367..ae04ce8e4117f 100644
--- a/apps/web/src/pages/_app.tsx
+++ b/apps/web/src/pages/_app.tsx
@@ -180,6 +180,7 @@ const App = ({ Component, pageProps }: AppPropsWithLayout) => {
+ {/* */}
diff --git a/apps/web/src/views/SwapSimplify/index.tsx b/apps/web/src/views/SwapSimplify/index.tsx
index e7a82012e93fa..49ba5910bc389 100644
--- a/apps/web/src/views/SwapSimplify/index.tsx
+++ b/apps/web/src/views/SwapSimplify/index.tsx
@@ -3,6 +3,7 @@ import { BottomDrawer, Box, Flex, useMatchBreakpoints } from '@pancakeswap/uikit
import { useRouter } from 'next/router'
import { useContext, useEffect, useState } from 'react'
+import { AdPanel } from 'components/AdPanel'
import { useCurrency } from 'hooks/Tokens'
import { useSwapHotTokenDisplay } from 'hooks/useSwapHotTokenDisplay'
import { Field } from 'state/swap/actions'
@@ -130,6 +131,8 @@ export default function V4Swap() {
+
+
)
}