Skip to content

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

seperate component

AykutSarace7563b4035c9
diff --git a/src/containers/Incompatible/index.tsx b/src/containers/Incompatible/index.tsx
new file mode 100644
index 00000000..c097d9b3
--- /dev/null
+++ b/src/containers/Incompatible/index.tsx
@@ -0,0 +1,46 @@
+import { useRouter } from "next/router";
+import React from "react";
+import { Button } from "src/components/Button";
+import styled from "styled-components";
+
+export const StyledIncompatible = styled.div`
+ display: none;
+
+ @media only screen and (max-width: 568px) {
+ position: fixed;
+ top: 0;
+ left: 0;
+ display: flex;
+ flex-direction: column;
+ background: ${({ theme }) => theme.BLACK_LIGHT};
+ color: ${({ theme }) => theme.SILVER};
+ width: 100%;
+ height: 100vh;
+ justify-content: center;
+ align-items: center;
+
+ button {
+ margin-top: 60px;
+ }
+
+ &::before {
+ content: "Uh, oh!";
+ font-weight: 700;
+ font-size: 60px;
+ opacity: 0.6;
+ }
+ }
+`;
+
+export const Incompatible: React.FC = () => {
+ const route = useRouter();
+
+ return (
+ <StyledIncompatible>
+ This app is not compatible with your device!
+ <Button className="incompatible" onClick={() => route.push("/")}>
+ Go Back
+ </Button>
+ </StyledIncompatible>
+ );
+};