Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit 5c83547

Browse files
committed
[Landing] Modified.
1 parent 17c8c5f commit 5c83547

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<DocsLayout
2+
name={"My documentation"}
3+
version={"1.0.0-alpha"}
4+
logo={"http://material-docs.com/static/media/logo.5a237c82.svg"}
5+
keywords={["my", "test", "documentation"]}
6+
description={"This is an example documentation for Material Docs framework."}
7+
author={"Danil Andreev"}
8+
>
9+
<DocsMenu>
10+
<AutoDocsMenu />
11+
</DocsMenu>
12+
<DocsPages>
13+
<PagesGroup name={"My Group"}>
14+
{/*...*/}
15+
</PagesGroup>
16+
<SecondPage/>
17+
</DocsPages>
18+
</DocsLayout>

src/pages/MaterialDocsLanding/index.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import demoScreenshotDesktop1 from "./images/demo-screenshot-desktop-1.png";
2929
import demoScreenshotDesktop2 from "./images/demo-screenshot-desktop-2.png";
3030
import Divider from "@material-ui/core/Divider";
3131
import useSwitchPage from "@material-docs/core/hooks/useSwitchPage";
32+
import exampleCode from "./exampleCode.md";
33+
import BuildIcon from '@material-ui/icons/Build';
3234

3335
export 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

Comments
 (0)