0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 07:52:40 +00:00

Initial functionality pass

This commit is contained in:
G.Ambatte
2024-03-29 20:06:16 +13:00
parent 9f6bc10369
commit 963ec282d3
3 changed files with 67 additions and 21 deletions

View File

@@ -0,0 +1,22 @@
require('./lockNotification.less');
const React = require('react');
const createClass = require('create-react-class');
const LockNotification = createClass({
displayName : 'LockNotification',
getInitialState : function() {
return {
disableLock : ()=>{}
};
},
render : function(){
return <div className='lockNotification'>
<h1>BREW LOCKED</h1>
<p>{this.props.message || 'Unable to retrieve Lock Message'}</p>
<button onClick={()=>{this.props.disableLock();}}>CLICK TO UNLOCK</button>
</div>;
}
});
module.exports = LockNotification;

View File

@@ -0,0 +1,17 @@
.lockNotification {
background-color: #ccc;
color: black;
padding: 10px;
margin: 25px 100px;
text-align: center;
button {
background-color: #333;
color: white;
margin-top: 10px;
&:hover {
background-color: #777;
}
}
}