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
commit0b3e6fdf553a481bdd899a2608376dbb95c8e72e (patch)
tree615381124b54fb8a10523335c971b5a2d208b767 /extension/react-app/src/components/LoadingCover.tsx
parentdeca77889cfc8eaa4065694f113525eda365e5d0 (diff)
parent0862b388dc0f07e45b6daeaec1f8c05925623692 (diff)
downloadsncontinue-0b3e6fdf553a481bdd899a2608376dbb95c8e72e.tar.gz
sncontinue-0b3e6fdf553a481bdd899a2608376dbb95c8e72e.tar.bz2
sncontinue-0b3e6fdf553a481bdd899a2608376dbb95c8e72e.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;