File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ .redirect_prompt {
2+ margin : 0 auto;
3+ padding : 2rem 0 ;
4+ }
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import clsx from 'clsx' ;
3+ import styles from './HomepageRedirectPrompt.module.css' ;
4+
5+ export default function HomepageRedirectPrompt ( { redirectHref} ) : JSX . Element {
6+ return (
7+ < div className = { styles . redirect_prompt } >
8+ < span >
9+ If you are not redirected automatically, follow this < a href = { redirectHref } > link</ a > .
10+ </ span >
11+ </ div >
12+ ) ;
13+ }
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import clsx from 'clsx' ;
33import Layout from '@theme/Layout' ;
4- import Link from '@docusaurus/Link' ;
54import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
65import styles from './index.module.css' ;
7- import HomepageFeatures from '../components/HomepageFeatures ' ;
6+ import HomepageRedirectPrompt from '../components/HomepageRedirectPrompt ' ;
87
98function HomepageHeader ( ) {
109 const { siteConfig} = useDocusaurusContext ( ) ;
@@ -20,14 +19,16 @@ function HomepageHeader() {
2019
2120export default function Home ( ) : JSX . Element {
2221 const { siteConfig} = useDocusaurusContext ( ) ;
22+ const introPageHref = 'docs/intro'
23+
24+ window . location . href = introPageHref ;
25+
2326 return (
2427 < Layout
2528 title = { `${ siteConfig . title } ` }
2629 description = "solid_lints documentation" >
2730 < HomepageHeader />
28- < main >
29- < HomepageFeatures />
30- </ main >
31+ < HomepageRedirectPrompt redirectHref = { introPageHref } />
3132 </ Layout >
3233 ) ;
3334}
You can’t perform that action at this time.
0 commit comments