diff --git a/.drone.yml b/.drone.yml index 02b7db11..90ad5aeb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1007,3 +1007,56 @@ steps: - aws cloudfront create-invalidation --distribution-id E15IFY23VM147K --paths "/*" depends_on: - make-rustat + +--- +kind: pipeline +type: docker +name: deploy rfs.insports.tv + +concurrency: + limit: 1 + +platform: + os: linux + arch: amd64 + +trigger: + ref: + - refs/heads/rfs.insports.tv + +steps: + - name: npm-install + image: node:16-alpine + environment: + REACT_APP_STRIPE_PK: + from_secret: REACT_APP_STRIPE_PK + commands: + - apk add --no-cache make + - npm install --legacy-peer-deps + + - name: make-rustat + image: node:16-alpine + environment: + REACT_APP_STRIPE_PK: + from_secret: REACT_APP_STRIPE_PK + commands: + - apk add --no-cache make + - make rustat-prod + depends_on: + - npm-install + + - name: deploy-rustat + image: amazon/aws-cli:latest + environment: + AWS_ACCESS_KEY_ID: + from_secret: AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY: + from_secret: AWS_SECRET_ACCESS_KEY + AWS_DEFAULT_REGION: + from_secret: AWS_DEFAULT_REGION + AWS_MAX_ATTEMPTS: 10 + commands: + - aws s3 sync build_rustat s3://insports-tv-rfs --delete + - aws cloudfront create-invalidation --distribution-id E18H8A81EDT65V --paths "/*" + depends_on: + - make-rustat diff --git a/public/images/logo-rustat.png b/public/images/logo-rustat.png new file mode 100644 index 00000000..f230f5f6 Binary files /dev/null and b/public/images/logo-rustat.png differ diff --git a/public/images/logo-rustat.svg b/public/images/logo-rustat.svg deleted file mode 100644 index 4984e9a1..00000000 --- a/public/images/logo-rustat.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/config/clients/rustat.tsx b/src/config/clients/rustat.tsx index caf369b1..043c10bb 100644 --- a/src/config/clients/rustat.tsx +++ b/src/config/clients/rustat.tsx @@ -25,27 +25,27 @@ export const rustat: ClientConfig = { styles: { background: 'background-image: url(/images/Checker.png);', homePageHeader: css` - background: #0B456E; + background: #120F46; `, - logo: 'logo-rustat.svg', - logoHeight: 2.465, - logoLeft: 1.7, - logoTop: 1.5, - logoWidth: 6.37, - matchLogoHeight: 2.465, - matchLogoWidth: 6.37, + logo: 'logo-rustat.png', + logoHeight: 6, + logoLeft: 1.2, + logoTop: 1.2, + logoWidth: 6, + matchLogoHeight: 2.5, + matchLogoWidth: 2.5, matchPageMobileHeaderLogo: css` - width: 90px; + width: 27px; height: 27px; top: 0; `, mobileHeaderLogo: css` - width: 77px; - height: 24px; + width: 42px; + height: 42px; `, userAccountLogo: css` - width: 6.37rem; - height: 2.465rem; + width: 80px; + height: 80px; `, }, termsLink: '', diff --git a/src/features/AuthServiceApp/config/clients/rustat.tsx b/src/features/AuthServiceApp/config/clients/rustat.tsx index 48f36563..4b682b6e 100644 --- a/src/features/AuthServiceApp/config/clients/rustat.tsx +++ b/src/features/AuthServiceApp/config/clients/rustat.tsx @@ -12,9 +12,9 @@ export const rustat: ClientConfig = { background: Background, styles: { centerBlock: css` - margin-top: 9.15rem; + margin-top: 5.15rem; ${isMobileDevice ? css` - margin-top: 107px; + margin-top: 60px; @media screen and (orientation: landscape) { width: 290px; margin: auto; @@ -22,20 +22,16 @@ export const rustat: ClientConfig = { ` : ''}; `, logo: css` - background-image: url(/images/logo-rustat.svg); + background-image: url(/images/logo-rustat.png); background-position: center; - height: 85px; - width: 275px; - margin-bottom: 1.82rem; + height: 220px; + width: 220px; + margin-bottom: 1rem; ${isMobileDevice ? css` margin-bottom: 15px; - width: 165px; - height: 50px; - @media screen and (orientation: landscape){ - width: 92px; - height: 22px; - } + width: 74px; + height: 74px; ` : ''} `, }, diff --git a/src/features/Theme/config.tsx b/src/features/Theme/config.tsx index 00b082f9..0fcf984c 100644 --- a/src/features/Theme/config.tsx +++ b/src/features/Theme/config.tsx @@ -138,7 +138,7 @@ export const rustatTheme: CustomTheme = { colors: { ...defaultTheme.colors, matchCardBackground: 'linear-gradient(180deg, #31BAB1 0%, #3F3F3F 50%)', - matchHeaderBackground: '#0B456E', + matchHeaderBackground: '#120F46', }, name: 'rustat', }