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';
import { SliseAd } from '@slise/embed-react';
import React from 'react';
import useIsMobile from 'lib/hooks/useIsMobile';
const SliseBanner = ({ className }: { className?: string }) => {
const isMobile = useIsMobile();
return (
<Flex className={ className } h="90px">
<>
<Flex className={ className } h="90px" display={{ base: 'none', lg: 'flex' }}>
<SliseAd
slotId="leaderboard"
pub="pub-10"
format="728x90"
style={{ width: '728px', height: '90px' }}/>
</Flex>
<Flex className={ className } h="90px" display={{ base: 'flex', lg: 'none' }}>
<SliseAd
slotId="leaderboard"
pub="pub-10"
format={ isMobile ? '270x90' : '728x90' }
style={{ width: isMobile ? '270px' : '728px', height: '90px' }}/>
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