From 12896bd23eeba79884245c1c29fdc568cf21a7fa Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Mon, 14 Mar 2016 08:50:46 -0400
Subject: Converting to Webpack. Stage 1.

---
 webapp/components/file_upload_overlay.jsx | 50 +++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 webapp/components/file_upload_overlay.jsx

(limited to 'webapp/components/file_upload_overlay.jsx')

diff --git a/webapp/components/file_upload_overlay.jsx b/webapp/components/file_upload_overlay.jsx
new file mode 100644
index 000000000..25fafddf1
--- /dev/null
+++ b/webapp/components/file_upload_overlay.jsx
@@ -0,0 +1,50 @@
+// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import {FormattedMessage} from 'react-intl';
+
+import React from 'react';
+
+import fileOverlayImage from 'images/filesOverlay.png';
+import overlayLogoImage from 'images/logoWhite.png';
+
+export default class FileUploadOverlay extends React.Component {
+    render() {
+        var overlayClass = 'file-overlay hidden';
+        if (this.props.overlayType === 'right') {
+            overlayClass += ' right-file-overlay';
+        } else if (this.props.overlayType === 'center') {
+            overlayClass += ' center-file-overlay';
+        }
+
+        return (
+            <div className={overlayClass}>
+                <div className='overlay__indent'>
+                    <div className='overlay__circle'>
+                        <img
+                            className='overlay__files'
+                            src={fileOverlayImage}
+                            alt='Files'
+                        />
+                        <span><i className='fa fa-upload'></i>
+                            <FormattedMessage
+                                id='upload_overlay.info'
+                                defaultMessage='Drop a file to upload it.'
+                            />
+                        </span>
+                        <img
+                            className='overlay__logo'
+                            src={overlayLogoImage}
+                            width='100'
+                            alt='Logo'
+                        />
+                    </div>
+                </div>
+            </div>
+        );
+    }
+}
+
+FileUploadOverlay.propTypes = {
+    overlayType: React.PropTypes.string
+};
-- 
cgit v1.2.3-1-g7c22

