new PageTitle component to have each page the same title

This commit is contained in:
2020-06-19 00:16:18 +02:00
parent 63284da11e
commit d034b2bc52
8 changed files with 60 additions and 29 deletions

View File

@ -3,6 +3,7 @@ import Preview from "../../elements/Preview/Preview";
import "./RandomPage.css"
import SideBar from "../../elements/SideBar/SideBar";
import Tag from "../../elements/Tag/Tag";
import PageTitle from "../../elements/PageTitle/PageTitle";
class RandomPage extends React.Component {
constructor(props, context) {
@ -21,11 +22,10 @@ class RandomPage extends React.Component {
render() {
return (
<div>
<div className='pageheader'>
<span className='pageheadertitle'>Random Videos</span>
<span className='pageheadersubtitle'>4pc</span>
<hr/>
</div>
<PageTitle
title='Random Videos'
subtitle='4pc'/>
<SideBar>
<div className='sidebartitle'>Visible Tags:</div>
{this.state.tags.map((m) => (