From 2fb44e9ef9feef5179487d56a8a97699fa4b739e Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Thu, 22 Jun 2017 00:37:03 +0200
Subject: mobile css and slight refactor

---
 client/components/Modal.jsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'client/components/Modal.jsx')

diff --git a/client/components/Modal.jsx b/client/components/Modal.jsx
index 9220e11..fded5e2 100644
--- a/client/components/Modal.jsx
+++ b/client/components/Modal.jsx
@@ -14,8 +14,10 @@ export default class Modal extends Component {
       ? 'modal visible'
       : 'modal'
     
+    const style = 'background-color:hsl(' + randint(360) + ',20%,95%)'
+    
     return (
-      <div class={className}>
+      <div class={className} style={style}>
         <div class='inner'>
           {this.props.children}
         </div>
@@ -23,3 +25,6 @@ export default class Modal extends Component {
     )
   }
 }
+
+function randint(n){ return (Math.random()*n)|0 }
+function randrange(n){ return (Math.random()*n)|0 }
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

