Request ui #16
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import '../app.css';
|
require('../app.scss');
|
||||||
|
|
||||||
class MovieObject {
|
class MovieObject {
|
||||||
constructor(object) {
|
constructor(object) {
|
||||||
@@ -24,6 +24,23 @@ class MovieObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getElement() {
|
getElement() {
|
||||||
|
var movie_wrapper = {
|
||||||
|
display: 'flex',
|
||||||
|
alignContent: 'center',
|
||||||
|
width: '30%',
|
||||||
|
backgroundColor: '#ffffff',
|
||||||
|
height: '231px',
|
||||||
|
margin: '20px',
|
||||||
|
boxShadow: '0px 0px 5px 1px rgba(0,0,0,0.15)'
|
||||||
|
}
|
||||||
|
var movie_content = {
|
||||||
|
marginLeft: '15px'
|
||||||
|
}
|
||||||
|
var movie_header = {
|
||||||
|
fontSize: '1.6' + 'em'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var posterPath = 'https://image.tmdb.org/t/p/w154' + this.poster;
|
var posterPath = 'https://image.tmdb.org/t/p/w154' + this.poster;
|
||||||
var buttonState;
|
var buttonState;
|
||||||
if (this.matchedInPlex) {
|
if (this.matchedInPlex) {
|
||||||
@@ -33,10 +50,10 @@ class MovieObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={this.id} className='movie_wrapper'>
|
<div key={this.id} style={movie_wrapper}>
|
||||||
<img src={posterPath}></img>
|
<img src={posterPath}></img>
|
||||||
<div className='movie_content'>
|
<div style={movie_content}>
|
||||||
<span className='movie_header'>{this.title} ({this.year})</span>
|
<span style={movie_header}>{this.title} ({this.year})</span>
|
||||||
<br></br>
|
<br></br>
|
||||||
{buttonState}
|
{buttonState}
|
||||||
<br></br>
|
<br></br>
|
||||||
|
|||||||
Reference in New Issue
Block a user