@@ -29,6 +29,8 @@ import demoScreenshotDesktop1 from "./images/demo-screenshot-desktop-1.png";
2929import demoScreenshotDesktop2 from "./images/demo-screenshot-desktop-2.png" ;
3030import Divider from "@material-ui/core/Divider" ;
3131import useSwitchPage from "@material-docs/core/hooks/useSwitchPage" ;
32+ import exampleCode from "./exampleCode.md" ;
33+ import BuildIcon from '@material-ui/icons/Build' ;
3234
3335export default function MaterialDocsLanding ( ) {
3436 const classes = useStyles ( ) ;
@@ -110,7 +112,7 @@ export default function MaterialDocsLanding() {
110112 experience. But it is optional.</ Typography >
111113 < Code
112114 theme = { "darcula" } > { "$ npm install @material-ui/core\n$ npm install @material-ui/icons" } </ Code >
113- < CardActions >
115+ < CardActions >
114116 < Button onClick = { ( ) => switchPage ( [ "Getting started" , "Installation" ] ) } >
115117 Read installation docs
116118 </ Button >
@@ -124,20 +126,20 @@ export default function MaterialDocsLanding() {
124126 < Card className = { classes . card } >
125127 < CardHeader
126128 avatar = {
127- < Avatar > < GetAppIcon /> </ Avatar >
129+ < Avatar > < BuildIcon /> </ Avatar >
128130 }
129131 title = { < Typography variant = { "h6" } > Installation</ Typography > }
130132 />
131133 < CardContent >
132134 < Typography > MaterialDocs components work without any additional setup, and don't
133135 pollute
134136 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>*/ }
141143 </ CardContent >
142144 </ Card >
143145 </ Box >
0 commit comments