mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 07:42:39 +00:00
Initial pass at UI page and styling
This commit is contained in:
46
client/homebrew/pages/basePages/uiPage/uiPage.jsx
Normal file
46
client/homebrew/pages/basePages/uiPage/uiPage.jsx
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
require('./uiPage.less');
|
||||||
|
const React = require('react');
|
||||||
|
const createClass = require('create-react-class');
|
||||||
|
|
||||||
|
const Nav = require('naturalcrit/nav/nav.jsx');
|
||||||
|
const Navbar = require('../../../navbar/navbar.jsx');
|
||||||
|
const RecentNavItem = require('../../../navbar/recent.navitem.jsx').both;
|
||||||
|
const Account = require('../../../navbar/account.navitem.jsx');
|
||||||
|
|
||||||
|
|
||||||
|
const UIPage = createClass({
|
||||||
|
displayName : 'UIPage',
|
||||||
|
|
||||||
|
getDefaultProps : function(){
|
||||||
|
return {
|
||||||
|
uiItems : <>
|
||||||
|
<h1>H1 Header</h1>
|
||||||
|
<h2>H2 Header</h2>
|
||||||
|
<h3>H3 Header</h3>
|
||||||
|
<h4>H4 Header</h4>
|
||||||
|
<p>This is some test text.</p>
|
||||||
|
</>
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
render : function(){
|
||||||
|
return <div className='uiPage sitePage'>
|
||||||
|
<Navbar>
|
||||||
|
<Nav.section>
|
||||||
|
<Nav.item className='brewTitle'>{this.props.brew.title}</Nav.item>
|
||||||
|
</Nav.section>
|
||||||
|
|
||||||
|
<Nav.section>
|
||||||
|
<RecentNavItem />
|
||||||
|
<Account />
|
||||||
|
</Nav.section>
|
||||||
|
</Navbar>
|
||||||
|
|
||||||
|
<div className='content'>
|
||||||
|
{this.props.uiItems}
|
||||||
|
</div>
|
||||||
|
</div>;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
module.exports = UIPage;
|
||||||
30
client/homebrew/pages/basePages/uiPage/uiPage.less
Normal file
30
client/homebrew/pages/basePages/uiPage/uiPage.less
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
.uiPage{
|
||||||
|
.content{
|
||||||
|
overflow-y : hidden;
|
||||||
|
width : 90vw;
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-top: 25px;
|
||||||
|
padding: 2% 4%;
|
||||||
|
font-size: 0.8em;
|
||||||
|
h1, h2, h3, h4{
|
||||||
|
font-weight: 900;
|
||||||
|
text-transform: uppercase;
|
||||||
|
padding-bottom: 0.25em;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
font-size: 1.75em;
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
h4 {
|
||||||
|
font-size: 1.25em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user