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.0 KiB

  1. import { Link } from 'react-router';
  2. const outerStyle = {
  3. background: '#373b4a',
  4. margin: '10px',
  5. flex: '0 0 auto',
  6. marginBottom: '0',
  7. display: 'flex'
  8. };
  9. const tabStyle = {
  10. display: 'block',
  11. flex: '1 1 auto',
  12. padding: '10px',
  13. color: '#fff',
  14. textDecoration: 'none',
  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 style={outerStyle}>
  26. <Link style={tabStyle} activeStyle={tabActiveStyle} to='/statuses/new'><i className='fa fa-fw fa-pencil' /> Compose</Link>
  27. <Link style={tabStyle} activeStyle={tabActiveStyle} to='/statuses/home'><i className='fa fa-fw fa-home' /> Home</Link>
  28. <Link style={tabStyle} activeStyle={tabActiveStyle} to='/statuses/mentions'><i className='fa fa-fw fa-at' /> Mentions</Link>
  29. <Link style={tabStyle} activeStyle={tabActiveStyle} to='/statuses/all'><i className='fa fa-fw fa-globe' /> Public</Link>
  30. </div>
  31. );
  32. };
  33. export default TabsBar;