0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 05:12:39 +00:00

Initial pass at UI page and styling

This commit is contained in:
G.Ambatte
2022-04-30 16:54:11 +12:00
parent e8937a285c
commit fe536bc9df
2 changed files with 76 additions and 0 deletions

View 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;

View 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;
}
}
}