Skip to content

Commit

Permalink
updated web
Browse files Browse the repository at this point in the history
  • Loading branch information
idancali committed Feb 5, 2019
1 parent e1c960a commit d32005d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
12 changes: 9 additions & 3 deletions web/lib/components/BuyInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,17 @@ var BuyInfo = function (_Component) {

return _react2.default.createElement(
_antd.Button,
{ href: path ? path : link, type: 'primary', style: { backgroundColor: this.state.hovered ? this.props.hoveredButtonColor : this.props.buttonColor, border: 0, marginBottom: '30px' }, onMouseEnter: function onMouseEnter() {
{
href: path ? path : link,
type: 'primary',
style: { backgroundColor: this.state.hovered ? this.props.hoveredButtonColor : this.props.buttonColor, border: 0, marginBottom: '30px', padding: '2px 15px' },
onMouseEnter: function onMouseEnter() {
_this2.setState({ hovered: true });
}, onMouseLeave: function onMouseLeave() {
},
onMouseLeave: function onMouseLeave() {
_this2.setState({ hovered: false });
} },
}
},
this.props.action,
_react2.default.createElement(_antd.Icon, { type: 'arrow-right', style: { marginLeft: this.state.hovered ? '30px' : '5px' } })
);
Expand Down
30 changes: 14 additions & 16 deletions web/lib/components/Timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ var Timer = function (_Component) {
value: function renderSimpleText() {
return _react2.default.createElement(
_typography.Typography,
{ use: 'headline4', style: { margin: '10px', textShadow: '2px 2px 5px #607D8B' } },
{ use: 'headline4', style: { margin: '10px', color: this.props.textColor } },
this.state.period.text
);
}
Expand All @@ -130,7 +130,7 @@ var Timer = function (_Component) {
value: function renderInfo() {
return _react2.default.createElement(
_typography.Typography,
{ use: 'headline5', style: { marginBottom: '10px', textShadow: '2px 2px 5px #607D8B' } },
{ use: 'headline5', style: { marginBottom: '10px', color: this.props.textColor } },
this.state.period.info
);
}
Expand Down Expand Up @@ -163,19 +163,19 @@ var Timer = function (_Component) {
seconds = _ref.seconds,
completed = _ref.completed;

var size = this.props.isSmallScreen ? 'headline4' : 'headline4';
var size = this.props.isSmallScreen ? 'headline6' : 'headline6';
var margin = this.props.isSmallScreen ? '5' : '20';
var width = this.props.isSmallScreen ? '40' : '90';
var width = this.props.isSmallScreen ? '30' : '50';
var height = this.props.isSmallScreen ? '140' : '50';
var typographyStyle = { margin: margin + 'px', color: '#fff', height: 40 };
var typographyStyle = { margin: margin + 'px', color: '#fff' };

var style = {
border: '2px solid #ffffff',
color: this.props.textColor,
background: 'transparent',
border: '2px solid #4ebcd4',
backgroundColor: '#fff',
color: "#4ebcd4",
padding: 2,
width: width,
height: 60
height: 40
};

return _react2.default.createElement(
Expand All @@ -189,7 +189,7 @@ var Timer = function (_Component) {
{ use: size, style: typographyStyle },
_react2.default.createElement(
_chip.ChipText,
{ style: { marginLeft: 5 } },
{ style: { marginLeft: 5, color: '#4ebcd4' } },
days,
'd'
)
Expand All @@ -203,7 +203,7 @@ var Timer = function (_Component) {
{ use: size, style: typographyStyle },
_react2.default.createElement(
_chip.ChipText,
null,
{ style: { color: '#4ebcd4' } },
hours,
'h'
)
Expand All @@ -217,7 +217,7 @@ var Timer = function (_Component) {
{ use: size, style: typographyStyle },
_react2.default.createElement(
_chip.ChipText,
null,
{ style: { color: '#4ebcd4' } },
minutes,
'm'
)
Expand All @@ -231,7 +231,7 @@ var Timer = function (_Component) {
{ use: size, style: typographyStyle },
_react2.default.createElement(
_chip.ChipText,
null,
{ style: { color: '#4ebcd4' } },
seconds,
's'
)
Expand Down Expand Up @@ -283,16 +283,14 @@ var Timer = function (_Component) {
display: 'flex',
flex: 1,
paddingTop: '20px',
paddingBottom: '50px',
backgroundColor: this.props.backgroundColor,
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center'
} },
this.renderSimpleText(),
this.renderClock(),
this.renderInfo(),
this.renderAction()
this.renderInfo()
);
}
}]);
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-dom-chunky",
"version": "1.0.16",
"version": "1.0.17",
"description": "The Chunky Web Framework",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit d32005d

Please sign in to comment.