Skip to content

Commit 4cc4777

Browse files
Update PrepVerse
1 parent f61d824 commit 4cc4777

File tree

3 files changed

+35
-22
lines changed

3 files changed

+35
-22
lines changed

documentation/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const katex = require('rehype-katex');
1717
const siteConfig = {
1818
title: "PrepVerse",
1919
tagline: "Computer Science Preparation",
20-
url: "https://prepverse.github.io",
20+
url: "https://prepverse.vercel.app",
2121
baseUrl: "/",
2222
projectName: "prepverse",
2323
organizationName: "PrepVerse",

documentation/src/pages/CodeVerse/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import clsx from "clsx";
2-
import React, { SVGProps } from "react";
2+
import React, { useEffect, SVGProps } from "react";
33
import Head from "@docusaurus/Head";
44
import { CommonHeader } from "@site/src/prepverse-theme/common-header";
55
import { CommonLayout } from "@site/src/prepverse-theme/common-layout";
@@ -59,12 +59,16 @@ const Templates: React.FC = () => {
5959
};
6060
});
6161
};
62+
useEffect(() => {
63+
window.location.href = "https://prepverse.vercel.app/CodeVerse";
64+
}, []);
6265
return (
6366
<>
6467
<Head>
6568
<html data-active-page="index" />
6669
<title>{title}</title>
6770
<meta property="og:title" content={title} />
71+
<link rel="canonical" href="https://prepverse.vercel.app/CodeVerse" />
6872
<link
6973
rel="preload"
7074
href="https://prepverse.github.io"

documentation/src/pages/showcase/index.tsx

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React, { useState, useMemo, useEffect } from 'react';
2+
import Head from "@docusaurus/Head";
23
import clsx from 'clsx';
34
import { BlogFooter } from "@site/src/prepverse-theme/blog-footer";
45
import { CommonHeader } from "@site/src/prepverse-theme/common-header";
@@ -377,28 +378,36 @@ function ShowcaseCards() {
377378

378379
export default function Showcase(): JSX.Element {
379380
const ref = React.useRef<HTMLDivElement>(null);
381+
useEffect(() => {
382+
window.location.href = "https://prepverse.vercel.app/showcase";
383+
}, []);
380384
return (
381-
<CommonLayout>
382-
<CommonHeader /><div
383-
className={clsx(
384-
"w-full",
385-
"mx-auto",
386-
"landing-lg:max-w-[1300px]",
387-
)}
388-
>
389-
<ShowcaseHeader />
390-
<ShowcaseFilters />
391-
<div
392-
style={{ display: 'flex', marginLeft: 'auto' }}
393-
className="container"
385+
<>
386+
<Head>
387+
<link rel="canonical" href="https://prepverse.vercel.app" />
388+
</Head>
389+
<CommonLayout>
390+
<CommonHeader /><div
391+
className={clsx(
392+
"w-full",
393+
"mx-auto",
394+
"landing-lg:max-w-[1300px]",
395+
)}
394396
>
395-
<SearchBar />
397+
<ShowcaseHeader />
398+
<ShowcaseFilters />
399+
<div
400+
style={{ display: 'flex', marginLeft: 'auto' }}
401+
className="container"
402+
>
403+
<SearchBar />
404+
</div>
405+
<ShowcaseCards />
406+
{/* <ShowcaseCardsInfo /> */}
396407
</div>
397-
<ShowcaseCards />
398-
{/* <ShowcaseCardsInfo /> */}
399-
</div>
400-
<BlogFooter />
401-
<BackToTopButton />
402-
</CommonLayout>
408+
<BlogFooter />
409+
<BackToTopButton />
410+
</CommonLayout>
411+
</>
403412
);
404413
}

0 commit comments

Comments
 (0)