1
0
mirror of https://github.com/devfake/flox.git synced 2024-11-15 06:32:34 +01:00
This commit is contained in:
devfake 2015-07-30 10:51:35 +02:00
parent 405cef27f2
commit 95d92fe2c7
5 changed files with 17 additions and 13 deletions

View File

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

View File

@ -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 (

View File

@ -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