link rework, description bg

This commit is contained in:
Mashy
2019-11-07 19:03:36 +10:00
parent bbfeb22a3f
commit 4514d6c0c2
4 changed files with 26 additions and 37 deletions
+4 -1
View File
@@ -264,7 +264,10 @@
padding-left: 1em;
padding-right: 1em;
text-align: center;
background-color: black;
z-index: 2;
span {
background-color: black;
}
svg {
display: inline;
height: 1em;
+6 -4
View File
@@ -143,12 +143,14 @@ class GameConstruct extends Component {
const fullInfo = itemInfo.items.find(k => k.item === gameSkillInfo.skill) || INFO[gameSkillInfo.skill];
const regEx = /(RedPower|BluePower|GreenPower|RedLife|BlueLife|GreenLife|SpeedStat)/;
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => shapes[match]());
const speed = <div> Speed {shapes.SpeedStat()} multiplier {fullInfo.speed * 4}% </div>;
const speed = <span> Speed {shapes.SpeedStat()} multiplier {fullInfo.speed * 4}% </span>;
return (
<div class="skill-description">
<h2> {gameSkillInfo.skill} </h2>
<div> {infoDescription} </div>
{speed}
<span>
<h2> {gameSkillInfo.skill} </h2>
{infoDescription}
{speed}
</span>
</div>);
}
const effects = construct.effects.length