diff --git a/src/components/DashboardPage.js b/src/components/DashboardPage.js index 6aea3290..84d52b8e 100644 --- a/src/components/DashboardPage.js +++ b/src/components/DashboardPage.js @@ -9,7 +9,10 @@ import { format } from 'helpers/btc' import { getTotalBalance } from 'reducers/accounts' -import Box from 'components/base/Box' +import Box, { Card } from 'components/base/Box' +import Text from 'components/base/Text' +import Select from 'components/base/Select' +import Tabs from 'components/base/Tabs' const mapStateToProps: MapStateToProps<*, *, *> = state => ({ totalBalance: getTotalBalance(state), @@ -19,10 +22,102 @@ type Props = { totalBalance: number, } -class DashboardPage extends PureComponent { +type State = { + tab: number, +} + +const itemsTimes = [ + { key: 'week', name: 'Last week' }, + { key: 'month', name: 'Last month' }, + { key: 'year', name: 'Last year' }, +] + +class DashboardPage extends PureComponent { + state = { + tab: 0, + } + + handleChangeTab = tab => this.setState({ tab }) + render() { const { totalBalance } = this.props - return Your balance: {format(totalBalance)} + const { tab } = this.state + return ( + + + + + {'Hello Anonymous,'} + + + {'here is the summary of your 5 accounts'} + + + + diff --git a/src/components/base/Tabs/index.js b/src/components/base/Tabs/index.js index a8d847ab..3d01824b 100644 --- a/src/components/base/Tabs/index.js +++ b/src/components/base/Tabs/index.js @@ -9,7 +9,7 @@ import Box, { Tabbable } from 'components/base/Box' const Tab = styled(Tabbable).attrs({ flex: 1, - pb: 1, + pb: 2, align: 'center', justify: 'center', fontSize: 1, @@ -17,10 +17,10 @@ const Tab = styled(Tabbable).attrs({ border-bottom: 2px solid transparent; border-bottom-color: ${p => (p.isActive ? p.theme.colors.blue : '')}; color: ${p => (p.isActive ? p.theme.colors.blue : p.theme.colors.steel)}; - font-weight: ${p => (p.isActive ? 'bold' : '')}; margin-bottom: -1px; outline: none; cursor: ${p => (p.isActive ? 'default' : 'pointer')}; + max-width: 200px; ` type Item = { diff --git a/src/styles/theme.js b/src/styles/theme.js index a4a8f46d..a5805549 100644 --- a/src/styles/theme.js +++ b/src/styles/theme.js @@ -8,6 +8,7 @@ export default { argile: '#eeeeee', blue: '#6193ff', cream: '#f9f9f9', + gray: '#a8b6c2', grenade: '#ea2e49', lead: '#999999', mouse: '#e2e2e2',