Skip to content

Commit c305c8d

Browse files
committed
Initial select page
1 parent 82989d3 commit c305c8d

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import { makeStyles } from "@material-ui/core/styles"
2+
import Typography from "@material-ui/core/Typography"
3+
import React from "react"
4+
5+
export interface TitleProps {
6+
title: string
7+
organization: string
8+
}
9+
10+
const useStyles = makeStyles((theme) => ({
11+
title: {
12+
textAlign: "center",
13+
marginBottom: theme.spacing(10),
14+
15+
[theme.breakpoints.down("sm")]: {
16+
gridColumn: 1,
17+
},
18+
19+
"& h3": {
20+
marginBottom: theme.spacing(1),
21+
},
22+
},
23+
}))
24+
25+
export const Title: React.FC<TitleProps> = ({ title, organization }) => {
26+
27+
const styles = useStyles()
28+
29+
return <div className={styles.title} >
30+
<Typography variant="h3">{title}</Typography>
31+
<Typography variant="caption">
32+
In <strong>{organization}</strong> organization
33+
</Typography>
34+
</div>
35+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Title } from "./Title"

site/pages/workspaces/create/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1+
import Typography from "@material-ui/core/Typography"
12
import React from "react"
23

4+
import { Title } from "../../../components/FullScreenForm"
5+
36
const CreateSelectProjectPage: React.FC = () => {
47

58
const createWorkspace = () => {
69
alert("create")
710
}
811

912
const button = {
10-
children: "New Workspace",
13+
children: "Next",
1114
onClick: createWorkspace,
1215
}
1316

1417
return (
15-
<div>Create Page</div>
18+
<Title title={"Select Project"} organization={"test-org"} />
1619
)
1720
}
1821

0 commit comments

Comments
 (0)