2020-02-08 06:12:01 +00:00
|
|
|
import { Fragment } from 'react'
|
|
|
|
import GroupSidebarPanel from '../components/panel/groups_panel'
|
|
|
|
import LinkFooter from '../components/link_footer'
|
|
|
|
import SignUpPanel from '../components/panel/sign_up_panel'
|
|
|
|
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
|
|
|
|
import TrendsPanel from '../components/panel/trends_panel'
|
|
|
|
import ProgressPanel from '../components/panel/progress_panel'
|
|
|
|
import UserPanel from '../components/user_panel'
|
|
|
|
import Search from '../components/search'
|
|
|
|
import PageLayout from '../components/page_layout'
|
|
|
|
import TimelineComposeBlock from '../components/timeline_compose_block'
|
2019-07-09 04:49:44 +01:00
|
|
|
|
2019-08-13 16:54:29 +01:00
|
|
|
export default class HomePage extends PureComponent {
|
2020-02-08 06:12:01 +00:00
|
|
|
render() {
|
|
|
|
const { children } = this.props
|
2019-07-09 04:49:44 +01:00
|
|
|
|
|
|
|
return (
|
2020-02-03 18:24:24 +00:00
|
|
|
<PageLayout
|
2019-08-07 06:02:36 +01:00
|
|
|
layout={{
|
2020-02-08 22:57:09 +00:00
|
|
|
HEADER: <span>hello</span>,
|
|
|
|
HEADER_RIGHT: <Search />,
|
2019-08-09 17:06:27 +01:00
|
|
|
RIGHT: (
|
2019-08-07 06:02:36 +01:00
|
|
|
<Fragment>
|
2020-02-08 06:12:01 +00:00
|
|
|
<UserPanel />
|
|
|
|
<WhoToFollowPanel />
|
|
|
|
<TrendsPanel />
|
|
|
|
<GroupSidebarPanel />
|
2020-02-05 22:45:48 +00:00
|
|
|
<SignUpPanel />
|
|
|
|
<ProgressPanel />
|
2019-08-07 06:02:36 +01:00
|
|
|
<LinkFooter />
|
|
|
|
</Fragment>
|
2020-02-03 18:24:24 +00:00
|
|
|
),
|
2019-08-07 06:02:36 +01:00
|
|
|
}}
|
|
|
|
>
|
2020-02-08 06:12:01 +00:00
|
|
|
<TimelineComposeBlock autoFocus={false} shouldCondense />
|
2020-02-08 22:57:09 +00:00
|
|
|
<div className={[styles.default, styles.borderBottom1PX, styles.borderColorSubtle2, styles.marginBottom15PX, styles.width100PC].join(' ')} />
|
2020-02-08 06:12:01 +00:00
|
|
|
{children}
|
2020-02-03 18:24:24 +00:00
|
|
|
</PageLayout>
|
2019-07-09 04:49:44 +01:00
|
|
|
)
|
|
|
|
}
|
2019-08-07 06:02:36 +01:00
|
|
|
}
|