Worked on Flamelink stylings for images but didn't really get anywhere
This commit is contained in:
parent
4fba3db3db
commit
7df07ff7c4
|
@ -1,6 +1,7 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import flamelinkApp from '../flamelink.js';
|
import flamelinkApp from '../flamelink.js';
|
||||||
|
|
||||||
|
|
||||||
class FlameLinkImage extends Component {
|
class FlameLinkImage extends Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
@ -15,13 +16,13 @@ class FlameLinkImage extends Component {
|
||||||
.then(url => this.setState({
|
.then(url => this.setState({
|
||||||
mediaURL: url
|
mediaURL: url
|
||||||
}))
|
}))
|
||||||
return <img src={this.state.mediaURL} width='100%' alt='' />
|
return <img src={this.state.mediaURL} max-width="500" width="100%" alt='' />
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return(
|
return(
|
||||||
<div>
|
<div>
|
||||||
{this.getImage(this.props.content)}
|
{this.getImage(this.props.content)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ class Home extends Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
global.schemaName = 'martenInfo';
|
global.schemaName = 'martenHome';
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
schemaDetails: '',
|
schemaDetails: '',
|
||||||
|
|
Loading…
Reference in New Issue