Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ import Layout from '@theme/Layout';
import Head from '@docusaurus/Head';
import HeroCanvas from '@site/src/components/HeroCanvas';

const REDIRECTS = {
'tutorials': 'https://youtube.com/@8thwall',
}

const REDIRECT_SCRIPT = `
const sitePath = new URLSearchParams(window.location.search).get('site_path');
const redirects = ${JSON.stringify(REDIRECTS)};
if (sitePath && redirects[sitePath]) {
window.location.replace(redirects[sitePath]);
}
`


export default function Home() {
return (
<Layout title="Open Source AR & 3D" description="Build immersive AR and interactive 3D experiences. Free and open source.">
Expand All @@ -12,6 +25,7 @@ export default function Home() {
<meta property="og:title" content="8th Wall - Open Source AR & 3D" />
<meta name="twitter:title" content="8th Wall - Open Source AR & 3D" />
<meta name="twitter:description" content="Build immersive AR and interactive 3D experiences. Free and open source." />
<script type="module">{REDIRECT_SCRIPT}</script>
</Head>
<section className="hero" id="hero">
<HeroCanvas />
Expand Down
Loading