From 0b9d1e0fe617a9d2202e92eac4f86e1b23176b50 Mon Sep 17 00:00:00 2001 From: Leta Keane Date: Mon, 5 Jun 2017 20:21:36 -0600 Subject: [PATCH 1/3] Edit face oval to match comp more closely --- app/assets/styles/main.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/styles/main.css b/app/assets/styles/main.css index 6768fcf..48c2763 100644 --- a/app/assets/styles/main.css +++ b/app/assets/styles/main.css @@ -181,10 +181,10 @@ video { .face-oval { width: 150px; height: 200px; - border: 2px dashed rgba(237, 205, 156, 0.5); - -moz-border-radius: 70px / 90px; - -webkit-border-radius: 70px / 90px; - border-radius: 70px / 90px; + border: 8px dashed rgba(237, 205, 156, 0.3); + -moz-border-radius: 85px / 100px; + -webkit-border-radius: 85px / 100px; + border-radius: 85px / 100px; position: absolute; top: 150px; left: 50%; From b1090f9a9db3c698c678ac07b1e46c08ff79a619 Mon Sep 17 00:00:00 2001 From: Leta Keane Date: Mon, 5 Jun 2017 20:46:06 -0600 Subject: [PATCH 2/3] Adjust the text of the top button in the ImageCapture component --- app/components/ImageCapture/ImageCapture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/ImageCapture/ImageCapture.js b/app/components/ImageCapture/ImageCapture.js index 8bd180c..3b0a9d5 100644 --- a/app/components/ImageCapture/ImageCapture.js +++ b/app/components/ImageCapture/ImageCapture.js @@ -55,7 +55,7 @@ export default class ImageCapture extends Component { return (
+ onClick={() => this.beginImageCapture()}>start camera
-
) } diff --git a/app/components/Play/Play.js b/app/components/Play/Play.js index e07a956..67e10e4 100644 --- a/app/components/Play/Play.js +++ b/app/components/Play/Play.js @@ -11,6 +11,8 @@ export default class Play extends Component { emotions: [], canvasURL: '' } + this.analyzeEmotions = this.analyzeEmotions.bind(this) + this.getImageURL = this.getImageURL.bind(this) } getImageURL(url) { @@ -43,10 +45,11 @@ export default class Play extends Component { return (
- + + url={this.state.canvasURL} + pickedEmotion={this.state.pickedEmotion} />
) }