updated sigils for moons and comets

This commit is contained in:
Isaac Visintainer 2019-07-23 11:32:13 -07:00
parent 651e9820f1
commit 2cb76fd8e3
2 changed files with 47 additions and 28 deletions

View File

@ -6,20 +6,29 @@ export class Sigil extends Component {
render() {
const { props } = this;
return (
<div
className="bg-black"
style={{ flexBasis: 32 }}>
{
sigil({
patp: props.ship,
renderer: reactRenderer,
size: props.size,
colors: ['black', 'white'],
})
}
</div>
);
console.log("sigil ship", props.ship);
if (props.ship.length > 14) {
return (
<div className="bg-black" style={{width: 32, height: 32}}>
</div>
);
} else {
return (
<div
className="bg-black"
style={{ flexBasis: 32 }}>
{
sigil({
patp: props.ship,
renderer: reactRenderer,
size: props.size,
colors: ['black', 'white'],
})
}
</div>
);
}
}
}

View File

@ -6,20 +6,30 @@ export class Sigil extends Component {
render() {
const { props } = this;
return (
<div
className="bg-black"
style={{ flexBasis: 35, padding: 4 }}>
{
sigil({
patp: props.ship,
renderer: reactRenderer,
size: props.size,
colors: ['black', 'white'],
})
}
</div>
);
console.log("sigil ship", props.ship);
if (props.ship.length > 14) {
return (
<div className="bg-black" style={{width: 44, height: 44}}>
</div>
);
} else {
return (
<div
className="bg-black"
style={{ flexBasis: 35, padding: 4 }}>
{
sigil({
patp: props.ship,
renderer: reactRenderer,
size: props.size,
colors: ['black', 'white'],
})
}
</div>
);
}
}
}