11import React from 'react'
22
3- const loader = { width : '0.5rem' , height : '0.5rem' , animationDuration : '0.75s' }
3+ const loader = {
4+ display : 'inline-block' ,
5+ verticalAlign : 'text-bottom' ,
6+ backgroundColor : 'currentColor' ,
7+ borderRadius : '50%' ,
8+ opacity : 0 ,
9+ width : '0.5rem' ,
10+ height : '0.5rem' ,
11+ animationDuration : '0.75s' ,
12+ animationTimingFunction : 'linear' ,
13+ animationIterationCount : 'infinite' ,
14+ animationDirection : 'normal' ,
15+ animationFillMode : 'none' ,
16+ animationPlayState : 'running' ,
17+ animationName : 'spinner-grow' ,
18+ }
419
520const loader1 = { ...loader , animationDelay : '0s' }
621
@@ -9,16 +24,16 @@ const loader2 = { ...loader, animationDelay: '0.25s' }
924const loader3 = { ...loader , animationDelay : '0.5s' }
1025
1126const Loader = ( ) => (
12- < div className = 'd- flex justify-content-center vertical- align-middle text-dark ' >
13- < p className = 'h4 loader-text ' > Loading</ p >
14- < div className = 'p-2 ' >
15- < div className = 'spinner-grow' style = { loader1 } />
27+ < div className = 'flex-row has-margin-10 justify-center align-items-flex-end ' >
28+ < p className = 'is-size-3 flex-column is-marginless ' > Loading</ p >
29+ < div className = 'flex-column has-padding-10 ' >
30+ < div style = { loader1 } />
1631 </ div >
17- < div className = 'p-2 ' >
18- < div className = 'spinner-grow' style = { loader2 } />
32+ < div className = 'flex-column has-padding-10 ' >
33+ < div style = { loader2 } />
1934 </ div >
20- < div className = 'p-2 ' >
21- < div className = 'spinner-grow' style = { loader3 } />
35+ < div className = 'flex-column has-padding-10 ' >
36+ < div style = { loader3 } />
2237 </ div >
2338 </ div >
2439)
0 commit comments