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');
17
17
const siteConfig = {
18
18
title : "PrepVerse" ,
19
19
tagline : "Computer Science Preparation" ,
20
- url : "https://prepverse.github.io " ,
20
+ url : "https://prepverse.vercel.app " ,
21
21
baseUrl : "/" ,
22
22
projectName : "prepverse" ,
23
23
organizationName : "PrepVerse" ,
Original file line number Diff line number Diff line change 1
1
import clsx from "clsx" ;
2
- import React , { SVGProps } from "react" ;
2
+ import React , { useEffect , SVGProps } from "react" ;
3
3
import Head from "@docusaurus/Head" ;
4
4
import { CommonHeader } from "@site/src/prepverse-theme/common-header" ;
5
5
import { CommonLayout } from "@site/src/prepverse-theme/common-layout" ;
@@ -59,12 +59,16 @@ const Templates: React.FC = () => {
59
59
} ;
60
60
} ) ;
61
61
} ;
62
+ useEffect ( ( ) => {
63
+ window . location . href = "https://prepverse.vercel.app/CodeVerse" ;
64
+ } , [ ] ) ;
62
65
return (
63
66
< >
64
67
< Head >
65
68
< html data-active-page = "index" />
66
69
< title > { title } </ title >
67
70
< meta property = "og:title" content = { title } />
71
+ < link rel = "canonical" href = "https://prepverse.vercel.app/CodeVerse" />
68
72
< link
69
73
rel = "preload"
70
74
href = "https://prepverse.github.io"
Original file line number Diff line number Diff line change 1
1
import React , { useState , useMemo , useEffect } from 'react' ;
2
+ import Head from "@docusaurus/Head" ;
2
3
import clsx from 'clsx' ;
3
4
import { BlogFooter } from "@site/src/prepverse-theme/blog-footer" ;
4
5
import { CommonHeader } from "@site/src/prepverse-theme/common-header" ;
@@ -377,28 +378,36 @@ function ShowcaseCards() {
377
378
378
379
export default function Showcase ( ) : JSX . Element {
379
380
const ref = React . useRef < HTMLDivElement > ( null ) ;
381
+ useEffect ( ( ) => {
382
+ window . location . href = "https://prepverse.vercel.app/showcase" ;
383
+ } , [ ] ) ;
380
384
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
+ ) }
394
396
>
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 /> */ }
396
407
</ div >
397
- < ShowcaseCards />
398
- { /* <ShowcaseCardsInfo /> */ }
399
- </ div >
400
- < BlogFooter />
401
- < BackToTopButton />
402
- </ CommonLayout >
408
+ < BlogFooter />
409
+ < BackToTopButton />
410
+ </ CommonLayout >
411
+ </ >
403
412
) ;
404
413
}
You can’t perform that action at this time.
0 commit comments