From 78c9950837b4cb13ba22596937a058ad55d388c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Z=C3=A1rate?= Date: Thu, 19 Sep 2019 00:53:27 -0300 Subject: [PATCH 1/2] including watch --- client/src/css/main-window.scss | 4 +++ client/src/css/timer.scss | 5 +++ client/src/js/CallWindow.js | 9 +++++ client/src/js/MainWindow.js | 6 ++-- client/src/js/Timer.js | 44 +++++++++++++++++++++++ client/src/js/Watch.js | 63 +++++++++++++++++++++++++++++++++ client/src/js/app.js | 37 +++++++++++++++++-- 7 files changed, 163 insertions(+), 5 deletions(-) create mode 100644 client/src/css/timer.scss create mode 100644 client/src/js/Timer.js create mode 100644 client/src/js/Watch.js diff --git a/client/src/css/main-window.scss b/client/src/css/main-window.scss index 74a7ca03..2a965b65 100644 --- a/client/src/css/main-window.scss +++ b/client/src/css/main-window.scss @@ -1,4 +1,8 @@ .main-window { + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; padding-top: 80px; font-size: 1.75em; diff --git a/client/src/css/timer.scss b/client/src/css/timer.scss new file mode 100644 index 00000000..16325c4e --- /dev/null +++ b/client/src/css/timer.scss @@ -0,0 +1,5 @@ +.Timer { + text-align: center; + font-size: 40px; + padding: 20px; +} \ No newline at end of file diff --git a/client/src/js/CallWindow.js b/client/src/js/CallWindow.js index 1d002664..51aed760 100644 --- a/client/src/js/CallWindow.js +++ b/client/src/js/CallWindow.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import PropTypes from 'proptypes'; import classnames from 'classnames'; import _ from 'lodash'; +import Timer from './Timer'; class CallWindow extends Component { constructor(props) { @@ -71,12 +72,20 @@ class CallWindow extends Component { )); } + renderTimeControl() { + const { time } = this.props; + return ( + + ) + } + render() { const { status, endCall } = this.props; return (