@@ -29,6 +29,8 @@ import demoScreenshotDesktop1 from "./images/demo-screenshot-desktop-1.png";
29
29
import demoScreenshotDesktop2 from "./images/demo-screenshot-desktop-2.png" ;
30
30
import Divider from "@material-ui/core/Divider" ;
31
31
import useSwitchPage from "@material-docs/core/hooks/useSwitchPage" ;
32
+ import exampleCode from "./exampleCode.md" ;
33
+ import BuildIcon from '@material-ui/icons/Build' ;
32
34
33
35
export default function MaterialDocsLanding ( ) {
34
36
const classes = useStyles ( ) ;
@@ -110,7 +112,7 @@ export default function MaterialDocsLanding() {
110
112
experience. But it is optional.</ Typography >
111
113
< Code
112
114
theme = { "darcula" } > { "$ npm install @material-ui/core\n$ npm install @material-ui/icons" } </ Code >
113
- < CardActions >
115
+ < CardActions >
114
116
< Button onClick = { ( ) => switchPage ( [ "Getting started" , "Installation" ] ) } >
115
117
Read installation docs
116
118
</ Button >
@@ -124,20 +126,20 @@ export default function MaterialDocsLanding() {
124
126
< Card className = { classes . card } >
125
127
< CardHeader
126
128
avatar = {
127
- < Avatar > < GetAppIcon /> </ Avatar >
129
+ < Avatar > < BuildIcon /> </ Avatar >
128
130
}
129
131
title = { < Typography variant = { "h6" } > Installation</ Typography > }
130
132
/>
131
133
< CardContent >
132
134
< Typography > MaterialDocs components work without any additional setup, and don't
133
135
pollute
134
136
the global scope.</ Typography >
135
- < Code theme = { "darcula" } > $ npm install @material-docs/core </ Code >
136
- < CardActions >
137
- < Button onClick = { event => switchPage ( [ "Tutorials" , "Creating Material Docs" ] ) } >
138
- Explore the docs
139
- </ Button >
140
- </ CardActions >
137
+ < Code theme = { "darcula" } > { exampleCode } </ Code >
138
+ { /* <CardActions>*/ }
139
+ { /* <Button onClick={event => switchPage(["Tutorials", "Creating Material Docs"])}>*/ }
140
+ { /* Explore the docs*/ }
141
+ { /* </Button>*/ }
142
+ { /* </CardActions>*/ }
141
143
</ CardContent >
142
144
</ Card >
143
145
</ Box >
0 commit comments