Renamed /src to /frontend

This commit is contained in:
Jori Lallo
2016-07-24 15:32:31 -07:00
parent 19da05eee7
commit d2187c4b10
147 changed files with 10 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
import React from 'react';
import styles from './AtlasPreviewLoading.scss';
import classNames from 'classnames/bind';
const cx = classNames.bind(styles);
import { randomInteger } from 'utils/random';
export default (props) => {
return (
<div className={ cx(styles.container, styles.animated) }>
<div className={ cx(styles.mask, styles.header) } style={{ width: `${randomInteger(65,80)}%` }}>&nbsp;</div>
<div className={ cx(styles.mask, styles.bodyText) } style={{ width: `${randomInteger(85,100)}%` }}>&nbsp;</div>
<div className={ cx(styles.mask, styles.bodyText) } style={{ width: `${randomInteger(85,100)}%` }}>&nbsp;</div>
<div className={ cx(styles.mask, styles.bodyText) } style={{ width: `${randomInteger(85,100)}%` }}>&nbsp;</div>
</div>
);
};

View File

@@ -0,0 +1,26 @@
.mask {
display: flex;
width: 100%;
background-color: #ddd;
}
.header {
height: 28px;
margin-bottom: 32px;
}
.bodyText {
height: 18px;
margin-bottom: 14px;
}
.animated {
width: 100%;
animation: PULSATE 1.3s infinite;
}
@keyframes PULSATE {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}

View File

@@ -0,0 +1,2 @@
import AtlasPreviewLoading from './AtlasPreviewLoading';
export default AtlasPreviewLoading;