Skip to content

Commit

Permalink
Progress Indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
anhduc130 committed Nov 13, 2016
1 parent 8661b7f commit 9856722
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
23 changes: 23 additions & 0 deletions bin/progressIndicatorStyling.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.progressIndicator {
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid blue;
border-right: 16px solid green;
border-bottom: 16px solid red;
border-left: 16px solid yellow;
width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;

}

@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); m }
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
7 changes: 7 additions & 0 deletions src/components/ProgressIndicator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react';

const ProgressIndicator = () => (
<div className= "progressIndicator"></div>
);

export default ProgressIndicator;
2 changes: 2 additions & 0 deletions src/views/UploadForm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Button from './../components/Button';
import ConceptInput from './../components/ConceptInput';
import DropArea from './../components/DropArea';
import ProgressIndicator from './../components/ProgressIndicator';
import React from 'react';
import SentimentAnalysisGraph from './../components/SentimentAnalysisGraph';

Expand All @@ -10,6 +11,7 @@ const UploadForm = () => (
<Button />
<ConceptInput />
<SentimentAnalysisGraph />
<ProgressIndicator />
</div>
);

Expand Down

0 comments on commit 9856722

Please sign in to comment.