@@ -6,54 +6,6 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
66import useBaseUrl from '@docusaurus/useBaseUrl' ;
77import styles from './styles.module.css' ;
88
9- const features = [
10- {
11- title : < > Easy to Use</ > ,
12- imageUrl : 'img/undraw_docusaurus_mountain.svg' ,
13- description : (
14- < >
15- Docusaurus was designed from the ground up to be easily installed and
16- used to get your website up and running quickly.
17- </ >
18- ) ,
19- } ,
20- {
21- title : < > Focus on What Matters</ > ,
22- imageUrl : 'img/undraw_docusaurus_tree.svg' ,
23- description : (
24- < >
25- Docusaurus lets you focus on your docs, and we'll do the chores. Go
26- ahead and move your docs into the < code > docs</ code > directory.
27- </ >
28- ) ,
29- } ,
30- {
31- title : < > Powered by React</ > ,
32- imageUrl : 'img/undraw_docusaurus_react.svg' ,
33- description : (
34- < >
35- Extend or customize your website layout by reusing React. Docusaurus can
36- be extended while reusing the same header and footer.
37- </ >
38- ) ,
39- } ,
40- ] ;
41-
42- function Feature ( { imageUrl, title, description} ) {
43- const imgUrl = useBaseUrl ( imageUrl ) ;
44- return (
45- < div className = { classnames ( 'col col--4' , styles . feature ) } >
46- { imgUrl && (
47- < div className = "text--center" >
48- < img className = { styles . featureImage } src = { imgUrl } alt = { title } />
49- </ div >
50- ) }
51- < h3 > { title } </ h3 >
52- < p > { description } </ p >
53- </ div >
54- ) ;
55- }
56-
579function Home ( ) {
5810 const context = useDocusaurusContext ( ) ;
5911 const { siteConfig = { } } = context ;
@@ -71,25 +23,12 @@ function Home() {
7123 'button button--outline button--secondary button--lg' ,
7224 styles . getStarted ,
7325 ) }
74- to = { useBaseUrl ( 'docs/introduction ' ) } >
26+ to = { useBaseUrl ( 'docs/general/guidelines/ ' ) } >
7527 Get Started
7628 </ Link >
7729 </ div >
7830 </ div >
7931 </ header >
80- < main >
81- { features && features . length > 0 && (
82- < section className = { styles . features } >
83- < div className = "container" >
84- < div className = "row" >
85- { features . map ( ( props , idx ) => (
86- < Feature key = { idx } { ...props } />
87- ) ) }
88- </ div >
89- </ div >
90- </ section >
91- ) }
92- </ main >
9332 </ Layout >
9433 ) ;
9534}
0 commit comments