File tree Expand file tree Collapse file tree 3 files changed +35
-22
lines changed
Expand file tree Collapse file tree 3 files changed +35
-22
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const katex = require('rehype-katex');
1717const 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" ,
Original file line number Diff line number Diff line change 11import clsx from "clsx" ;
2- import React , { SVGProps } from "react" ;
2+ import React , { useEffect , SVGProps } from "react" ;
33import Head from "@docusaurus/Head" ;
44import { CommonHeader } from "@site/src/prepverse-theme/common-header" ;
55import { 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"
Original file line number Diff line number Diff line change 11import React , { useState , useMemo , useEffect } from 'react' ;
2+ import Head from "@docusaurus/Head" ;
23import clsx from 'clsx' ;
34import { BlogFooter } from "@site/src/prepverse-theme/blog-footer" ;
45import { CommonHeader } from "@site/src/prepverse-theme/common-header" ;
@@ -377,28 +378,36 @@ function ShowcaseCards() {
377378
378379export 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}
You can’t perform that action at this time.
0 commit comments