mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
sample Library component implemented
This commit is contained in:
parent
8437945f2f
commit
6a72ee5a0d
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 Library extends Component {
|
class Library extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div style={{ color: 'pink', paddingTop: 40 }}>You're on the Library 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['library-container']} />
|
||||||
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Library;
|
module.exports = Library;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
import Library from './Library';
|
const Library = require('./Library');
|
||||||
|
|
||||||
export default Library;
|
module.exports = Library;
|
||||||
|
|
|
||||||
4
src/routes/Library/styles.less
Normal file
4
src/routes/Library/styles.less
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
.library-container {
|
||||||
|
background-color: var(--color-background);
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue