You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

  1. import { Link } from 'react-router';
  2. import { FormattedMessage } from 'react-intl';
  3. const outerStyle = {
  4. background: '#373b4a',
  5. flex: '0 0 auto',
  6. overflowY: 'auto'
  7. };
  8. const tabStyle = {
  9. display: 'block',
  10. flex: '1 1 auto',
  11. padding: '10px 5px',
  12. color: '#fff',
  13. textDecoration: 'none',
  14. textAlign: 'center',
  15. fontSize: '12px',
  16. fontWeight: '500',
  17. borderBottom: '2px solid #373b4a'
  18. };
  19. const tabActiveStyle = {
  20. borderBottom: '2px solid #2b90d9',
  21. color: '#2b90d9'
  22. };
  23. const TabsBar = () => {
  24. return (
  25. <div className='tabs-bar' style={outerStyle}>
  26. <Link style={tabStyle} activeStyle={tabActiveStyle} to='/statuses/new'><i className='fa fa-fw fa-pencil' /> <FormattedMessage id='tabs_bar.compose' defaultMessage='Compose' /></Link>
  27. <Link style={tabStyle} activeStyle={tabActiveStyle} to='/timelines/home'><i className='fa fa-fw fa-home' /> <FormattedMessage id='tabs_bar.home' defaultMessage='Home' /></Link>
  28. <Link style={tabStyle} activeStyle={tabActiveStyle} to='/notifications'><i className='fa fa-fw fa-bell' /> <FormattedMessage id='tabs_bar.notifications' defaultMessage='Notifications' /></Link>
  29. <Link style={{ ...tabStyle, flexGrow: '0', flexBasis: '30px' }} activeStyle={tabActiveStyle} to='/getting-started'><i className='fa fa-fw fa-bars' /></Link>
  30. </div>
  31. );
  32. };
  33. export default TabsBar;