Skip to content

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

add page titles

AykutSarace3d79e0d2b30
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index c5fc35ad..6e73428b 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -5,6 +5,7 @@ import type { AppProps } from "next/app";
import { ThemeProvider } from "styled-components";
import { useRouter } from "next/router";
import { Loading } from "src/components/Loading";
+import Head from "next/head";
function AykutSarac({ Component, pageProps }: AppProps) {
const router = useRouter();
@@ -22,7 +23,15 @@ function AykutSarac({ Component, pageProps }: AppProps) {
router.events.on("routeChangeError", handleComplete);
}, [router]);
- if (pageLoading) return <Loading />;
+ if (pageLoading)
+ return (
+ <>
+ <Head>
+ <title>Loading... | JSON Visio</title>
+ </Head>
+ <Loading />
+ </>
+ );
return (
<ThemeProvider theme={darkTheme}>
diff --git a/src/pages/editor/index.tsx b/src/pages/editor/index.tsx
index af6f2ad7..3ff0c2e4 100644
--- a/src/pages/editor/index.tsx
+++ b/src/pages/editor/index.tsx
@@ -5,6 +5,7 @@ import { Sidebar } from "src/components/Sidebar";
import styled from "styled-components";
import { JsonEditor } from "src/containers/JsonEditor";
import { LiveEditor } from "src/containers/LiveEditor";
+import Head from "next/head";
const StyledPageWrapper = styled.div`
display: flex;
@@ -69,6 +70,9 @@ const Editor: React.FC = () => {
return (
<StyledPageWrapper>
+ <Head>
+ <title>Editor | JSON Visio</title>
+ </Head>
<Sidebar />
<StyledEditorWrapper>
<StyledTools>Tools</StyledTools>
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index a76c75ef..301a22a9 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -7,6 +7,7 @@ import styled from "styled-components";
import { AiFillGithub } from "react-icons/ai";
import { Footer } from "src/components/Footer";
import Link from "next/link";
+import Head from "next/head";
const StyledHome = styled.div`
padding: 24px;
@@ -49,6 +50,9 @@ const StyledText = styled.span<{ white?: boolean }>`
const Home: React.FC = () => {
return (
<StyledHome>
+ <Head>
+ <title>JSON Visio</title>
+ </Head>
<Navbar />
<Container>
<StyledContent>