mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-27 08:00:51 +01:00
started bonus rare widget
This commit is contained in:
parent
789aa3c183
commit
9594843e2e
@ -130,3 +130,4 @@
|
||||
}
|
||||
|
||||
@import './views/widgets/promo-article/PromoArticleWidgetView.scss';
|
||||
@import './views/widgets/bonus-rare/BonusRareWidgetView.scss';
|
||||
|
@ -0,0 +1,10 @@
|
||||
.bonus-rare {
|
||||
height: 100px;
|
||||
justify-content: center;
|
||||
|
||||
.bonus-bar-container {
|
||||
height: 30px;
|
||||
width: 300px;
|
||||
border: 2px ridge #e2e2e2;
|
||||
}
|
||||
}
|
@ -26,7 +26,15 @@ export const BonusRareWidgetView: FC<BonusRareWidgetViewProps> = props =>
|
||||
|
||||
CreateMessageHook(BonusRareInfoMessageEvent, onBonusRareInfoMessageEvent);
|
||||
|
||||
if(!productType) return (null);
|
||||
if (!productType) return (null);
|
||||
|
||||
return (<div className="bonus-rare widget">{productType}</div>);
|
||||
return (
|
||||
<div className="bonus-rare widget d-flex">
|
||||
{productType}
|
||||
<div className="bg-light-dark rounded overflow-hidden position-relative bonus-bar-container">
|
||||
<div className="d-flex justify-content-center align-items-center w-100 h-100 position-absolute small top-0">{(totalCoinsForBonus - coinsStillRequiredToBuy) + '/' + totalCoinsForBonus}</div>
|
||||
<div className="small bg-info rounded position-absolute top-0 h-100" style={{ width: ((totalCoinsForBonus - coinsStillRequiredToBuy) / totalCoinsForBonus) * 100 + '%' }}></div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user