diff --git a/src/components/SideBar.js b/src/components/SideBar.js deleted file mode 100644 index 2e9c2592..00000000 --- a/src/components/SideBar.js +++ /dev/null @@ -1,17 +0,0 @@ -// @flow - -import React, { PureComponent } from 'react' - -import Box from 'components/base/Box' - -class SideBar extends PureComponent<{}> { - render() { - return ( - - {''} - - ) - } -} - -export default SideBar diff --git a/src/components/SideBar/Item.js b/src/components/SideBar/Item.js new file mode 100644 index 00000000..fc44577a --- /dev/null +++ b/src/components/SideBar/Item.js @@ -0,0 +1,56 @@ +// @flow + +import React from 'react' +import type { Element } from 'react' +import styled from 'styled-components' + +import Box from 'components/base/Box' +import Text from 'components/base/Text' + +type Props = { + children: string, + desc?: string | null, + icon?: Element<*> | null, +} + +const Container = styled(Box).attrs({ + horizontal: true, + align: 'center', + color: 'lead', + p: 2, +})` + cursor: pointer; + + &:hover { + background: rgba(255, 255, 255, 0.05); + } +` + +const IconWrapper = styled(Box)` + width: 30px; + height: 30px; + border: 2px solid rgba(255, 255, 255, 0.1); +` + +export default function Item({ children, desc, icon }: Props) { + return ( + + {icon || null} + + + {children} + + {desc && ( + + {desc} + + )} + + + ) +} + +Item.defaultProps = { + icon: null, + desc: null, +} diff --git a/src/components/SideBar/index.js b/src/components/SideBar/index.js new file mode 100644 index 00000000..94c99565 --- /dev/null +++ b/src/components/SideBar/index.js @@ -0,0 +1,47 @@ +// @flow + +import React, { PureComponent } from 'react' +import styled from 'styled-components' + +import Box, { GrowScroll } from 'components/base/Box' +import Item from './Item' + +const CapsSubtitle = styled(Box).attrs({ + px: 2, + fontSize: 0, + color: 'shark', +})` + text-transform: uppercase; + font-weight: bold; +` + +class SideBar extends PureComponent<{}> { + render() { + return ( + + + + {'Menu'} + + {'Dashboard'} + {'Send'} + {'Receive'} + {'Settings'} + + + + {'Accounts'} + + {'Brian Account'} + {'Virginie Account'} + {'Ledger Account'} + {'Nicolas Account'} + + + + + ) + } +} + +export default SideBar diff --git a/src/styles/global.js b/src/styles/global.js index 7c4bb783..fba9bcf4 100644 --- a/src/styles/global.js +++ b/src/styles/global.js @@ -11,6 +11,7 @@ injectGlobal` font: inherit; color: inherit; user-select: none; + cursor: inherit; min-width: 0; }