You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spa_instat_tv/src/features/Logo/index.tsx

28 lines
645 B

import styled, { css } from 'styled-components/macro'
import { isMobileDevice } from 'config/userAgent'
import { client } from 'config/clients'
type Props = {
height?: number,
width?: number,
}
export const Logo = styled.div<Props>`
display: block;
width: ${client.styles.logoWidth}rem;
height: ${client.styles.logoHeight}rem;
background-size: contain;
background-repeat: no-repeat;
background-image: url(/images/${client.styles.logo});
${isMobileDevice
? css`
width: 144px;
height: 33px;
@media screen and (orientation: landscape){
width: 92px;
height: 22px;
}
`
: ''}
`