diff --git a/package.json b/package.json
index 8c4c954d..9eba47e8 100644
--- a/package.json
+++ b/package.json
@@ -17,6 +17,7 @@
"facr": "REACT_APP_CLIENT=facr react-scripts start",
"lff": "REACT_APP_CLIENT=lff react-scripts start",
"india": "REACT_APP_CLIENT=india react-scripts start",
+ "tunis": "REACT_APP_CLIENT=tunis react-scripts start",
"insports": "REACT_APP_CLIENT=insports react-scripts start"
},
"dependencies": {
diff --git a/public/images/tunis-logo.svg b/public/images/tunis-logo.svg
new file mode 100644
index 00000000..9f66058e
--- /dev/null
+++ b/public/images/tunis-logo.svg
@@ -0,0 +1,29 @@
+
diff --git a/public/images/tunis_auth_logo.svg b/public/images/tunis_auth_logo.svg
new file mode 100644
index 00000000..1b26b37c
--- /dev/null
+++ b/public/images/tunis_auth_logo.svg
@@ -0,0 +1,36 @@
+
diff --git a/src/config/clients/index.tsx b/src/config/clients/index.tsx
index aef4ea7d..f6835d60 100644
--- a/src/config/clients/index.tsx
+++ b/src/config/clients/index.tsx
@@ -5,6 +5,7 @@ import { instat } from './instat'
import { lff } from './lff'
import { insports } from './insports'
import { india } from './india'
+import { tunis } from './tunis'
export const currentClient = process.env.REACT_APP_CLIENT || 'insports'
@@ -13,6 +14,7 @@ export const isInSportsClient = currentClient === 'insports'
export const isInstatClient = currentClient === 'instat'
export const isFacrClient = currentClient === 'facr'
export const isIndiaClient = currentClient === 'india'
+export const isTunisClient = currentClient === 'tunis'
const clients = {
facr,
@@ -20,6 +22,7 @@ const clients = {
insports,
instat,
lff,
+ tunis,
}
export const client: ClientConfig = clients[currentClient]
diff --git a/src/config/clients/tunis.tsx b/src/config/clients/tunis.tsx
new file mode 100644
index 00000000..6764be26
--- /dev/null
+++ b/src/config/clients/tunis.tsx
@@ -0,0 +1,57 @@
+import { css } from 'styled-components/macro'
+
+import {
+ ClientConfig,
+ ClientIds,
+ ClientNames,
+} from './types'
+
+const randomHash = () => (
+ (Math.random() ** Math.random()) * 9999999999999999
+)
+
+export const tunis: ClientConfig = {
+ auth: {
+ clientId: ClientIds.Tunis,
+ metaDataUrlParams: `?hash=${randomHash()}`,
+ },
+ defaultLanguage: 'fr',
+ description: 'Live sports streaming platform. All matches playing under the auspices of Czech Republic FA. Access to full matches, various player playlists, and highlights. Free access in the Czech Republic. Available across all devices',
+ disabledPreferences: false,
+ name: ClientNames.Tunis,
+ privacyLink: '/privacy-policy-and-statement',
+ showSearch: false,
+ styles: {
+ background: '',
+ homePageHeader: css`
+ background: radial-gradient(
+ 160.34% 257.27% at -7.45% 162.22%,
+ #2AB7AA 3.27%,
+ #02505C 43.69%, #0B2E4D 100%);
+ `,
+ logo: 'tunis-logo.svg',
+ logoHeight: 6.3,
+ logoLeft: 1.1,
+ logoTop: 1.74,
+ logoWidth: 8.25,
+ matchLogoHeight: 3.4,
+ matchLogoTopMargin: 0.9,
+ matchLogoWidth: 4.5,
+ matchPageMobileHeaderLogo: css`
+ width: 35px;
+ height: 25px;
+ top: 2px;
+ `,
+ mobileHeaderLogo: css`
+ width: 48px;
+ height: 37px;
+ `,
+ userAccountLogo: css`
+ width: 4.56rem;
+ height: 3.488rem;
+ `,
+ },
+ termsLink: '/terms-and-conditions?client_id=facr-ott-web',
+ title: 'FACR.TV - The home of Czech football streaming',
+ userAccountLinksDisabled: true,
+}
diff --git a/src/config/clients/types.tsx b/src/config/clients/types.tsx
index 7f45e754..98c61297 100644
--- a/src/config/clients/types.tsx
+++ b/src/config/clients/types.tsx
@@ -10,6 +10,7 @@ export enum ClientIds {
Insports = 'insports-ott-web',
Instat = 'ott-web',
Lff = 'lff-ott-web',
+ Tunis = 'tunis-ott-web',
}
export enum ClientNames {
@@ -18,6 +19,7 @@ export enum ClientNames {
Insports = 'insports',
Instat = 'instat',
Lff = 'lff',
+ Tunis = 'tunis',
}
export type ClientConfig = {
diff --git a/src/features/AuthServiceApp/components/ConfirmPopup/styled.tsx b/src/features/AuthServiceApp/components/ConfirmPopup/styled.tsx
index 1123334b..91a89512 100644
--- a/src/features/AuthServiceApp/components/ConfirmPopup/styled.tsx
+++ b/src/features/AuthServiceApp/components/ConfirmPopup/styled.tsx
@@ -11,6 +11,8 @@ import {
HeaderTitle,
} from 'features/AuthServiceApp/components/RegisterPopup/styled'
+import { client } from '../../config/clients/index'
+
export const Modal = styled(BaseModal)`
${ModalWindow} {
min-height: 220px;
@@ -59,6 +61,7 @@ export const ScApplyButton = styled(ApplyButton)`
font-size: 14px;
`
: ''};
+ ${client.styles.popupApplyButton}
`
export const ScLink = styled.a`
diff --git a/src/features/AuthServiceApp/components/RegisterPopup/index.tsx b/src/features/AuthServiceApp/components/RegisterPopup/index.tsx
index 8aef84d2..6d8d78b5 100644
--- a/src/features/AuthServiceApp/components/RegisterPopup/index.tsx
+++ b/src/features/AuthServiceApp/components/RegisterPopup/index.tsx
@@ -25,11 +25,6 @@ export const RegisterPopup = (props: Props) => {
isModalOpen,
} = props
- // const handleNewConfirmation = () => {
- // // TODO дописать логику для отправки доп. письма, может понадобится, когда допишут бэк
- // // console.log('send new confirmation')
- // }
-
return (
@@ -53,9 +48,6 @@ export const RegisterPopup = (props: Props) => {