about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/ui/components/tabs_bar.jsx
blob: 2f8a28fadcda31d0fe60dd10e9ff78b4c41e29a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Link } from 'react-router';
import { FormattedMessage } from 'react-intl';

const outerStyle = {
  background: '#373b4a',
  flex: '0 0 auto',
  overflowY: 'auto'
};

const tabStyle = {
  display: 'block',
  flex: '1 1 auto',
  padding: '10px 5px',
  color: '#fff',
  textDecoration: 'none',
  textAlign: 'center',
  fontSize: '12px',
  fontWeight: '500',
  borderBottom: '2px solid #373b4a'
};

const tabActiveStyle = {
  borderBottom: '2px solid #2b90d9',
  color: '#2b90d9'
};

const TabsBar = () => {
  return (
    <div className='tabs-bar' style={outerStyle}>
      <Link style={tabStyle} activeStyle={tabActiveStyle} to='/statuses/new'><i className='fa fa-fw fa-pencil' /> <FormattedMessage id='tabs_bar.compose' defaultMessage='Compose' /></Link>
      <Link style={tabStyle} activeStyle={tabActiveStyle} to='/timelines/home'><i className='fa fa-fw fa-home' /> <FormattedMessage id='tabs_bar.home' defaultMessage='Home' /></Link>
      <Link style={tabStyle} activeStyle={tabActiveStyle} to='/notifications'><i className='fa fa-fw fa-bell' /> <FormattedMessage id='tabs_bar.notifications' defaultMessage='Notifications' /></Link>
      <Link style={{ ...tabStyle, flexGrow: '0', flexBasis: '30px' }} activeStyle={tabActiveStyle} to='/getting-started'><i className='fa fa-fw fa-bars' /></Link>
    </div>
  );
};

export default TabsBar;