File tree Expand file tree Collapse file tree 10 files changed +53
-7
lines changed Expand file tree Collapse file tree 10 files changed +53
-7
lines changed Original file line number Diff line number Diff line change
1
+ export { default } from './Components'
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
+ import { Switch , Route , RouteComponentProps } from 'react-router-dom'
2
3
3
- const Demo = ( ) => {
4
- return < div > Demo</ div >
4
+ import Features from './Features'
5
+ import Docs from './Docs'
6
+ import Supporters from './Supporters'
7
+ import Discuss from './Discuss'
8
+
9
+ export interface DemoProps extends RouteComponentProps { }
10
+
11
+ const Demo : React . FC < DemoProps > = ( { match } ) => {
12
+ return (
13
+ < Switch >
14
+ < Route path = { `${ match . url } /features` } component = { Features } />
15
+ < Route path = { `${ match . url } /docs` } component = { Docs } />
16
+ < Route path = { `${ match . url } /supporters` } component = { Supporters } />
17
+ < Route path = { `${ match . url } /discuss` } component = { Discuss } />
18
+ </ Switch >
19
+ )
5
20
}
6
21
7
22
export default Demo
Original file line number Diff line number Diff line change @@ -19,10 +19,11 @@ const Discuss = () => {
19
19
20
20
return (
21
21
< PageContainer >
22
+ < h1 > Let's discuss this!</ h1 >
22
23
< Paper className = { classes . content } >
23
- < Typography variant = "h4" component = "h1" >
24
+ { /* <Typography variant="h4" component="h1">
24
25
Discuss
25
- </ Typography >
26
+ </Typography> */ }
26
27
< Disqus . DiscussionEmbed shortname = { disqusShortname } config = { disqusConfig } />
27
28
</ Paper >
28
29
</ PageContainer >
Original file line number Diff line number Diff line change
1
+ export { default } from './Discuss'
Original file line number Diff line number Diff line change @@ -3,7 +3,11 @@ import React from 'react'
3
3
import PageContainer from '../../_common/BasePageContainer'
4
4
5
5
const Docs = ( ) => {
6
- return < PageContainer > Docs</ PageContainer >
6
+ return (
7
+ < PageContainer >
8
+ < h1 > Docs</ h1 >
9
+ </ PageContainer >
10
+ )
7
11
}
8
12
9
13
export default Docs
Original file line number Diff line number Diff line change
1
+ export { default } from './Docs'
Original file line number Diff line number Diff line change @@ -3,7 +3,11 @@ import React from 'react'
3
3
import PageContainer from '../../_common/BasePageContainer'
4
4
5
5
const Features = ( ) => {
6
- return < PageContainer > Features!</ PageContainer >
6
+ return (
7
+ < PageContainer >
8
+ < h1 > Features</ h1 >
9
+ </ PageContainer >
10
+ )
7
11
}
8
12
9
13
export default Features
Original file line number Diff line number Diff line change
1
+ export { default } from './Features'
Original file line number Diff line number Diff line change @@ -3,7 +3,24 @@ import React from 'react'
3
3
import PageContainer from '../../_common/BasePageContainer'
4
4
5
5
const Supporters = ( ) => {
6
- return < PageContainer > Supporters!</ PageContainer >
6
+ return (
7
+ < PageContainer >
8
+ < h1 > Supporters</ h1 >
9
+ < div
10
+ style = { {
11
+ marginBottom : '10px' ,
12
+ } }
13
+ >
14
+ Support me on < strong > Patreon</ strong > to release this project faster!
15
+ </ div >
16
+ < a href = "https://www.patreon.com/modularcoder" >
17
+ < img
18
+ src = "https://c5.patreon.com/external/logo/become_a_patron_button.png"
19
+ alt = "Support me on patreon"
20
+ />
21
+ </ a >
22
+ </ PageContainer >
23
+ )
7
24
}
8
25
9
26
export default Supporters
Original file line number Diff line number Diff line change
1
+ export { default } from './Supporters'
You can’t perform that action at this time.
0 commit comments