summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/LoadingCover.tsx
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-26 16:39:07 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-26 16:39:07 -0700
commitf3c6533d4054de5a71c8867c2b76fc8b0747447c (patch)
tree8e53ce9533aa42ee5d0a31504aa07be691d87157 /extension/react-app/src/components/LoadingCover.tsx
parentf403bbe26b8864ff5367eab08afe4a01fdde8e72 (diff)
parent292d4d10ce28d720d61f97918c490b0d9cdae9e7 (diff)
downloadsncontinue-f3c6533d4054de5a71c8867c2b76fc8b0747447c.tar.gz
sncontinue-f3c6533d4054de5a71c8867c2b76fc8b0747447c.tar.bz2
sncontinue-f3c6533d4054de5a71c8867c2b76fc8b0747447c.zip
Merge branch 'main' into styled-code
Diffstat (limited to 'extension/react-app/src/components/LoadingCover.tsx')
-rw-r--r--extension/react-app/src/components/LoadingCover.tsx50
1 files changed, 50 insertions, 0 deletions
diff --git a/extension/react-app/src/components/LoadingCover.tsx b/extension/react-app/src/components/LoadingCover.tsx
new file mode 100644
index 00000000..a0f8f7a2
--- /dev/null
+++ b/extension/react-app/src/components/LoadingCover.tsx
@@ -0,0 +1,50 @@
+import React from "react";
+import styled from "styled-components";
+
+const StyledDiv = styled.div`
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100vh;
+ background: linear-gradient(
+ 101.79deg,
+ #12887a 0%,
+ #87245c 32%,
+ #e12637 63%,
+ #ffb215 100%
+ );
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex-direction: column;
+ z-index: 10;
+`;
+
+const StyledImg = styled.img`
+ /* add your styles here */
+`;
+
+const StyledDiv2 = styled.div`
+ width: 50%;
+ height: 5px;
+ background: white;
+ margin-top: 20px;
+`;
+
+interface LoadingCoverProps {
+ message: string;
+ hidden?: boolean;
+}
+
+const LoadingCover = (props: LoadingCoverProps) => {
+ return (
+ <StyledDiv style={{ display: props.hidden ? "none" : "inherit" }}>
+ <StyledImg src="continue.gif" alt="centered image" width="50%" />
+ <StyledDiv2></StyledDiv2>
+ <p>{props.message}</p>
+ </StyledDiv>
+ );
+};
+
+export default LoadingCover;