parent
c7ad03f3bb
commit
38190b1176
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 598 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 102 KiB |
@ -0,0 +1,18 @@ |
||||
import { isMobileDevice } from 'config/userAgent' |
||||
|
||||
const degree = isMobileDevice ? '270deg' : '0deg' |
||||
|
||||
export const getCardColor = (id: number | undefined): string => { |
||||
const defaultColor = 'none' |
||||
|
||||
if (!id) return defaultColor |
||||
|
||||
switch (id) { |
||||
case 928: |
||||
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(49,186,177,1) 100%);` |
||||
case 1620: |
||||
return `linear-gradient(${degree}, rgba(63,63,63,1) 35%, rgba(96,24,75,1) 100%);` |
||||
default: |
||||
return defaultColor |
||||
} |
||||
} |
||||
Loading…
Reference in new issue