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.

40 lines
1.4 KiB

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