mirror of
https://github.com/urbit/shrub.git
synced 2025-01-04 10:32:34 +03:00
launch: add class exemptions for Dojo tile
This commit is contained in:
parent
0b857fa70a
commit
816b31ee7a
@ -4,22 +4,28 @@ import { Link } from 'react-router-dom';
|
|||||||
|
|
||||||
import Tile from './tile';
|
import Tile from './tile';
|
||||||
|
|
||||||
|
|
||||||
export default class BasicTile extends React.PureComponent {
|
export default class BasicTile extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { props } = this;
|
const { props } = this;
|
||||||
|
|
||||||
const children = (
|
const children = (
|
||||||
<span>
|
<span>
|
||||||
<p className="black white-d absolute f9"
|
<p className={
|
||||||
style={{left: 8, top: 8}}>{props.title}</p>
|
classnames('absolute f9',
|
||||||
|
{ 'black white-d': props.title !== 'Dojo',
|
||||||
|
'white': props.title === 'Dojo' })}
|
||||||
|
style={{ left: 8, top: 8 }}
|
||||||
|
>
|
||||||
|
{props.title}
|
||||||
|
</p>
|
||||||
<img
|
<img
|
||||||
className="absolute invert-d"
|
className={classnames('absolute',
|
||||||
|
{ 'invert-d': props.title !== 'Dojo' })}
|
||||||
style={{ left: 38, top: 38 }}
|
style={{ left: 38, top: 38 }}
|
||||||
src={props.iconUrl}
|
src={props.iconUrl}
|
||||||
width={48}
|
width={48}
|
||||||
height={48} />
|
height={48}
|
||||||
|
/>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -37,10 +43,11 @@ export default class BasicTile extends React.PureComponent {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Tile>
|
<Tile>
|
||||||
<div className={"w-100 h-100 relative bg-white bg-gray0-d ba " +
|
<div className={classnames('w-100 h-100 relative ba b--black b--gray1-d bg-gray0-d',
|
||||||
"b--black b--gray1-d"}>{tile}</div>
|
{ 'bg-white': props.title !== 'Dojo',
|
||||||
|
'bg-black': props.title === 'Dojo' })}
|
||||||
|
>{tile}</div>
|
||||||
</Tile>
|
</Tile>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user