11import * as React from 'react' ;
22import * as Space from 'react-spaces' ;
3- import { Anchor , Button , Icon } from 'antd' ;
3+ import { Button , Icon , Menu } from 'antd' ;
44import 'antd/dist/antd.css' ;
55import { GettingStarted } from './GettingStarted' ;
66import { Types } from './Types' ;
@@ -12,6 +12,7 @@ import { Stacked } from './Stacked';
1212import { SizingInfo } from './SizingInfo' ;
1313import { VersionHistory } from './VersionHistory' ;
1414import { Intro } from './Intro' ;
15+ import { Try } from './Try' ;
1516
1617export const Docs = ( ) => {
1718 return (
@@ -22,42 +23,46 @@ export const Docs = () => {
2223 </ Space . CenteredVertically >
2324 </ Space . Top >
2425 < Space . Fill className = "all-content" >
25- < Space . Left className = "sidebar" scrollable = { true } size = { 250 } style = { { padding : 30 , borderRight : '2px solid #ddd' } } >
26+ < Space . Left className = "sidebar" scrollable = { true } size = { 250 } style = { { paddingTop : 15 , borderRight : '2px solid #ddd' } } >
2627
27- < h3 className = "sidebar-header" > GitHub</ h3 >
28- < div style = { { marginBottom : 15 } } >
29- < Button type = "primary" onClick = { ( ) => window . location . href = 'https://github.com/aeagle/react-spaces' } > < Icon type = "github" /> View on GitHub</ Button >
30- </ div >
31-
32- < h3 className = "sidebar-header" > NPM < img style = { { position : 'relative' , top : - 2 } } alt = "NPM version" src = "https://img.shields.io/npm/v/react-spaces.svg" /> </ h3 >
28+ < Menu >
29+ < Menu . Item > < a href = "#getting-started" > Getting started</ a > </ Menu . Item >
30+ < Menu . Item > < a href = "#types" > Types</ a > </ Menu . Item >
31+ < Menu . Item > < a href = "#non-resizable" > Anchored</ a > </ Menu . Item >
32+ < Menu . Item > < a href = "#resizable" > Resizable</ a > </ Menu . Item >
33+ < Menu . Item > < a href = "#nested" > Nested</ a > </ Menu . Item >
34+ < Menu . Item > < a href = "#scrollable" > Scrollable</ a > </ Menu . Item >
35+ < Menu . Item > < a href = "#stacked" > Stacked</ a > </ Menu . Item >
36+ < Menu . Item > < a href = "#sizeinfo" > Sizing information</ a > </ Menu . Item >
37+ < Menu . Item > < a href = "#try" > Try</ a > </ Menu . Item >
38+ < Menu . Item > < a href = "#changes" > Version history</ a > </ Menu . Item >
39+ </ Menu >
3340
34- < Anchor offsetTop = { 30 } >
35- < Anchor . Link href = "#getting-started" title = "Getting started" />
36- < Anchor . Link href = "#types" title = "Types" />
37- < Anchor . Link href = "#non-resizable" title = "Anchored" />
38- < Anchor . Link href = "#resizable" title = "Resizable" />
39- < Anchor . Link href = "#nested" title = "Nested" />
40- < Anchor . Link href = "#scrollable" title = "Scrollable" />
41- < Anchor . Link href = "#stacked" title = "Stacked" />
42- < Anchor . Link href = "#sizeinfo" title = "Sizing information" />
43- < Anchor . Link href = "#changes" title = "Version history" />
44- </ Anchor >
41+ < div style = { { padding : 15 } } >
42+ < h3 className = "sidebar-header" > GitHub</ h3 >
43+ < div style = { { marginBottom : 15 } } >
44+ < Button type = "primary" onClick = { ( ) => window . location . href = 'https://github.com/aeagle/react-spaces' } > < Icon type = "github" /> View on GitHub</ Button >
45+ </ div >
4546
46- < h2 className = "sidebar-header" > < a style = { { color : 'black' , fontSize : 24 } } href = "https://twitter.com/allaneagle" > @allaneagle</ a > </ h2 >
47+ < h3 className = "sidebar-header" > NPM < img style = { { position : 'relative' , top : - 2 } } alt = "NPM version" src = "https://img.shields.io/npm/v/react-spaces.svg" /> </ h3 >
48+
49+ < h2 className = "sidebar-header" > < a style = { { color : 'black' , fontSize : 18 } } href = "https://twitter.com/allaneagle" > @allaneagle</ a > </ h2 >
50+ </ div >
4751
4852 </ Space . Left >
4953 < Space . Fill className = "main" scrollable = { true } style = { { padding : 30 , paddingTop : 0 } } >
5054
51- < Intro />
52- < GettingStarted />
53- < Types />
54- < Anchored />
55- < Resizable />
56- < Nested />
57- < Scrollable />
58- < Stacked />
59- < SizingInfo />
60- < VersionHistory />
55+ < Intro />
56+ < GettingStarted />
57+ < Types />
58+ < Anchored />
59+ < Resizable />
60+ < Nested />
61+ < Scrollable />
62+ < Stacked />
63+ < SizingInfo />
64+ < Try />
65+ < VersionHistory />
6166
6267 </ Space . Fill >
6368
0 commit comments