mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
With the style panel we added a `page` css class alongside the `phb` and `phb3` classes so users can write CSS that targets all pages no matter the base CSS loaded. This wasn't applied to the print page. Funnily enough, the rest of the site uses `.page` just to display the website, and I didn't realize there was a conflict until now because otherwise, the brew is usually hidden in an iFrame.
49 lines
1.2 KiB
JavaScript
49 lines
1.2 KiB
JavaScript
require('./errorPage.less');
|
|
const React = require('react');
|
|
const createClass = require('create-react-class');
|
|
const _ = require('lodash');
|
|
const cx = require('classnames');
|
|
|
|
const Nav = require('naturalcrit/nav/nav.jsx');
|
|
const Navbar = require('../../navbar/navbar.jsx');
|
|
const PatreonNavItem = require('../../navbar/patreon.navitem.jsx');
|
|
const IssueNavItem = require('../../navbar/issue.navitem.jsx');
|
|
const RecentNavItem = require('../../navbar/recent.navitem.jsx').both;
|
|
|
|
const BrewRenderer = require('../../brewRenderer/brewRenderer.jsx');
|
|
|
|
const ErrorPage = createClass({
|
|
getDefaultProps : function() {
|
|
return {
|
|
ver : '0.0.0',
|
|
errorId : ''
|
|
};
|
|
},
|
|
|
|
text : '# Oops \n We could not find a brew with that id. **Sorry!**',
|
|
|
|
render : function(){
|
|
return <div className='errorPage sitePage'>
|
|
<Navbar ver={this.props.ver}>
|
|
<Nav.section>
|
|
<Nav.item className='errorTitle'>
|
|
Crit Fail!
|
|
</Nav.item>
|
|
</Nav.section>
|
|
|
|
<Nav.section>
|
|
<PatreonNavItem />
|
|
<IssueNavItem />
|
|
<RecentNavItem />
|
|
</Nav.section>
|
|
</Navbar>
|
|
|
|
<div className='content'>
|
|
<BrewRenderer text={this.text} />
|
|
</div>
|
|
</div>;
|
|
}
|
|
});
|
|
|
|
module.exports = ErrorPage;
|