From 4ba214f2312505de133404f5445b9c63ccb3f832 Mon Sep 17 00:00:00 2001 From: larabenito Date: Wed, 15 Nov 2017 20:26:51 +0100 Subject: [PATCH] feedback area improved --- public/css/main.css | 37 ++++++++++++++++++++++++++ src/components/Feedbackfield.js | 47 +++++++++++++++++++++++++++------ 2 files changed, 76 insertions(+), 8 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index 047bbd6..bc7f9a8 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -85,3 +85,40 @@ Feedback field border-bottom-style: off; } + +#feedbackoverlay{ + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.8); + line-height: 30px; + text-align: center; + position: fixed; + top: 0; + z-index:9999; + color: black; + display:none; +} + +#feedbackform{ + position: relative; + text-align: center; + top:200px; + background:rgba(0, 0, 0, 0.4); + width: 550px; + height: 225px; + color: white; + padding-top: 10px; + padding-right: 10px; + padding-left: 10px; + margin: 0 auto; +} + +#closeform{ + position: absolute; + right:8px; + top:3px; + cursor:pointer; + font-weight: bold; + font-size: 105% +} + diff --git a/src/components/Feedbackfield.js b/src/components/Feedbackfield.js index 7163633..7c24fb5 100644 --- a/src/components/Feedbackfield.js +++ b/src/components/Feedbackfield.js @@ -2,19 +2,50 @@ import React from 'react' import PropTypes from 'prop-types' var Feedbackfield = ({selected, onClick}) => ( -
- - - Tell us something... - - -
+
+ + +
+
+
+ X +
+
+ Tell us something... +

+ +

+ + +
+
+
+
); + Feedbackfield.propTypes = { onClick: PropTypes.func.isRequired, } export default Feedbackfield +function activateLasers(){ + var feedbackoverlay=document.getElementById("feedbackoverlay"); + feedbackoverlay.style.display = 'inline'; + return; +} + +function deactivateLasers(){ + var feedbackoverlay=document.getElementById("feedbackoverlay"); + feedbackoverlay.style.display = 'none'; + return; +} + +