From 237fecdc67f9d9f8cc7916440a33e70f63c0b92b Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Fri, 10 May 2024 15:34:29 +0200 Subject: [PATCH] Replace index page with redirect --- docusaurus.config.ts | 1 + src/pages/index.module.css | 23 ----------------------- src/pages/index.tsx | 27 --------------------------- 3 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 src/pages/index.module.css delete mode 100644 src/pages/index.tsx diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 2543ec0..d25b9bf 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -38,6 +38,7 @@ const config: Config = { logo: { alt: "sos!docs", src: "https://fs.staropensource.de/imgs/StarOpenSource_Transparent.png", + href: '/about', }, items: [ { diff --git a/src/pages/index.module.css b/src/pages/index.module.css deleted file mode 100644 index 9f71a5d..0000000 --- a/src/pages/index.module.css +++ /dev/null @@ -1,23 +0,0 @@ -/** - * CSS files with the .module.css suffix will be treated as CSS modules - * and scoped locally. - */ - -.heroBanner { - padding: 4rem 0; - text-align: center; - position: relative; - overflow: hidden; -} - -@media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; - } -} - -.buttons { - display: flex; - align-items: center; - justify-content: center; -} diff --git a/src/pages/index.tsx b/src/pages/index.tsx deleted file mode 100644 index 5d8eb93..0000000 --- a/src/pages/index.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import clsx from 'clsx'; -import Link from '@docusaurus/Link'; -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; -import Layout from '@theme/Layout'; -import Heading from '@theme/Heading'; - -import styles from './index.module.css'; - -export default function Home(): JSX.Element { - const {siteConfig} = useDocusaurusContext(); - return ( - -
-
- You shouldn't see this. -

You should have been redirected to the About page.

-
- Click here to get there - -
-
-
-
- ); -}