Selaa lähdekoodia

create loading component

AykutSarac 3 vuotta sitten
vanhempi
commit
3d37f3ddc8
1 muutettua tiedostoa jossa 41 lisäystä ja 0 poistoa
  1. 41 0
      src/components/Loading/index.tsx

+ 41 - 0
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>
+  );
+};