File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ const Layout: React.FC<React.PropsWithChildren<LayoutProps>> = ({
73
73
< Spacer />
74
74
< Profile />
75
75
{ inDetailPage && < Title title = { meta . title } date = { meta . date } /> }
76
- { children }
76
+ < div className = "dynamic-content" > { children } </ div >
77
77
< Spacer h = { 5 } />
78
78
< Contacts isDetailPage = { ! ! inDetailPage } />
79
79
</ div >
@@ -87,6 +87,11 @@ const Layout: React.FC<React.PropsWithChildren<LayoutProps>> = ({
87
87
justify-content: center;
88
88
}
89
89
90
+ .dynamic-content {
91
+ width: 100%;
92
+ height: auto;
93
+ }
94
+
90
95
.container {
91
96
width: 100%;
92
97
max-width: ${ Configs . layouts . pageWidth } ;
Original file line number Diff line number Diff line change
1
+ import { Layout } from ' lib/components'
2
+ import { Button } from ' @geist-ui/react'
3
+
4
+ export const meta = {
5
+ title: ' Hello World' ,
6
+ date: ' 2019-06-03T11:38:04.563Z' ,
7
+ }
8
+
9
+ Welcome to ` unix.bio ` , run ` npm run post ` to create your first post.
10
+
11
+ <Button scale = { 2 / 3 } auto onClick = { () => alert (' done' )} >
12
+ Click to share
13
+ </Button >
14
+
15
+ export default ({ children }) => <Layout meta = { meta } >{ children } </Layout >
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export const meta = {
8
8
9
9
Welcome to ` unix.bio ` , run ` npm run post ` to create your first post.
10
10
11
- <Button scale = { 2 / 3 } onClick = { () => alert (' done' )} >
11
+ <Button auto scale = { 2 / 3 } onClick = { () => alert (' done' )} >
12
12
Click to share
13
13
</Button >
14
14
You can’t perform that action at this time.
0 commit comments