From 4cc47773e7b1e5ab4572843a623cdb05e53c757d Mon Sep 17 00:00:00 2001
From: Akash Singh
Date: Thu, 7 Nov 2024 19:04:41 +0530
Subject: [PATCH] Update PrepVerse
---
documentation/docusaurus.config.js | 2 +-
documentation/src/pages/CodeVerse/index.tsx | 6 ++-
documentation/src/pages/showcase/index.tsx | 49 ++++++++++++---------
3 files changed, 35 insertions(+), 22 deletions(-)
diff --git a/documentation/docusaurus.config.js b/documentation/docusaurus.config.js
index a478bb9..5c199a4 100644
--- a/documentation/docusaurus.config.js
+++ b/documentation/docusaurus.config.js
@@ -17,7 +17,7 @@ const katex = require('rehype-katex');
const siteConfig = {
title: "PrepVerse",
tagline: "Computer Science Preparation",
- url: "https://prepverse.github.io",
+ url: "https://prepverse.vercel.app",
baseUrl: "/",
projectName: "prepverse",
organizationName: "PrepVerse",
diff --git a/documentation/src/pages/CodeVerse/index.tsx b/documentation/src/pages/CodeVerse/index.tsx
index 2cf5a0b..5df37de 100644
--- a/documentation/src/pages/CodeVerse/index.tsx
+++ b/documentation/src/pages/CodeVerse/index.tsx
@@ -1,5 +1,5 @@
import clsx from "clsx";
-import React, { SVGProps } from "react";
+import React, { useEffect, SVGProps } from "react";
import Head from "@docusaurus/Head";
import { CommonHeader } from "@site/src/prepverse-theme/common-header";
import { CommonLayout } from "@site/src/prepverse-theme/common-layout";
@@ -59,12 +59,16 @@ const Templates: React.FC = () => {
};
});
};
+ useEffect(() => {
+ window.location.href = "https://prepverse.vercel.app/CodeVerse";
+ }, []);
return (
<>
{title}
+
(null);
+ useEffect(() => {
+ window.location.href = "https://prepverse.vercel.app/showcase";
+ }, []);
return (
-
-
-
-
-
-
-
-
+
+
+
+ >
);
}