l-min-components 1.0.318 → 1.0.321
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 +3 -3
- package/src/components/fileRightBar/assets/Feature.png +0 -0
- package/src/components/fileRightBar/assets/Vector19.png +0 -0
- package/src/components/fileRightBar/assets/banner.png +0 -0
- package/src/components/fileRightBar/assets/uploadOwner.png +0 -0
- package/src/components/fileRightBar/assets/uploadProgressIcon.jsx +3 -0
- package/src/components/fileRightBar/components/progressBar/index.jsx +94 -0
- package/src/components/fileRightBar/components/progressBar/progress.jsx +94 -0
- package/src/components/fileRightBar/components/ugradeLock.jsx +34 -0
- package/src/components/fileRightBar/components/users.jsx +56 -0
- package/src/components/fileRightBar/managerPageRight.jsx +87 -0
- package/src/components/fileRightBar/styles/index.jsx +293 -0
- package/src/components/fileRightBar/upgrade.jsx +121 -0
- package/src/components/fileRightBar/uploadRight.jsx +66 -0
- package/src/components/fileRightBar/users.jsx +75 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "l-min-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.321",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"src/assets",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-dom": "^18.2.0",
|
|
32
32
|
"react-flags-select": "^2.2.3",
|
|
33
33
|
"react-icons": "^4.8.0",
|
|
34
|
-
"react-input-emoji": "^5.
|
|
34
|
+
"react-input-emoji": "^5.3.1",
|
|
35
35
|
"react-mic": "^12.4.6",
|
|
36
36
|
"react-modal": "^3.16.1",
|
|
37
37
|
"react-router-dom": "^6.8.2",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"slate-history": "^0.93.0",
|
|
42
42
|
"slate-react": "^0.94.0",
|
|
43
43
|
"styled-components": "^5.3.6",
|
|
44
|
-
"wavesurfer.js": "^7.1.
|
|
44
|
+
"wavesurfer.js": "^7.1.5"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/react": "^18.0.27",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export const UploadProgress = {
|
|
2
|
+
image: "https://s3-alpha-sig.figma.com/img/9765/16f7/85ab5a29a1abf82a0aa09c540b83e732?Expires=1694390400&Signature=YJha1jD90TcrTJ14Mn1H4zLdxO3ZDoPpfZWxKPcrguYCLurvCGmX9CnJeLShVVopff79pSCZYPBWuKU-ryeoxK7t7HRob9OF8M6hnVw7T93y8~jRTTWLV8pCOTPvVB~G2fuAc885jupB15aWYf6mgScqRNgqbxmvWDAldMY45cRWDyrhkE-YkrRiMlKlc7PklkgslBsQTwmr7PmmJB0n4rLKRGMllcjQgGfKG6kaTgqPZ-3KSyKb17GeaPkdmEqiT1Dzuoby9hyY21-yUO5htGzJsLt-~Xo09HVyhIU3tyM9CJYfWwup53KqZ96Zh8dLQBiuVZMZ-acoD4NIparwsA__&Key-Pair-Id=APKAQ4GOSFWCVNEHN3O4",
|
|
3
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
|
|
4
|
+
const SIZE = 150;
|
|
5
|
+
const STROKE_WIDTH = 13;
|
|
6
|
+
const CENTER = SIZE / 2;
|
|
7
|
+
const RADIUS = CENTER - STROKE_WIDTH / 2;
|
|
8
|
+
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
9
|
+
|
|
10
|
+
const ProgressBar = styled.svg`
|
|
11
|
+
transform: rotate(360deg);
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
const BackgroundCircle = styled.circle`
|
|
15
|
+
fill: none;
|
|
16
|
+
stroke: #F5F7F7;
|
|
17
|
+
stroke-width: ${STROKE_WIDTH}px;
|
|
18
|
+
stroke-linecap: round;
|
|
19
|
+
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const ProgressCircle = styled.circle`
|
|
23
|
+
fill: none;
|
|
24
|
+
stroke-width: ${STROKE_WIDTH}px;
|
|
25
|
+
stroke-linecap: round; // This will give the rounded ends
|
|
26
|
+
stroke-dasharray: ${props => props.dasharray || CIRCUMFERENCE};
|
|
27
|
+
stroke-dashoffset: ${props => props.offset};
|
|
28
|
+
transition: stroke-dashoffset 0.3s;
|
|
29
|
+
|
|
30
|
+
&[data-color="blue"] {
|
|
31
|
+
stroke: #1ABCFE;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[data-color="yellow"] {
|
|
35
|
+
stroke: #FEBF10;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-color="purple"] {
|
|
39
|
+
stroke: #A259FF;
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
const ValueText = styled.text`
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
text-anchor: middle;
|
|
46
|
+
dominant-baseline: middle;
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
const CircularProgressBar = ({ value = 2.5, total = 5 }) => {
|
|
50
|
+
const progress = (value / total) * 100;
|
|
51
|
+
const offset = CIRCUMFERENCE - (progress / 100) * CIRCUMFERENCE;
|
|
52
|
+
|
|
53
|
+
const segmentLength = CIRCUMFERENCE / 4 - 20; // adjust this to change the length of segments
|
|
54
|
+
const gap = 20; // adjust this to change the gap length
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<ProgressBar width={SIZE} height={SIZE}>
|
|
58
|
+
<BackgroundCircle cx={CENTER} cy={CENTER} r={RADIUS} />
|
|
59
|
+
<ProgressCircle
|
|
60
|
+
cx={CENTER}
|
|
61
|
+
cy={CENTER}
|
|
62
|
+
r={RADIUS}
|
|
63
|
+
offset={offset * 1}
|
|
64
|
+
data-color="blue"
|
|
65
|
+
/>
|
|
66
|
+
<ProgressCircle
|
|
67
|
+
cx={CENTER}
|
|
68
|
+
cy={CENTER}
|
|
69
|
+
r={RADIUS}
|
|
70
|
+
offset={offset * 0.25}
|
|
71
|
+
data-color="yellow"
|
|
72
|
+
/>
|
|
73
|
+
<ProgressCircle
|
|
74
|
+
cx={CENTER}
|
|
75
|
+
cy={CENTER}
|
|
76
|
+
r={RADIUS}
|
|
77
|
+
offset={offset * 0.5}
|
|
78
|
+
data-color="blue"
|
|
79
|
+
/>
|
|
80
|
+
<ProgressCircle
|
|
81
|
+
cx={CENTER}
|
|
82
|
+
cy={CENTER}
|
|
83
|
+
r={RADIUS}
|
|
84
|
+
offset={offset * 1.35}
|
|
85
|
+
data-color="purple"
|
|
86
|
+
/>
|
|
87
|
+
<ValueText x={CENTER} y={CENTER}>
|
|
88
|
+
{`${value}GB / ${total}GB`}
|
|
89
|
+
</ValueText>
|
|
90
|
+
</ProgressBar>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default CircularProgressBar;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
|
|
4
|
+
const SIZE = 150;
|
|
5
|
+
const STROKE_WIDTH = 13;
|
|
6
|
+
const CENTER = SIZE / 2;
|
|
7
|
+
const RADIUS = CENTER - STROKE_WIDTH / 2;
|
|
8
|
+
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
9
|
+
|
|
10
|
+
const ProgressBar = styled.svg`
|
|
11
|
+
transform: rotate(360deg);
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
const BackgroundCircle = styled.circle`
|
|
15
|
+
fill: none;
|
|
16
|
+
stroke: #F5F7F7;
|
|
17
|
+
stroke-width: ${STROKE_WIDTH}px;
|
|
18
|
+
stroke-linecap: round;
|
|
19
|
+
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const ProgressCircle = styled.circle`
|
|
23
|
+
fill: none;
|
|
24
|
+
stroke-width: ${STROKE_WIDTH}px;
|
|
25
|
+
stroke-linecap: round; // This will give the rounded ends
|
|
26
|
+
stroke-dasharray: ${props => props.dasharray || CIRCUMFERENCE};
|
|
27
|
+
stroke-dashoffset: ${props => props.offset};
|
|
28
|
+
transition: stroke-dashoffset 0.3s;
|
|
29
|
+
|
|
30
|
+
&[data-color="blue"] {
|
|
31
|
+
stroke: #1ABCFE;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[data-color="yellow"] {
|
|
35
|
+
stroke: #FEBF10;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-color="purple"] {
|
|
39
|
+
stroke: #A259FF;
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
const ValueText = styled.text`
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
text-anchor: middle;
|
|
46
|
+
dominant-baseline: middle;
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
const CircularProgressBar = ({ value = 2.5, total = 5 }) => {
|
|
50
|
+
const progress = (value / total) * 100;
|
|
51
|
+
const offset = CIRCUMFERENCE - (progress / 100) * CIRCUMFERENCE;
|
|
52
|
+
|
|
53
|
+
const segmentLength = CIRCUMFERENCE / 4 - 20; // adjust this to change the length of segments
|
|
54
|
+
const gap = 20; // adjust this to change the gap length
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<ProgressBar width={SIZE} height={SIZE}>
|
|
58
|
+
<BackgroundCircle cx={CENTER} cy={CENTER} r={RADIUS} />
|
|
59
|
+
<ProgressCircle
|
|
60
|
+
cx={CENTER}
|
|
61
|
+
cy={CENTER}
|
|
62
|
+
r={RADIUS}
|
|
63
|
+
offset={offset * 1}
|
|
64
|
+
data-color="blue"
|
|
65
|
+
/>
|
|
66
|
+
<ProgressCircle
|
|
67
|
+
cx={CENTER}
|
|
68
|
+
cy={CENTER}
|
|
69
|
+
r={RADIUS}
|
|
70
|
+
offset={offset * 0.25}
|
|
71
|
+
data-color="yellow"
|
|
72
|
+
/>
|
|
73
|
+
<ProgressCircle
|
|
74
|
+
cx={CENTER}
|
|
75
|
+
cy={CENTER}
|
|
76
|
+
r={RADIUS}
|
|
77
|
+
offset={offset * 0.5}
|
|
78
|
+
data-color="blue"
|
|
79
|
+
/>
|
|
80
|
+
<ProgressCircle
|
|
81
|
+
cx={CENTER}
|
|
82
|
+
cy={CENTER}
|
|
83
|
+
r={RADIUS}
|
|
84
|
+
offset={offset * 1.35}
|
|
85
|
+
data-color="purple"
|
|
86
|
+
/>
|
|
87
|
+
<ValueText x={CENTER} y={CENTER}>
|
|
88
|
+
{`${value}GB / ${total}GB`}
|
|
89
|
+
</ValueText>
|
|
90
|
+
</ProgressBar>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export default CircularProgressBar;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
Upgrade,
|
|
4
|
+
} from "../styles";
|
|
5
|
+
import Button from "../../button";
|
|
6
|
+
import UpgradeIcon from "../assets/Feature.png";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const UpgradeComponent = () => {
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
|
|
13
|
+
<Upgrade>
|
|
14
|
+
<img src={UpgradeIcon} alt="upgrad lock" />
|
|
15
|
+
<p>
|
|
16
|
+
Upgrade to <span>ENTERPRISE</span> for more features.
|
|
17
|
+
</p>
|
|
18
|
+
<Button
|
|
19
|
+
type="primary"
|
|
20
|
+
text="Upgrade"
|
|
21
|
+
styles={{
|
|
22
|
+
marginTop: "12px",
|
|
23
|
+
fontSize: "16px",
|
|
24
|
+
width: "200px",
|
|
25
|
+
height: "38.641px",
|
|
26
|
+
gap: "8px",
|
|
27
|
+
padding: "15.457px 30.913px",
|
|
28
|
+
}}
|
|
29
|
+
/>
|
|
30
|
+
</Upgrade>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default UpgradeComponent;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
Users,
|
|
4
|
+
} from "../styles";
|
|
5
|
+
import UploadOwner from "../assets/uploadOwner.png";
|
|
6
|
+
|
|
7
|
+
const users = [
|
|
8
|
+
{
|
|
9
|
+
name: "Patty McDermott",
|
|
10
|
+
size: "156MB",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: "Patty McDermott",
|
|
14
|
+
size: "156MB",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "Patty McDermott",
|
|
18
|
+
size: "156MB",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "Patty McDermott",
|
|
22
|
+
size: "156MB",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "Patty McDermott",
|
|
26
|
+
size: "156MB",
|
|
27
|
+
},
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
const UsersList = () => {
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Users>
|
|
34
|
+
<div className="top">
|
|
35
|
+
<h4>Users</h4>
|
|
36
|
+
<p>View All</p>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
{users?.map((user) => (
|
|
40
|
+
<div className="table">
|
|
41
|
+
<div className="user">
|
|
42
|
+
<img src={UploadOwner} alt="user" />
|
|
43
|
+
<div className="text">
|
|
44
|
+
<h3>{user?.name}</h3>
|
|
45
|
+
<p>{user?.size}</p>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
</div>
|
|
50
|
+
))}
|
|
51
|
+
|
|
52
|
+
</Users>
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export default UsersList;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
BannerWrapper,
|
|
4
|
+
Container,
|
|
5
|
+
Upgrade,
|
|
6
|
+
Users,
|
|
7
|
+
UploadProgressContainer
|
|
8
|
+
} from "./styles";
|
|
9
|
+
import Button from "../button";
|
|
10
|
+
import CircularProgressBar from "./components/progressBar";
|
|
11
|
+
import UpgradeIcon from "./assets/Feature.png";
|
|
12
|
+
import { UploadProgress } from "./assets/uploadProgressIcon";
|
|
13
|
+
import ProgressBar from "../progressBar";
|
|
14
|
+
import UpgradeComponent from "./components/ugradeLock";
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
const FileRightBar = () => {
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<Container>
|
|
22
|
+
<UploadProgressContainer>
|
|
23
|
+
<div className="upload_icon">
|
|
24
|
+
<img src={UploadProgress?.image} alt="upload progress" />
|
|
25
|
+
<p>Uploading files</p>
|
|
26
|
+
</div>
|
|
27
|
+
<div className="progress">
|
|
28
|
+
<ProgressBar
|
|
29
|
+
value={50}
|
|
30
|
+
minValue={30}
|
|
31
|
+
maxValue={80}
|
|
32
|
+
size={"sm"}
|
|
33
|
+
color={"#30D468"}
|
|
34
|
+
/>
|
|
35
|
+
<div className="text">
|
|
36
|
+
<div className="left">
|
|
37
|
+
<h5>2 of 6 Uploaded</h5>
|
|
38
|
+
</div>
|
|
39
|
+
<div className="right">
|
|
40
|
+
<p>3min 22sec</p>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<Button
|
|
48
|
+
type="primary"
|
|
49
|
+
text="Cancel Upload"
|
|
50
|
+
styles={{
|
|
51
|
+
marginTop: "10px",
|
|
52
|
+
fontSize: "14px",
|
|
53
|
+
width: "206px",
|
|
54
|
+
gap: "13px",
|
|
55
|
+
padding: "7px 26px",
|
|
56
|
+
height: "38.641px",
|
|
57
|
+
background: "#F39B33",
|
|
58
|
+
}}
|
|
59
|
+
/>
|
|
60
|
+
|
|
61
|
+
</UploadProgressContainer>
|
|
62
|
+
<BannerWrapper>
|
|
63
|
+
<div className="head">
|
|
64
|
+
<h3>Storage</h3>
|
|
65
|
+
<p>(50% Used)</p>
|
|
66
|
+
</div>
|
|
67
|
+
<CircularProgressBar value={2.5} total={5} />
|
|
68
|
+
<Button
|
|
69
|
+
type="primary"
|
|
70
|
+
text="Upgrade Storage"
|
|
71
|
+
styles={{
|
|
72
|
+
marginTop: "29px",
|
|
73
|
+
fontSize: "16px",
|
|
74
|
+
width: "200px",
|
|
75
|
+
gap: "8px",
|
|
76
|
+
padding: "15.457px 30.913px",
|
|
77
|
+
height: "38.641px",
|
|
78
|
+
}}
|
|
79
|
+
/>
|
|
80
|
+
</BannerWrapper>
|
|
81
|
+
<UpgradeComponent />
|
|
82
|
+
|
|
83
|
+
</Container>
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export default FileRightBar;
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { FaArrowRight } from "react-icons/fa";
|
|
3
|
+
import BannerImg from "../assets/Vector19.png"
|
|
4
|
+
|
|
5
|
+
export const Container = styled.div`
|
|
6
|
+
background-color: transparent;
|
|
7
|
+
max-width: 242px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
text-align: center;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
padding: 10px;
|
|
13
|
+
border-radius: 30px;
|
|
14
|
+
|
|
15
|
+
&.user_banner{
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
export const BannerWrapper = styled.div`
|
|
22
|
+
position: relative;
|
|
23
|
+
max-width: 232px;
|
|
24
|
+
padding: 30px 16px 21px;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
border-radius: 30px;
|
|
27
|
+
background: #FFF;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
/* justify-content: center; */
|
|
31
|
+
align-items: center;
|
|
32
|
+
text-align: center;
|
|
33
|
+
color: #23ffc8;
|
|
34
|
+
/* background-image: url(${BannerImg}); */
|
|
35
|
+
background-repeat: no-repeat;
|
|
36
|
+
background-position: bottom right;
|
|
37
|
+
background-size: contain;
|
|
38
|
+
border: none;
|
|
39
|
+
margin-bottom: 20px;
|
|
40
|
+
width: 100%;
|
|
41
|
+
|
|
42
|
+
.head{
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
margin-bottom: 10px;
|
|
46
|
+
|
|
47
|
+
h3{
|
|
48
|
+
color: var(--neutral-70, #636666);
|
|
49
|
+
font-family: Nunito;
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
line-height: 40px; /* 250% */
|
|
54
|
+
letter-spacing: 0.32px;
|
|
55
|
+
margin-right: 10px;
|
|
56
|
+
}
|
|
57
|
+
p{
|
|
58
|
+
color: var(--neutral-50, #949999);
|
|
59
|
+
font-family: Nunito;
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
line-height: 40px; /* 333.333% */
|
|
64
|
+
letter-spacing: 0.24px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
export const BannerTitle = styled.h1`
|
|
71
|
+
font-size: 30px;
|
|
72
|
+
margin: 0;
|
|
73
|
+
font-weight: 800;
|
|
74
|
+
line-height: 42px;
|
|
75
|
+
color: #00C2C2;
|
|
76
|
+
|
|
77
|
+
`;
|
|
78
|
+
|
|
79
|
+
export const BannerSubtitle = styled.p`
|
|
80
|
+
font-size: 18px;
|
|
81
|
+
margin: 29px 0;
|
|
82
|
+
color: #00C2C2;
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
`;
|
|
85
|
+
|
|
86
|
+
export const BannerImage = styled.img`
|
|
87
|
+
width: 100%;
|
|
88
|
+
max-width: 800px;
|
|
89
|
+
margin-bottom: -15px;
|
|
90
|
+
margin-top: -10px;
|
|
91
|
+
opacity: 2;
|
|
92
|
+
display: block;
|
|
93
|
+
opacity: 1.0;
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
export const BannerCTA = styled.button`
|
|
97
|
+
background-color: #ffbf1e;
|
|
98
|
+
color: #fff;
|
|
99
|
+
border: none;
|
|
100
|
+
padding: 10px 25px;
|
|
101
|
+
border-radius: 10px;
|
|
102
|
+
font-size: 1.2rem;
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
transition: all 0.2s ease-in-out;
|
|
106
|
+
margin: auto 0 10px;
|
|
107
|
+
opacity: 1.0;
|
|
108
|
+
|
|
109
|
+
&:hover {
|
|
110
|
+
background-color: #0062cc;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
|
|
115
|
+
export const ArrowIcon = styled(FaArrowRight)`
|
|
116
|
+
margin-left: 0.5rem;
|
|
117
|
+
`;
|
|
118
|
+
|
|
119
|
+
export const AbsoluteSVG = styled.svg`
|
|
120
|
+
position: absolute;
|
|
121
|
+
bottom: 0;
|
|
122
|
+
left: 0;
|
|
123
|
+
width: 100%;
|
|
124
|
+
height: auto;
|
|
125
|
+
`;
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
export const Upgrade = styled.div`
|
|
129
|
+
background-color: #fff;
|
|
130
|
+
width: 100%;
|
|
131
|
+
max-width: 232px;
|
|
132
|
+
border-radius: 36px;
|
|
133
|
+
padding: 30px 16px 21px;
|
|
134
|
+
overflow: hidden;
|
|
135
|
+
border-radius: 30px;
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
align-items: center;
|
|
140
|
+
|
|
141
|
+
p{
|
|
142
|
+
color: var(--neutral-80, #4A4D4D);
|
|
143
|
+
text-align: center;
|
|
144
|
+
font-family: Nunito;
|
|
145
|
+
font-size: 11.592px;
|
|
146
|
+
font-style: normal;
|
|
147
|
+
font-weight: 700;
|
|
148
|
+
line-height: normal;
|
|
149
|
+
letter-spacing: 0.773px;
|
|
150
|
+
width: 70%;
|
|
151
|
+
text-align: center;
|
|
152
|
+
margin-top: 10px;
|
|
153
|
+
|
|
154
|
+
span{
|
|
155
|
+
color: var(--primary-color-main, #FEBF10);
|
|
156
|
+
font-family: Nunito;
|
|
157
|
+
font-size: 11.592px;
|
|
158
|
+
font-style: normal;
|
|
159
|
+
font-weight: 700;
|
|
160
|
+
line-height: normal;
|
|
161
|
+
letter-spacing: 0.773px;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
`;
|
|
166
|
+
|
|
167
|
+
export const Users = styled.div`
|
|
168
|
+
border-radius: 20px;
|
|
169
|
+
background: #F5F7F7;
|
|
170
|
+
padding: 20px;
|
|
171
|
+
width: 100%;
|
|
172
|
+
|
|
173
|
+
.top{
|
|
174
|
+
display: flex;
|
|
175
|
+
justify-content: space-between;
|
|
176
|
+
align-items: center;
|
|
177
|
+
margin-bottom: 10px;
|
|
178
|
+
|
|
179
|
+
h4{
|
|
180
|
+
color: var(--neutral-70, #636666);
|
|
181
|
+
font-size: 14px;
|
|
182
|
+
font-style: normal;
|
|
183
|
+
font-weight: 600;
|
|
184
|
+
line-height: 40px; /* 285.714% */
|
|
185
|
+
letter-spacing: 0.28px;
|
|
186
|
+
}
|
|
187
|
+
p{
|
|
188
|
+
color: var(--secondary-color-main, #00C2C2);
|
|
189
|
+
font-family: Nunito;
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
font-style: normal;
|
|
192
|
+
font-weight: 400;
|
|
193
|
+
line-height: normal;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.table{
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
|
|
201
|
+
.user{
|
|
202
|
+
display: flex;
|
|
203
|
+
/* align-items: center; */
|
|
204
|
+
margin-top: 10px;
|
|
205
|
+
justify-content: space-between;
|
|
206
|
+
img{
|
|
207
|
+
margin-right: 10px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.text{
|
|
211
|
+
display: flex;
|
|
212
|
+
flex-direction: column;
|
|
213
|
+
align-items: flex-start;
|
|
214
|
+
justify-content: start;
|
|
215
|
+
margin-right: 10px;
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
h3{
|
|
219
|
+
color: var(--neutral-90, #313333);
|
|
220
|
+
font-size: 13px;
|
|
221
|
+
font-style: normal;
|
|
222
|
+
font-weight: 600;
|
|
223
|
+
line-height: normal;
|
|
224
|
+
letter-spacing: 0.28px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
P{
|
|
228
|
+
color: var(--neutral-90, #313333);
|
|
229
|
+
font-size: 12px;
|
|
230
|
+
font-style: normal;
|
|
231
|
+
font-weight: 500;
|
|
232
|
+
line-height: normal;
|
|
233
|
+
letter-spacing: 0.24px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
`;
|
|
242
|
+
|
|
243
|
+
export const UploadProgressContainer = styled.div`
|
|
244
|
+
border-radius: 30px;
|
|
245
|
+
background: var(--white, #FFF);
|
|
246
|
+
padding: 10px;
|
|
247
|
+
width: 100%;
|
|
248
|
+
margin-bottom: 20px;
|
|
249
|
+
.upload_icon{
|
|
250
|
+
margin-bottom: 10px;
|
|
251
|
+
p{
|
|
252
|
+
color: var(--neutral-70, #636666);
|
|
253
|
+
font-size: 16px;
|
|
254
|
+
font-style: normal;
|
|
255
|
+
font-weight: 700;
|
|
256
|
+
line-height: 40px; /* 250% */
|
|
257
|
+
letter-spacing: 0.32px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
img{
|
|
261
|
+
width: 69px;
|
|
262
|
+
height: 53px;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.progress{
|
|
267
|
+
|
|
268
|
+
.text{
|
|
269
|
+
display: flex;
|
|
270
|
+
justify-content: space-between;
|
|
271
|
+
|
|
272
|
+
h5{
|
|
273
|
+
color: var(--neutral-70, #636666);
|
|
274
|
+
font-family: Nunito;
|
|
275
|
+
font-size: 12px;
|
|
276
|
+
font-style: normal;
|
|
277
|
+
font-weight: 600;
|
|
278
|
+
line-height: 40px; /* 333.333% */
|
|
279
|
+
letter-spacing: 0.24px;
|
|
280
|
+
}
|
|
281
|
+
p{
|
|
282
|
+
color: var(--neutral-70, #636666);
|
|
283
|
+
font-family: Nunito;
|
|
284
|
+
font-size: 12px;
|
|
285
|
+
font-style: normal;
|
|
286
|
+
font-weight: 600;
|
|
287
|
+
line-height: 40px; /* 333.333% */
|
|
288
|
+
letter-spacing: 0.24px;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
`
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
AbsoluteSVG,
|
|
4
|
+
ArrowIcon,
|
|
5
|
+
BannerCTA,
|
|
6
|
+
BannerImage,
|
|
7
|
+
BannerSubtitle,
|
|
8
|
+
BannerTitle,
|
|
9
|
+
BannerWrapper,
|
|
10
|
+
Container,
|
|
11
|
+
Upgrade,
|
|
12
|
+
Users,
|
|
13
|
+
UploadProgressContainer
|
|
14
|
+
} from "./styles";
|
|
15
|
+
import BannerImg from "./assets/banner.png";
|
|
16
|
+
import Button from "../button";
|
|
17
|
+
import { FaArrowRight } from "react-icons/fa";
|
|
18
|
+
import CircularProgressBar from "./components/progressBar";
|
|
19
|
+
import UpgradeIcon from "./assets/Feature.png";
|
|
20
|
+
import UploadOwner from "./assets/uploadOwner.png";
|
|
21
|
+
import { UploadProgress } from "./assets/uploadProgressIcon";
|
|
22
|
+
import ProgressBar from "../progressBar";
|
|
23
|
+
import UsersList from "./components/users";
|
|
24
|
+
import UpgradeComponent from "./components/ugradeLock";
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
const users = [
|
|
28
|
+
{
|
|
29
|
+
name: "Patty McDermott",
|
|
30
|
+
size: "156MB",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "Patty McDermott",
|
|
34
|
+
size: "156MB",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "Patty McDermott",
|
|
38
|
+
size: "156MB",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "Patty McDermott",
|
|
42
|
+
size: "156MB",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "Patty McDermott",
|
|
46
|
+
size: "156MB",
|
|
47
|
+
},
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
const FileRightBar = () => {
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<Container>
|
|
54
|
+
<BannerWrapper>
|
|
55
|
+
<div className="head">
|
|
56
|
+
<h3>Storage</h3>
|
|
57
|
+
<p>(50% Used)</p>
|
|
58
|
+
</div>
|
|
59
|
+
<CircularProgressBar value={2.5} total={5} />
|
|
60
|
+
<Button
|
|
61
|
+
type="primary"
|
|
62
|
+
text="Upgrade Storage"
|
|
63
|
+
styles={{
|
|
64
|
+
marginTop: "29px",
|
|
65
|
+
fontSize: "16px",
|
|
66
|
+
width: "200px",
|
|
67
|
+
gap: "8px",
|
|
68
|
+
padding: "15.457px 30.913px",
|
|
69
|
+
height: "38.641px",
|
|
70
|
+
}}
|
|
71
|
+
/>
|
|
72
|
+
</BannerWrapper>
|
|
73
|
+
<UpgradeComponent />
|
|
74
|
+
<UsersList />
|
|
75
|
+
|
|
76
|
+
<UploadProgressContainer>
|
|
77
|
+
<div className="upload_icon">
|
|
78
|
+
<img src={UploadProgress?.image} alt="upload progress" />
|
|
79
|
+
<p>Uploading files</p>
|
|
80
|
+
</div>
|
|
81
|
+
<div className="progress">
|
|
82
|
+
<ProgressBar
|
|
83
|
+
value={50}
|
|
84
|
+
minValue={30}
|
|
85
|
+
maxValue={80}
|
|
86
|
+
size={"sm"}
|
|
87
|
+
color={"#30D468"}
|
|
88
|
+
/>
|
|
89
|
+
<div className="text">
|
|
90
|
+
<div className="left">
|
|
91
|
+
<h5>2 of 6 Uploaded</h5>
|
|
92
|
+
</div>
|
|
93
|
+
<div className="right">
|
|
94
|
+
<p>3min 22sec</p>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<Button
|
|
102
|
+
type="primary"
|
|
103
|
+
text="Cancel Upload"
|
|
104
|
+
styles={{
|
|
105
|
+
marginTop: "10px",
|
|
106
|
+
fontSize: "14px",
|
|
107
|
+
width: "206px",
|
|
108
|
+
gap: "13px",
|
|
109
|
+
padding: "7px 26px",
|
|
110
|
+
height: "38.641px",
|
|
111
|
+
background: "#F39B33",
|
|
112
|
+
}}
|
|
113
|
+
/>
|
|
114
|
+
|
|
115
|
+
</UploadProgressContainer>
|
|
116
|
+
|
|
117
|
+
</Container>
|
|
118
|
+
);
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export default FileRightBar;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
AbsoluteSVG,
|
|
4
|
+
ArrowIcon,
|
|
5
|
+
BannerCTA,
|
|
6
|
+
BannerImage,
|
|
7
|
+
BannerSubtitle,
|
|
8
|
+
BannerTitle,
|
|
9
|
+
BannerWrapper,
|
|
10
|
+
Container,
|
|
11
|
+
Upgrade,
|
|
12
|
+
Users,
|
|
13
|
+
UploadProgressContainer
|
|
14
|
+
} from "./styles";
|
|
15
|
+
import BannerImg from "./assets/banner.png";
|
|
16
|
+
import Button from "../button";
|
|
17
|
+
import { FaArrowRight } from "react-icons/fa";
|
|
18
|
+
import CircularProgressBar from "./components/progressBar";
|
|
19
|
+
import UpgradeIcon from "./assets/Feature.png";
|
|
20
|
+
import UploadOwner from "./assets/uploadOwner.png";
|
|
21
|
+
import { UploadProgress } from "./assets/uploadProgressIcon";
|
|
22
|
+
import ProgressBar from "../progressBar";
|
|
23
|
+
import UpgradeComponent from "./components/ugradeLock";
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
const users = [
|
|
27
|
+
{
|
|
28
|
+
name: "Patty McDermott",
|
|
29
|
+
size: "156MB",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "Patty McDermott",
|
|
33
|
+
size: "156MB",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "Patty McDermott",
|
|
37
|
+
size: "156MB",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "Patty McDermott",
|
|
41
|
+
size: "156MB",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "Patty McDermott",
|
|
45
|
+
size: "156MB",
|
|
46
|
+
},
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
const FileRightBar = () => {
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<Container >
|
|
53
|
+
<BannerWrapper>
|
|
54
|
+
<div className="head">
|
|
55
|
+
<h3>Storage</h3>
|
|
56
|
+
<p>(50% Used)</p>
|
|
57
|
+
</div>
|
|
58
|
+
<CircularProgressBar value={2.5} total={5} />
|
|
59
|
+
</BannerWrapper>
|
|
60
|
+
<UpgradeComponent />
|
|
61
|
+
|
|
62
|
+
</Container>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default FileRightBar;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
AbsoluteSVG,
|
|
4
|
+
ArrowIcon,
|
|
5
|
+
BannerCTA,
|
|
6
|
+
BannerImage,
|
|
7
|
+
BannerSubtitle,
|
|
8
|
+
BannerTitle,
|
|
9
|
+
BannerWrapper,
|
|
10
|
+
Container,
|
|
11
|
+
Upgrade,
|
|
12
|
+
Users,
|
|
13
|
+
UploadProgressContainer
|
|
14
|
+
} from "./styles";
|
|
15
|
+
import BannerImg from "./assets/banner.png";
|
|
16
|
+
import Button from "../button";
|
|
17
|
+
import { FaArrowRight } from "react-icons/fa";
|
|
18
|
+
import CircularProgressBar from "./components/progressBar";
|
|
19
|
+
import UpgradeIcon from "./assets/Feature.png";
|
|
20
|
+
import UploadOwner from "./assets/uploadOwner.png";
|
|
21
|
+
import UsersList from "./components/users";
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const users = [
|
|
25
|
+
{
|
|
26
|
+
name: "Patty McDermott",
|
|
27
|
+
size: "156MB",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "Patty McDermott",
|
|
31
|
+
size: "156MB",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "Patty McDermott",
|
|
35
|
+
size: "156MB",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "Patty McDermott",
|
|
39
|
+
size: "156MB",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "Patty McDermott",
|
|
43
|
+
size: "156MB",
|
|
44
|
+
},
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
const FileRightBar = () => {
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<Container className="user_banner">
|
|
51
|
+
<BannerWrapper>
|
|
52
|
+
<div className="head">
|
|
53
|
+
<h3>Storage</h3>
|
|
54
|
+
<p>(50% Used)</p>
|
|
55
|
+
</div>
|
|
56
|
+
<CircularProgressBar value={2.5} total={5} />
|
|
57
|
+
<Button
|
|
58
|
+
type="primary"
|
|
59
|
+
text="Upgrade Storage"
|
|
60
|
+
styles={{
|
|
61
|
+
marginTop: "29px",
|
|
62
|
+
fontSize: "16px",
|
|
63
|
+
width: "200px",
|
|
64
|
+
gap: "8px",
|
|
65
|
+
padding: "15.457px 30.913px",
|
|
66
|
+
height: "38.641px",
|
|
67
|
+
}}
|
|
68
|
+
/>
|
|
69
|
+
</BannerWrapper>
|
|
70
|
+
<UsersList />
|
|
71
|
+
</Container>
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export default FileRightBar;
|