modules/core/components/SectionLoading.js
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 50
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 0
eloc 23
mnd 0
bc 0
fnc 0
dl 0
loc 50
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
ccs 0
cts 2
cp 0
1
import React from 'react'
2
import ScaleLoader from 'react-spinners/ScaleLoader'
3
import theme from '~/modules/core/theme/styleguide/theme'
4
5
const Loading = () => (
6
  <div className="progress-theme">
7
    <div className="inner">
8
      <div className="loader">
9
        <ScaleLoader
10
          sizeUnit={'px'}
11
          height={100}
12
          width={15}
13
          color={theme.colors.colorAccent}
14
          loading
15
        />
16
      </div>
17
    </div>
18
19
    <style jsx>{`
20
      .progress-theme {
21
        -webkit-transition: all 0.2s ease-out;
22
        -moz-transition: all 0.2s ease-out;
23
        -o-transition: all 0.2s ease-out;
24
        transition: all 0.2s ease-out;
25
        z-index: 9999999;
26
        position: relative;
27
        margin: 128px;
28
      }
29
      .inner {
30
        -webkit-transition: all 0.3s ease-out;
31
        -moz-transition: all 0.3s ease-out;
32
        -o-transition: all 0.3s ease-out;
33
        transition: all 0.3s ease-out;
34
        display: flex;
35
        justify-content: center;
36
      }
37
      .loader {
38
        display: block;
39
        width: 200px;
40
        height: 120px;
41
        text-align: center;
42
        font-size: ${theme.fontSizes.XXXL};
43
        line-height: 90px;
44
      }
45
    `}</style>
46
  </div>
47
)
48
49
export default Loading
50