card details to mugic

This commit is contained in:
Daniel
2017-11-18 03:09:37 -05:00
parent 045ca13d80
commit 8d4677767e
6 changed files with 35 additions and 1 deletions

View File

@@ -59,7 +59,11 @@ export default class SingleMugic extends React.Component {
return(<PageNotFound location={this.props.location}/>);
}
// TODO mugic card details
let cost = [];
for (let i = 0; i < card_data.gsx$cost; i++) {
cost.push(<img key={i} className="icon" src={"/src/img/icons/mugic/"+tribe.toLowerCase()+".png"} alt="mugic counter"/>);
}
// TODO mugic splash art
return (
<div className={tribe.toLowerCase()}>
@@ -76,10 +80,40 @@ export default class SingleMugic extends React.Component {
{mugic.gsx$details}
</div>
<hr />
<div>
<strong>Card ID: </strong>
{card_data.gsx$cardid}
</div>
<hr />
<div>
<strong>Set: </strong>
{card_data.gsx$set}
</div>
<hr />
<div>
<strong>Rarity: </strong>
{card_data.gsx$rarity}
</div>
<hr />
<div>
<strong>Tribe: </strong>
<img className="icon" style={{width: "20px"}} src={"/src/img/icons/tribes/"+tribe.toLowerCase()+".png"}></img>{tribe}
</div>
<hr />
<div>
<strong>Cost: </strong>
{cost}
</div>
<hr />
<div>
<strong>Ability:</strong><br />
{card_data.gsx$ability}
</div>
<hr />
<div>
<strong>Flavortext:</strong><br />
{card_data.gsx$flavortext}
</div>
</div>
);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB