mirror of
https://github.com/devfake/flox.git
synced 2024-11-15 06:32:34 +01:00
minor
This commit is contained in:
parent
405cef27f2
commit
95d92fe2c7
@ -3,7 +3,7 @@ import Router from 'react-router';
|
||||
import Api from './api';
|
||||
import Home from './sites/home';
|
||||
import Category from './sites/category';
|
||||
//import Show from './partials/show';
|
||||
import Show from './sites/show';
|
||||
import Header from './partials/header';
|
||||
import Footer from './partials/footer';
|
||||
|
||||
@ -24,12 +24,11 @@ class Flox extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
// Mäh...
|
||||
// <Route path=":category/:item" handler={Show} />
|
||||
let routes = (
|
||||
<Route handler={Flox} path={config.uri}>
|
||||
<Route handler={Home} />
|
||||
<Route path=":category" handler={Category} />
|
||||
<Route path=":category/:item" handler={Show} />
|
||||
</Route>
|
||||
);
|
||||
|
||||
|
@ -16,7 +16,9 @@ class Show extends React.Component {
|
||||
render() {
|
||||
let style = {
|
||||
backgroundImage:
|
||||
this.state.item.poster == 'null' || typeof this.state.item.poster === 'undefined' ? '' : 'url(' + config.posterBig + this.state.item.poster + ')'
|
||||
this.state.item.poster == 'null' || typeof this.state.item.poster === 'undefined'
|
||||
? ''
|
||||
: 'url(' + config.posterBig + this.state.item.poster + ')'
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -44,6 +44,7 @@
|
||||
box-shadow: 0 10px 12px 5px rgba(0,0,0,.4);
|
||||
transition: top .4s ease-in-out 0s, opacity .4s ease-in-out 0s, transform .15s ease-in-out 0s;
|
||||
filter: blur(0);
|
||||
cursor: pointer;
|
||||
|
||||
.light-theme & {
|
||||
box-shadow: 0 10px 12px 0 rgba(0,0,0,.3);
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user