Skip to content

Commit 50b5eac

Browse files
committed
Curated examples page
1 parent bb988ef commit 50b5eac

File tree

2 files changed

+52
-17
lines changed

2 files changed

+52
-17
lines changed

example/src/App.js

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ import Typography from "@material-ui/core/Typography";
1212
import {Link, List, ListItem, ListItemText} from "@material-ui/core";
1313
import FiberManualRecordIcon from '@material-ui/icons/FiberManualRecord';
1414
import GitHubIcon from '@material-ui/icons/GitHub';
15+
import LinkedInIcon from "@material-ui/icons/LinkedIn";
1516

1617
const useStyles = (theme) => ({
1718
root: {
1819
backgroundColor: '#fbfafa',
19-
height: '100%',
20+
height: '100vh',
2021
display: 'flex',
2122
flexDirection: 'column',
2223
flex: '1',
@@ -25,13 +26,19 @@ const useStyles = (theme) => ({
2526
headline: {
2627
marginBottom: '10px',
2728
},
29+
ctaText: {
30+
fontWeight: 'bold',
31+
},
2832
cmd: {
2933
backgroundColor: '#dedede',
3034
},
3135
listBullet: {
3236
fontSize: '10px',
3337
marginRight: '3px',
3438
},
39+
footer: {
40+
marginTop: '30px',
41+
}
3542
});
3643

3744
const App = ({classes}) => {
@@ -75,7 +82,7 @@ const App = ({classes}) => {
7582

7683
return (
7784
<GlobalHotKeys keyMap={keyMap} handlers={handlers}>
78-
<Grid className={classes.root} container justify='center' alignItems='center' spacing={3}>
85+
<Grid className={classes.root} container alignItems='center' spacing={3}>
7986
<Grid item>
8087
<Typography className={classes.headline} align="center" variant="h4">
8188
react-super-cmd <span role="img" aria-label="lightning-emoji"></span>
@@ -84,7 +91,7 @@ const App = ({classes}) => {
8491
<Typography align="center" variant="h6">A blazing fast command line to allow your users to seamlessly interact with your React app.</Typography>
8592
</Grid>
8693
{!lastRunCmd && <Grid item>
87-
<Typography align="center" variant="body1">
94+
<Typography className={classes.ctaText} color="primary" align="center" variant="body1">
8895
Give it a spin <span role="img" aria-label="point-emoji">👉</span> Press <code className={classes.cmd}>cmd+k</code>
8996
</Typography>
9097
</Grid>}
@@ -111,17 +118,24 @@ const App = ({classes}) => {
111118
</ListItem>
112119
</List>
113120
</Grid>
114-
<Grid item>
115-
<Grid item container direction="row" spacing={1}>
121+
<Grid item className={classes.footer}>
122+
<Grid item>
123+
<Typography variant={"body1"}>
124+
<Link href="https://github.com/saharmor/react-super-cmd" target="_blank" rel="noreferrer">
125+
By Sahar Mor
126+
</Link>
127+
</Typography>
128+
</Grid>
129+
<Grid item container justify="center" direction="row" spacing={1}>
116130
<Grid item>
117-
<GitHubIcon/>
131+
<Link href="https://github.com/saharmor/react-super-cmd" target="_blank" rel="noreferrer">
132+
<GitHubIcon fontSize="small"/>
133+
</Link>
118134
</Grid>
119135
<Grid item>
120-
<Typography variant={"body1"}>
121-
<Link href="https://github.com/saharmor/react-super-cmd" target="_blank" rel="noreferrer">
122-
By Sahar Mor
123-
</Link>
124-
</Typography>
136+
<Link href="https://www.linkedin.com/in/sahar-mor/" target="_blank" rel="noreferrer">
137+
<LinkedInIcon/>
138+
</Link>
125139
</Grid>
126140
</Grid>
127141
</Grid>

example/src/index.css

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
11
body {
2-
margin: 0;
3-
padding: 0;
4-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
2+
margin: 0;
3+
padding: 0;
4+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
55
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
66
sans-serif;
7-
-webkit-font-smoothing: antialiased;
8-
-moz-osx-font-smoothing: grayscale;
7+
-webkit-font-smoothing: antialiased;
8+
-moz-osx-font-smoothing: grayscale;
99
}
1010

1111
code {
12-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
1313
monospace;
1414
}
15+
16+
#root {
17+
height: 100vh;
18+
}
19+
20+
html {
21+
height: 100%;
22+
}
23+
24+
body {
25+
min-height: 100%;
26+
}
27+
28+
/* MaterialUI overrides */
29+
a:-webkit-any-link {
30+
text-decoration: none !important;
31+
}
32+
33+
a, a:visited, a:hover, a:active {
34+
color: inherit;
35+
}

0 commit comments

Comments
 (0)