l-min-components 1.0.491 → 1.0.494
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
|
+
import loaderGif from './assets/first.gif';
|
|
4
|
+
|
|
5
|
+
const Backdrop = styled.div`
|
|
6
|
+
${({ isSectionLoader }) =>
|
|
7
|
+
isSectionLoader
|
|
8
|
+
? css`
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
background: transparent;
|
|
13
|
+
`
|
|
14
|
+
: css`
|
|
15
|
+
position: fixed;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
width: 100vw;
|
|
19
|
+
height: 100vh;
|
|
20
|
+
background: rgba(110, 62, 62, 0.4);
|
|
21
|
+
backdrop-filter: blur(5px);
|
|
22
|
+
z-index: 999;
|
|
23
|
+
`}
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
const LoaderWrapper = styled.div`
|
|
27
|
+
${({ isSectionLoader }) =>
|
|
28
|
+
isSectionLoader
|
|
29
|
+
? css`
|
|
30
|
+
position: absolute;
|
|
31
|
+
top: 50%;
|
|
32
|
+
left: 50%;
|
|
33
|
+
transform: translate(-50%, -50%);
|
|
34
|
+
z-index: 10;
|
|
35
|
+
`
|
|
36
|
+
: css`
|
|
37
|
+
position: fixed;
|
|
38
|
+
top: 50%;
|
|
39
|
+
left: 50%;
|
|
40
|
+
transform: translate(-50%, -50%);
|
|
41
|
+
z-index: 9000;
|
|
42
|
+
`}
|
|
43
|
+
img {
|
|
44
|
+
width: 300px;
|
|
45
|
+
height: 200px;
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
const FullPageLoader = ({ isSectionLoader = false }) => {
|
|
50
|
+
return (
|
|
51
|
+
<Backdrop isSectionLoader={isSectionLoader}>
|
|
52
|
+
<LoaderWrapper isSectionLoader={isSectionLoader}>
|
|
53
|
+
<img src={loaderGif} alt="Loading..." />
|
|
54
|
+
</LoaderWrapper>
|
|
55
|
+
</Backdrop>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export default FullPageLoader;
|
package/src/components/index.js
CHANGED
|
@@ -35,3 +35,4 @@ export { default as InstructorAccountSwitcher } from "./instructorAccountSwitche
|
|
|
35
35
|
export { default as InstructorRightBar } from "./fileRightBar/instructorRightBar";
|
|
36
36
|
|
|
37
37
|
export { default as EnterpriseRightBar } from "./fileRightBar/enterpriseRightBar";
|
|
38
|
+
export { default as FullPageLoader } from "./fullPageLoader"
|