Skip to content

Commit

Permalink
Update PrepVerse
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashSingh3031 committed Nov 7, 2024
1 parent f61d824 commit 4cc4777
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 22 deletions.
2 changes: 1 addition & 1 deletion documentation/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion documentation/src/pages/CodeVerse/index.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -59,12 +59,16 @@ const Templates: React.FC = () => {
};
});
};
useEffect(() => {
window.location.href = "https://prepverse.vercel.app/CodeVerse";
}, []);
return (
<>
<Head>
<html data-active-page="index" />
<title>{title}</title>
<meta property="og:title" content={title} />
<link rel="canonical" href="https://prepverse.vercel.app/CodeVerse" />
<link
rel="preload"
href="https://prepverse.github.io"
Expand Down
49 changes: 29 additions & 20 deletions documentation/src/pages/showcase/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState, useMemo, useEffect } from 'react';
import Head from "@docusaurus/Head";
import clsx from 'clsx';
import { BlogFooter } from "@site/src/prepverse-theme/blog-footer";
import { CommonHeader } from "@site/src/prepverse-theme/common-header";
Expand Down Expand Up @@ -377,28 +378,36 @@ function ShowcaseCards() {

export default function Showcase(): JSX.Element {
const ref = React.useRef<HTMLDivElement>(null);
useEffect(() => {
window.location.href = "https://prepverse.vercel.app/showcase";
}, []);
return (
<CommonLayout>
<CommonHeader /><div
className={clsx(
"w-full",
"mx-auto",
"landing-lg:max-w-[1300px]",
)}
>
<ShowcaseHeader />
<ShowcaseFilters />
<div
style={{ display: 'flex', marginLeft: 'auto' }}
className="container"
<>
<Head>
<link rel="canonical" href="https://prepverse.vercel.app" />
</Head>
<CommonLayout>
<CommonHeader /><div
className={clsx(
"w-full",
"mx-auto",
"landing-lg:max-w-[1300px]",
)}
>
<SearchBar />
<ShowcaseHeader />
<ShowcaseFilters />
<div
style={{ display: 'flex', marginLeft: 'auto' }}
className="container"
>
<SearchBar />
</div>
<ShowcaseCards />
{/* <ShowcaseCardsInfo /> */}
</div>
<ShowcaseCards />
{/* <ShowcaseCardsInfo /> */}
</div>
<BlogFooter />
<BackToTopButton />
</CommonLayout>
<BlogFooter />
<BackToTopButton />
</CommonLayout>
</>
);
}

0 comments on commit 4cc4777

Please sign in to comment.