2015-10-08 12:27:09 -04:00
|
|
|
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
|
2015-08-13 12:07:32 -07:00
|
|
|
// See License.txt for license information.
|
|
|
|
|
|
2015-08-31 11:31:55 -04:00
|
|
|
export default class FileUploadOverlay extends React.Component {
|
|
|
|
|
render() {
|
2015-08-14 10:00:24 -07:00
|
|
|
var overlayClass = 'file-overlay hidden';
|
2015-08-13 16:00:55 -07:00
|
|
|
if (this.props.overlayType === 'right') {
|
|
|
|
|
overlayClass += ' right-file-overlay';
|
|
|
|
|
} else if (this.props.overlayType === 'center') {
|
|
|
|
|
overlayClass += ' center-file-overlay';
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-13 15:44:38 -07:00
|
|
|
return (
|
2015-08-13 16:00:55 -07:00
|
|
|
<div className={overlayClass}>
|
2015-10-22 20:18:31 +05:00
|
|
|
<div className='overlay__indent'>
|
|
|
|
|
<div className='overlay__circle'>
|
|
|
|
|
<img
|
|
|
|
|
className='overlay__files'
|
|
|
|
|
src='/static/images/filesOverlay.png'
|
|
|
|
|
alt='Files'
|
|
|
|
|
/>
|
|
|
|
|
<span><i className='fa fa-upload'></i>{'Drop a file to upload it.'}</span>
|
|
|
|
|
<img
|
|
|
|
|
className='overlay__logo'
|
|
|
|
|
src='/static/images/logoWhite.png'
|
|
|
|
|
width='100'
|
|
|
|
|
alt='Logo'
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2015-08-13 15:44:38 -07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
2015-08-31 11:31:55 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FileUploadOverlay.propTypes = {
|
|
|
|
|
overlayType: React.PropTypes.string
|
|
|
|
|
};
|