Lint cleanup, center text on images.
This commit is contained in:
parent
9b1080c43e
commit
0e9274f3fe
@ -9,6 +9,10 @@
|
|||||||
cursor: crosshair;
|
cursor: crosshair;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.frame .name {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,6 @@ import './App.css';
|
|||||||
import {
|
import {
|
||||||
Columns,
|
Columns,
|
||||||
Heading,
|
Heading,
|
||||||
Media,
|
|
||||||
} from 'react-bulma-components';
|
} from 'react-bulma-components';
|
||||||
|
|
||||||
|
|
||||||
@ -186,7 +185,7 @@ class App extends React.Component {
|
|||||||
});
|
});
|
||||||
|
|
||||||
images = imageMetadata.map((metadata) => {
|
images = imageMetadata.map((metadata) => {
|
||||||
let {name, size, ratio, image} = metadata;
|
let {name, ratio, image} = metadata;
|
||||||
let width = 256;
|
let width = 256;
|
||||||
let height = (ratio * width).toFixed();
|
let height = (ratio * width).toFixed();
|
||||||
let url = ROOT + image + '?t=' + timestamp;
|
let url = ROOT + image + '?t=' + timestamp;
|
||||||
@ -215,7 +214,7 @@ class App extends React.Component {
|
|||||||
onWheel={mouseScroll}
|
onWheel={mouseScroll}
|
||||||
className="frame"
|
className="frame"
|
||||||
style={{backgroundImage: 'url("' + url + '")', ...style}}>
|
style={{backgroundImage: 'url("' + url + '")', ...style}}>
|
||||||
<p>{name}</p>
|
<p className="name">{name}</p>
|
||||||
</div>)
|
</div>)
|
||||||
});
|
});
|
||||||
mainContent = <div>
|
mainContent = <div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user