mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
basic discover component implemented
This commit is contained in:
parent
f62a86cf28
commit
8437945f2f
3 changed files with 25 additions and 6 deletions
|
|
@ -1,11 +1,26 @@
|
||||||
import React, { Component } from 'react';
|
const React = require('react');
|
||||||
|
const { NavBar } = require('stremio-common');
|
||||||
|
const styles = require('./styles');
|
||||||
|
|
||||||
class Discover extends Component {
|
class Discover extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div style={{ color: 'pink', paddingTop: 40 }}>You're on the Discover Tab</div>
|
<React.Fragment>
|
||||||
|
<NavBar
|
||||||
|
backButton={false}
|
||||||
|
tabs={[
|
||||||
|
{ label: 'Board', icon: 'ic_board', href: '#/' },
|
||||||
|
{ label: 'Discover', icon: 'ic_discover', href: '#/discover' },
|
||||||
|
{ label: 'Library', icon: 'ic_library', href: '#/library' },
|
||||||
|
{ label: 'Calendar', icon: 'ic_calendar', href: '#/calendar' },
|
||||||
|
]}
|
||||||
|
searchBar={true}
|
||||||
|
userMenu={true}
|
||||||
|
/>
|
||||||
|
<div className={styles['discover-container']} />
|
||||||
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Discover;
|
module.exports = Discover;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
import Discover from './Discover';
|
const Discover = require('./Discover');
|
||||||
|
|
||||||
export default Discover;
|
module.exports = Discover;
|
||||||
|
|
|
||||||
4
src/routes/Discover/styles.less
Normal file
4
src/routes/Discover/styles.less
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
.discover-container {
|
||||||
|
background-color: var(--color-background);
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue