gab-social/app/javascript/gabsocial/components/logged_out_navigation_bar.js

81 lines
2.9 KiB
JavaScript
Raw Normal View History

2020-05-09 03:17:19 +01:00
import Button from './button'
import Search from './search'
import Text from './text'
import ResponsiveClassesComponent from '../features/ui/util/responsive_classes_component';
export default class LoggedOutNavigationBar extends PureComponent {
static propTypes = {
title: PropTypes.string,
showBackBtn: PropTypes.bool,
}
2020-05-09 03:17:19 +01:00
render() {
return (
<ResponsiveClassesComponent
classNames={[_s.default, _s.z4, _s.heightMin53PX, _s.width100PC].join(' ')}
classNamesXS={[_s.default, _s.z4, _s.heightMin98PX, _s.width100PC].join(' ')}
2020-05-09 03:17:19 +01:00
>
<ResponsiveClassesComponent
classNames={[_s.default, _s.heightMin53PX, _s.flexRow, _s.flexWrap, _s.bgNavigation, _s.alignItemsCenter, _s.z3, _s.top0, _s.right0, _s.left0, _s.posFixed].join(' ')}
classNamesXS={[_s.default, _s.heightMin98PX, _s.flexRow, _s.flexWrap, _s.bgNavigation, _s.alignItemsCenter, _s.z3, _s.top0, _s.right0, _s.left0, _s.posFixed].join(' ')}
2020-05-09 03:17:19 +01:00
>
<ResponsiveClassesComponent
classNames={[_s.default, _s.flexRow, _s.saveAreaInsetPT, _s.saveAreaInsetPL, _s.saveAreaInsetPR, _s.width330PX].join(' ')}
classNamesXS={[_s.default, _s.flexRow, _s.saveAreaInsetPT, _s.saveAreaInsetPL, _s.saveAreaInsetPR, _s.width100PC].join(' ')}
2020-05-09 03:17:19 +01:00
>
<Button
href='/'
color='none'
backgroundColor='none'
icon='logo'
iconClassName={[_s.mr5, _s.fillNavigation].join(' ')}
/>
<div className={[_s.default, _s.flexGrow1, _s.mr10].join(' ')}>
2020-05-14 07:03:22 +01:00
<Search isInNav />
2020-05-09 03:17:19 +01:00
</div>
</ResponsiveClassesComponent>
<ResponsiveClassesComponent
classNames={[_s.default, _s.flexRow, _s.py5, _s.px10, _s.width330PX, _s.mlAuto].join(' ')}
2020-05-14 21:45:39 +01:00
classNamesXS={[_s.default, _s.flexRow, _s.pb5, _s.px10, _s.width100PC].join(' ')}
2020-05-09 03:17:19 +01:00
>
<Button
isNarrow
isOutline
color='white'
backgroundColor='none'
href='/auth/log_in'
2020-05-14 21:45:39 +01:00
className={[_s.borderColorWhite, _s.mr5, _s.flexGrow1, _s.alignItemsCenter, _s.justifyContentCenter, _s.py7].join(' ')}
2020-05-09 03:17:19 +01:00
>
<Text color='inherit' weight='medium' align='center'>
Log in
</Text>
</Button>
<Button
isNarrow
color='brand'
backgroundColor='white'
href='/auth/sign_up'
2020-05-14 21:45:39 +01:00
className={[_s.justifyContentCenter, _s.alignItemsCenter, _s.ml5, _s.flexGrow1, _s.py7].join(' ')}
2020-05-09 03:17:19 +01:00
>
<Text color='inherit' weight='bold' align='center'>
Sign up
</Text>
</Button>
</ResponsiveClassesComponent>
</ResponsiveClassesComponent>
</ResponsiveClassesComponent>
)
}
}