Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1489054 - Add the loader for the initialization phase (#1151)
Shows a Wave loader while the l10n files and locales are loading, after what it shows the interface and starts loading the rest.
- Loading branch information
Showing
12 changed files
with
170 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ | |
padding: 40px 0 10px; | ||
text-align: center; | ||
} | ||
|
6 changes: 3 additions & 3 deletions
6
...entitieslist/components/EntitiesLoader.js → ...c/core/loaders/components/CircleLoader.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
/* @flow */ | ||
import React from 'react'; | ||
|
||
import './EntitiesLoader.css'; | ||
import './CircleLoader.css'; | ||
|
||
|
||
const EntitiesLoader = () => ( | ||
const CircleLoader = () => ( | ||
<h3 className="loading"> | ||
<div className="fa fa-sync fa-spin"></div> | ||
</h3> | ||
); | ||
|
||
|
||
export default EntitiesLoader; | ||
export default CircleLoader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* SpinKit | ||
* https://github.com/tobiasahlin/SpinKit/blob/master/LICENSE | ||
*/ | ||
|
||
.wave-loader { | ||
position: fixed; | ||
z-index: 14; | ||
display: table; | ||
overflow: hidden; | ||
width: 100%; | ||
height: 100%; | ||
background: #3f4752; | ||
} | ||
|
||
.wave-loader .animation { | ||
margin: 20px auto; | ||
width: 100px; | ||
height: 60px; | ||
text-align: center; | ||
font-size: 20px; | ||
} | ||
|
||
.wave-loader .animation > div { | ||
display: inline-block; | ||
width: 12px; | ||
height: 100%; | ||
background-color: #7BC876; | ||
|
||
-webkit-animation: stretchdelay 1.2s infinite ease-in-out; | ||
animation: stretchdelay 1.2s infinite ease-in-out; | ||
} | ||
|
||
.wave-loader .animation div:nth-child(2) { | ||
-webkit-animation-delay: -1.1s; | ||
animation-delay: -1.1s; | ||
} | ||
|
||
.wave-loader .animation div:nth-child(3) { | ||
-webkit-animation-delay: -1.0s; | ||
animation-delay: -1.0s; | ||
} | ||
|
||
.wave-loader .animation div:nth-child(4) { | ||
-webkit-animation-delay: -0.9s; | ||
animation-delay: -0.9s; | ||
} | ||
|
||
.wave-loader .animation div:nth-child(5) { | ||
-webkit-animation-delay: -0.8s; | ||
animation-delay: -0.8s; | ||
} | ||
|
||
@-webkit-keyframes stretchdelay { | ||
0%, 40%, 100% { | ||
-webkit-transform: scaleY(0.4) | ||
} | ||
20% { | ||
-webkit-transform: scaleY(1.0) | ||
} | ||
} | ||
|
||
@keyframes stretchdelay { | ||
0%, 40%, 100% { | ||
transform: scaleY(0.4); | ||
-webkit-transform: scaleY(0.4); | ||
} | ||
20% { | ||
transform: scaleY(1.0); | ||
-webkit-transform: scaleY(1.0); | ||
} | ||
} | ||
|
||
.wave-loader .inner { | ||
display: table-cell; | ||
vertical-align: middle; | ||
} | ||
|
||
/* | ||
* Loading text | ||
*/ | ||
.wave-loader .text { | ||
display: block; | ||
text-align: center; | ||
font-size: 1.5em; | ||
opacity: 0; | ||
animation: fadeInLoaderText 1s forwards; | ||
animation-delay: 3s; | ||
} | ||
|
||
@keyframes fadeInLoaderText { | ||
0% { | ||
display: None; | ||
opacity: 0; | ||
} | ||
|
||
100% { | ||
display: block; | ||
opacity: 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* @flow */ | ||
|
||
import React from 'react'; | ||
|
||
import './WaveLoader.css'; | ||
|
||
export const WaveLoader = (): React.Node => ( | ||
<div className="wave-loader"> | ||
<div className="inner"> | ||
<div className="animation"> | ||
<div></div> | ||
| ||
<div></div> | ||
| ||
<div></div> | ||
| ||
<div></div> | ||
| ||
<div></div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
|
||
export default WaveLoader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/* @flow */ | ||
|
||
export { default as WaveLoader } from './components/WaveLoader'; | ||
export { default as CircleLoader} from './components/CircleLoader'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters