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 Api from './api';
|
||||||
import Home from './sites/home';
|
import Home from './sites/home';
|
||||||
import Category from './sites/category';
|
import Category from './sites/category';
|
||||||
//import Show from './partials/show';
|
import Show from './sites/show';
|
||||||
import Header from './partials/header';
|
import Header from './partials/header';
|
||||||
import Footer from './partials/footer';
|
import Footer from './partials/footer';
|
||||||
|
|
||||||
@ -24,12 +24,11 @@ class Flox extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mäh...
|
|
||||||
// <Route path=":category/:item" handler={Show} />
|
|
||||||
let routes = (
|
let routes = (
|
||||||
<Route handler={Flox} path={config.uri}>
|
<Route handler={Flox} path={config.uri}>
|
||||||
<Route handler={Home} />
|
<Route handler={Home} />
|
||||||
<Route path=":category" handler={Category} />
|
<Route path=":category" handler={Category} />
|
||||||
|
<Route path=":category/:item" handler={Show} />
|
||||||
</Route>
|
</Route>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -16,7 +16,9 @@ class Show extends React.Component {
|
|||||||
render() {
|
render() {
|
||||||
let style = {
|
let style = {
|
||||||
backgroundImage:
|
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 (
|
return (
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
box-shadow: 0 10px 12px 5px rgba(0,0,0,.4);
|
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;
|
transition: top .4s ease-in-out 0s, opacity .4s ease-in-out 0s, transform .15s ease-in-out 0s;
|
||||||
filter: blur(0);
|
filter: blur(0);
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
.light-theme & {
|
.light-theme & {
|
||||||
box-shadow: 0 10px 12px 0 rgba(0,0,0,.3);
|
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