refactor(stargalaxy): remove unused frameGradients/frameStyle from PodiumCard (user to redesign)
This commit is contained in:
parent
32bc65aa1b
commit
6231295e36
@ -55,22 +55,11 @@ const labelSizes = {
|
|||||||
6: { w: 78, h: 18, font: 11 },
|
6: { w: 78, h: 18, font: 11 },
|
||||||
};
|
};
|
||||||
|
|
||||||
// 外框颜色(金/银/铜)
|
|
||||||
const frameGradients = {
|
|
||||||
4: "radial-gradient(ellipse at -10% 5%, #FFD700 0%, #FF3939 32%, #FFEDA5 59%, #FF6B6B 100%)",
|
|
||||||
5: "radial-gradient(ellipse at -10% 5%, #C0C0C0 0%, #FF6B6B 32%, #E8E8E8 59%, #9A9A9A 100%)",
|
|
||||||
6: "radial-gradient(ellipse at -10% 5%, #CD7F32 0%, #FF3939 32%, #E8A45C 59%, #A0522D 100%)",
|
|
||||||
};
|
|
||||||
|
|
||||||
const cardStyle = {
|
const cardStyle = {
|
||||||
width: props.size.width + "rpx",
|
width: props.size.width + "rpx",
|
||||||
height: props.size.height + "rpx",
|
height: props.size.height + "rpx",
|
||||||
};
|
};
|
||||||
|
|
||||||
const frameStyle = {
|
|
||||||
background: frameGradients[props.rank],
|
|
||||||
};
|
|
||||||
|
|
||||||
const labelStyle = {
|
const labelStyle = {
|
||||||
width: labelSizes[props.rank].w + "rpx",
|
width: labelSizes[props.rank].w + "rpx",
|
||||||
height: labelSizes[props.rank].h + "rpx",
|
height: labelSizes[props.rank].h + "rpx",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user