style(#in485): header background color changes for some tournaments

fix(#in484): makefile fix

style(in485): match card color fixed

fix(#in485): makefile stage h fix
pull/153/head
Farber Denis 3 years ago
parent a910921bde
commit 44a550a67d
  1. 4
      src/config/lffTournaments.tsx
  2. 7
      src/features/ProfileHeader/hooks.tsx
  3. 5
      src/helpers/getCardColor/index.tsx
  4. 5
      src/helpers/getColor/index.ts

@ -7,4 +7,8 @@ export const lffTournamentsList = [
5975,
5976,
6004,
1000045,
1000046,
1000047,
1000048,
]

@ -47,10 +47,15 @@ export const useProfileColor = (profileId?: number) => {
5975,
5976,
6004,
1000045,
1000046,
1000047,
1000048,
]
// eslint-disable-next-line postro4no/function-args
if (client.name === 'lff' && profileId && lffColorConfig.includes(profileId)) {
return getColor(profileId)
}
return color
}

@ -22,6 +22,11 @@ export const getCardColor = (id: number | undefined): string => {
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(192,166,96,1) 100%);`
case 6004:
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(79,81,205,1) 100%);`
case 100045:
case 100046:
case 100047:
case 100048:
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(55, 179, 72,1) 100%);`
default:
return defaultColor
}

@ -28,6 +28,11 @@ export const getColor = (id: number | undefined): string => {
return 'linear-gradient(90deg, rgba(114,103,76,1) 0%, rgba(192,166,96,1) 100%);'
case 6004:
return 'linear-gradient(255.69deg, #474AF1 15.59%, #202284 94.93%);'
case 1000045:
case 1000046:
case 1000047:
case 1000048:
return 'linear-gradient(255.69deg, #37B348 15.59%, #003E08 94.93%);'
case 5665:
case 23:
case 2719:

Loading…
Cancel
Save