Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

create loading component

AykutSarac3d37f3ddc8f0
diff --git a/src/components/Loading/index.tsx b/src/components/Loading/index.tsx
new file mode 100644
index 00000000..94f44565
--- /dev/null
+++ b/src/components/Loading/index.tsx
@@ -0,0 +1,41 @@
+import React from "react";
+import styled from "styled-components";
+
+const StyledLoading = styled.div`
+ position: fixed;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ width: 100%;
+ height: 100vh;
+ text-align: center;
+`;
+
+const StyledLogo = styled.h2`
+ font-weight: 700;
+ font-size: 56px;
+ pointer-events: none;
+ margin-bottom: 10px;
+`;
+
+const StyledText = styled.span`
+ color: #faa81a;
+`;
+
+const StyledMessage = styled.div`
+ color: #b9bbbe;
+ font-size: 24px;
+ font-weight: 500;
+`;
+
+export const Loading = () => {
+ return (
+ <StyledLoading>
+ <StyledLogo>
+ <StyledText>JSON</StyledText> Visio
+ </StyledLogo>
+ <StyledMessage>Preparing the environment for you...</StyledMessage>
+ </StyledLoading>
+ );
+};