Commit 6f12064a authored by isstuev's avatar isstuev

maybe not the best solution

parent aa747838
...@@ -2,18 +2,25 @@ import { Flex, chakra } from '@chakra-ui/react'; ...@@ -2,18 +2,25 @@ import { Flex, chakra } from '@chakra-ui/react';
import { SliseAd } from '@slise/embed-react'; import { SliseAd } from '@slise/embed-react';
import React from 'react'; import React from 'react';
import useIsMobile from 'lib/hooks/useIsMobile';
const SliseBanner = ({ className }: { className?: string }) => { const SliseBanner = ({ className }: { className?: string }) => {
const isMobile = useIsMobile();
return ( return (
<Flex className={ className } h="90px"> <>
<SliseAd <Flex className={ className } h="90px" display={{ base: 'none', lg: 'flex' }}>
slotId="leaderboard" <SliseAd
pub="pub-10" slotId="leaderboard"
format={ isMobile ? '270x90' : '728x90' } pub="pub-10"
style={{ width: isMobile ? '270px' : '728px', height: '90px' }}/> format="728x90"
</Flex> style={{ width: '728px', height: '90px' }}/>
</Flex>
<Flex className={ className } h="90px" display={{ base: 'flex', lg: 'none' }}>
<SliseAd
slotId="leaderboard"
pub="pub-10"
format="270x90"
style={{ width: '270px', height: '90px' }}/>
</Flex>
</>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment