Worked on Flamelink stylings for images but didn't really get anywhere

This commit is contained in:
ajmaley 2018-11-01 22:51:05 -04:00
parent 4fba3db3db
commit 7df07ff7c4
2 changed files with 4 additions and 3 deletions

View File

@ -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>
); );
} }

View File

@ -7,7 +7,7 @@ class Home extends Component {
constructor() { constructor() {
super(); super();
global.schemaName = 'martenInfo'; global.schemaName = 'martenHome';
this.state = { this.state = {
schemaDetails: '', schemaDetails: '',