parent
75b4854071
commit
d529844b5d
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
@ -0,0 +1,28 @@ |
|||||||
|
import { |
||||||
|
ClientConfig, |
||||||
|
ClientIds, |
||||||
|
ClientNames, |
||||||
|
} from './types' |
||||||
|
|
||||||
|
export const lff: ClientConfig = { |
||||||
|
auth: { |
||||||
|
clientId: ClientIds.Lff, |
||||||
|
}, |
||||||
|
defaultLanguage: 'en', |
||||||
|
description: 'Live sports streaming platform. Football, basketball, ice hockey and more. Access to various player playlists and game highlights. Multiple subscription options. Available across all devices.', |
||||||
|
disabledPreferences: true, |
||||||
|
name: ClientNames.Lff, |
||||||
|
privacyLink: '/clients/instat/terms-and-conditions.html', |
||||||
|
showSearch: true, |
||||||
|
styles: { |
||||||
|
background: 'background-image: url(/images/Checker.png);', |
||||||
|
logo: 'lff_auth_logo.svg', |
||||||
|
logoHeight: 6, |
||||||
|
logoLeft: 1.2, |
||||||
|
logoTop: 1.2, |
||||||
|
logoWidth: 6, |
||||||
|
matchLogoHeight: 2.5, |
||||||
|
matchLogoWidth: 2.5, |
||||||
|
}, |
||||||
|
title: 'InStat TV - The Home of Sports Streaming', |
||||||
|
} |
||||||
@ -0,0 +1,42 @@ |
|||||||
|
import styled, { css } from 'styled-components/macro' |
||||||
|
|
||||||
|
import { lff as platformLff } from 'config/clients/lff' |
||||||
|
|
||||||
|
import type { ClientConfig } from './types' |
||||||
|
|
||||||
|
const Background = styled.div` |
||||||
|
position: relative; |
||||||
|
width: 100%; |
||||||
|
min-height: 100vh; |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
background: linear-gradient(18.42deg, #242321 8.36%, #242321 42.61%, #DB1C49 86.2%); |
||||||
|
` |
||||||
|
|
||||||
|
export const lff: ClientConfig = { |
||||||
|
...platformLff, |
||||||
|
background: Background, |
||||||
|
styles: { |
||||||
|
input: css` |
||||||
|
background-color: transparent; |
||||||
|
:not(:last-child) { |
||||||
|
border-color: ${({ theme }) => theme.colors.text100}; |
||||||
|
} |
||||||
|
`,
|
||||||
|
inputGroup: css` |
||||||
|
border: 1px solid ${({ theme }) => theme.colors.text100}; |
||||||
|
`,
|
||||||
|
loader: css` |
||||||
|
color: #00257A; |
||||||
|
`,
|
||||||
|
logo: css` |
||||||
|
background-image: url(/images/lff_auth_logo.svg); |
||||||
|
height: 220px; |
||||||
|
width: 220px; |
||||||
|
`,
|
||||||
|
submitButton: css` |
||||||
|
background-color: #DF1C4A; |
||||||
|
color: white; |
||||||
|
`,
|
||||||
|
}, |
||||||
|
} |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
import { isMobileDevice } from 'config/userAgent' |
||||||
|
import { client } from 'config/clients' |
||||||
|
|
||||||
|
export const getSwitchScoreIconName = () => { |
||||||
|
switch (true) { |
||||||
|
case client.name === 'lff' && !isMobileDevice: |
||||||
|
return 'score-switch-lff' |
||||||
|
case client.name === 'lff' && isMobileDevice: |
||||||
|
return 'score-switch-lff-mobile' |
||||||
|
case client.name !== 'lff' && !isMobileDevice: |
||||||
|
return 'score-switch' |
||||||
|
case client.name !== 'lff' && isMobileDevice: |
||||||
|
return 'score-switch-mobile' |
||||||
|
default: |
||||||
|
return 'score-switch' |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
import includes from 'lodash/includes' |
||||||
|
|
||||||
|
import { client } from 'config/clients' |
||||||
|
import { SportTypes } from 'config/sportTypes' |
||||||
|
|
||||||
|
export const isPermittedTournament = ( |
||||||
|
tournamentId: number, |
||||||
|
sportType: SportTypes, |
||||||
|
) => { |
||||||
|
if (client.name !== 'lff') { |
||||||
|
return true |
||||||
|
} |
||||||
|
|
||||||
|
return includes([928, 1620], tournamentId) && sportType === 1 |
||||||
|
} |
||||||
Loading…
Reference in new issue