mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
Padding in accounts
This commit is contained in:
parent
6199ac5ef3
commit
f8a947e187
@ -15,7 +15,7 @@ import colors from 'config/colors';
|
|||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 64px;
|
height: 70px;
|
||||||
width: 320px;
|
width: 320px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -16,6 +16,7 @@ const Wrapper = styled.div`
|
|||||||
color: ${colors.TEXT_SECONDARY};
|
color: ${colors.TEXT_SECONDARY};
|
||||||
padding: 22px 48px;
|
padding: 22px 48px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
border-top: 1px solid ${colors.BACKGROUND};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledLink = styled(Link)`
|
const StyledLink = styled(Link)`
|
||||||
|
@ -3,6 +3,8 @@ export const FONT_SIZE = {
|
|||||||
SMALLER: '12px',
|
SMALLER: '12px',
|
||||||
SMALL: '14px',
|
SMALL: '14px',
|
||||||
BASE: '16px',
|
BASE: '16px',
|
||||||
|
TOP_MENU: '17px',
|
||||||
|
BIG: '21px',
|
||||||
BIGGER: '32px',
|
BIGGER: '32px',
|
||||||
BIGGEST: '36px',
|
BIGGEST: '36px',
|
||||||
};
|
};
|
||||||
|
@ -22,8 +22,10 @@ const AsideWrapper = styled.aside`
|
|||||||
min-width: 320px;
|
min-width: 320px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background: ${colors.MAIN};
|
background: ${colors.MAIN};
|
||||||
|
border-right: 1px solid ${colors.BACKGROUND};
|
||||||
|
|
||||||
.fixed {
|
.fixed {
|
||||||
|
border-right: 1px solid ${colors.BACKGROUND};
|
||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,9 @@ import CoinMenu from './components/CoinMenu';
|
|||||||
import DeviceMenu from './components/DeviceMenu';
|
import DeviceMenu from './components/DeviceMenu';
|
||||||
import StickyContainer from './components/StickyContainer';
|
import StickyContainer from './components/StickyContainer';
|
||||||
|
|
||||||
const Header = styled(DeviceHeader)``;
|
const Header = styled(DeviceHeader)`
|
||||||
|
border-right: 1px solid ${colors.BACKGROUND};
|
||||||
|
`;
|
||||||
|
|
||||||
const TransitionGroupWrapper = styled(TransitionGroup)`
|
const TransitionGroupWrapper = styled(TransitionGroup)`
|
||||||
width: 640px;
|
width: 640px;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { FONT_SIZE } from 'config/variables';
|
||||||
import { NavLink } from 'react-router-dom';
|
import { NavLink } from 'react-router-dom';
|
||||||
import colors from 'config/colors';
|
import colors from 'config/colors';
|
||||||
import Indicator from './components/Indicator';
|
import Indicator from './components/Indicator';
|
||||||
@ -7,16 +8,17 @@ import Indicator from './components/Indicator';
|
|||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0px 28px;
|
padding: 0px 30px 0 40px;
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledNavLink = styled(NavLink)`
|
const StyledNavLink = styled(NavLink)`
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 14px;
|
font-size: ${FONT_SIZE.TOP_MENU};
|
||||||
color: ${colors.TEXT_SECONDARY};
|
color: ${colors.TEXT_SECONDARY};
|
||||||
margin: 0px 4px;
|
margin: 0px 4px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
@ -44,8 +46,9 @@ const TopNavigationAccount = (props) => {
|
|||||||
return (
|
return (
|
||||||
<Wrapper className="account-tabs">
|
<Wrapper className="account-tabs">
|
||||||
<StyledNavLink exact to={`${basePath}`}>Summary</StyledNavLink>
|
<StyledNavLink exact to={`${basePath}`}>Summary</StyledNavLink>
|
||||||
<StyledNavLink to={`${basePath}/send`}>Send</StyledNavLink>
|
|
||||||
<StyledNavLink to={`${basePath}/receive`}>Receive</StyledNavLink>
|
<StyledNavLink to={`${basePath}/receive`}>Receive</StyledNavLink>
|
||||||
|
<StyledNavLink to={`${basePath}/send`}>Send</StyledNavLink>
|
||||||
|
{/* <StyledNavLink to={`${basePath}/signverify`}>Sign & Verify</StyledNavLink> */}
|
||||||
<Indicator pathname={props.match.pathname} />
|
<Indicator pathname={props.match.pathname} />
|
||||||
</Wrapper>
|
</Wrapper>
|
||||||
);
|
);
|
||||||
|
@ -66,7 +66,7 @@ const MainContent = styled.article`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const Navigation = styled.nav`
|
const Navigation = styled.nav`
|
||||||
height: 64px;
|
height: 70px;
|
||||||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
|
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
|
||||||
display: flex;
|
display: flex;
|
||||||
background: ${colors.WHITE};
|
background: ${colors.WHITE};
|
||||||
|
@ -16,7 +16,10 @@ import { FONT_SIZE, FONT_WEIGHT, FONT_FAMILY } from 'config/variables';
|
|||||||
|
|
||||||
import type { Props } from './Container';
|
import type { Props } from './Container';
|
||||||
|
|
||||||
const Wrapper = styled.div``;
|
const Wrapper = styled.div`
|
||||||
|
padding-top: 20px;
|
||||||
|
`;
|
||||||
|
|
||||||
const StyledH2 = styled(H2)`
|
const StyledH2 = styled(H2)`
|
||||||
padding: 20px 48px;
|
padding: 20px 48px;
|
||||||
`;
|
`;
|
||||||
|
@ -24,7 +24,7 @@ import type { Props } from './Container';
|
|||||||
const SmallScreenWidth = '850px';
|
const SmallScreenWidth = '850px';
|
||||||
|
|
||||||
const Wrapper = styled.section`
|
const Wrapper = styled.section`
|
||||||
padding: 0 48px;
|
padding: 20px 48px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledH2 = styled(H2)`
|
const StyledH2 = styled(H2)`
|
||||||
|
@ -22,7 +22,7 @@ type State = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
padding: 0 48px 25px;
|
padding: 10px 0 25px 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
@ -52,12 +52,31 @@ const HideBalanceIconWrapper = styled.div`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const FiatValue = styled.div`
|
const FiatValue = styled.div`
|
||||||
font-size: ${FONT_SIZE.BASE};
|
font-weight: ${FONT_WEIGHT.BIGGER};
|
||||||
font-weight: ${FONT_WEIGHT.BASE};
|
font-size: ${FONT_SIZE.BIG};
|
||||||
margin: 7px 0;
|
margin: 7px 0;
|
||||||
|
min-height: 25px;
|
||||||
color: ${colors.TEXT_PRIMARY};
|
color: ${colors.TEXT_PRIMARY};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const FiatValueRate = styled.div`
|
||||||
|
font-weight: ${FONT_WEIGHT.BIGGER};
|
||||||
|
font-size: ${FONT_SIZE.BASE};
|
||||||
|
min-height: 25px;
|
||||||
|
margin: 7px 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: ${colors.TEXT_PRIMARY};
|
||||||
|
`;
|
||||||
|
|
||||||
|
const BalanceWrapper = styled.div`
|
||||||
|
margin-right: 48px;
|
||||||
|
`;
|
||||||
|
|
||||||
|
const BalanceRateWrapper = styled(BalanceWrapper)`
|
||||||
|
padding-left: 50px;
|
||||||
|
`;
|
||||||
|
|
||||||
const CoinBalace = styled.div`
|
const CoinBalace = styled.div`
|
||||||
font-size: ${FONT_SIZE.SMALLER};
|
font-size: ${FONT_SIZE.SMALLER};
|
||||||
color: ${colors.TEXT_SECONDARY};
|
color: ${colors.TEXT_SECONDARY};
|
||||||
@ -68,9 +87,6 @@ const Label = styled.div`
|
|||||||
color: ${colors.TEXT_SECONDARY};
|
color: ${colors.TEXT_SECONDARY};
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const BalanceWrapper = styled.div`
|
|
||||||
margin-right: 48px;
|
|
||||||
`;
|
|
||||||
|
|
||||||
class AccountBalance extends Component<Props, State> {
|
class AccountBalance extends Component<Props, State> {
|
||||||
constructor(props: Props) {
|
constructor(props: Props) {
|
||||||
@ -125,11 +141,11 @@ class AccountBalance extends Component<Props, State> {
|
|||||||
<CoinBalace>{this.props.balance} {selectedCoin.symbol}</CoinBalace>
|
<CoinBalace>{this.props.balance} {selectedCoin.symbol}</CoinBalace>
|
||||||
</BalanceWrapper>
|
</BalanceWrapper>
|
||||||
{fiatRate && (
|
{fiatRate && (
|
||||||
<BalanceWrapper>
|
<BalanceRateWrapper>
|
||||||
<Label>Rate</Label>
|
<Label>Rate</Label>
|
||||||
<FiatValue>${fiatRateValue}</FiatValue>
|
<FiatValueRate>${fiatRateValue}</FiatValueRate>
|
||||||
<CoinBalace>1.00 {selectedCoin.symbol}</CoinBalace>
|
<CoinBalace>1.00 {selectedCoin.symbol}</CoinBalace>
|
||||||
</BalanceWrapper>
|
</BalanceRateWrapper>
|
||||||
)}
|
)}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)}
|
)}
|
||||||
|
@ -18,8 +18,12 @@ import AddedToken from './components/AddedToken';
|
|||||||
|
|
||||||
import type { Props } from './Container';
|
import type { Props } from './Container';
|
||||||
|
|
||||||
|
const Content = styled.div`
|
||||||
|
padding-left: 35px;
|
||||||
|
`;
|
||||||
|
|
||||||
const AccountHeading = styled.div`
|
const AccountHeading = styled.div`
|
||||||
padding: 20px 48px 20px 45px;
|
padding: 30px 48px 30px 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -28,7 +32,7 @@ const AccountHeading = styled.div`
|
|||||||
const H2Wrapper = styled.div`
|
const H2Wrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 20px 48px;
|
padding: 20px 0;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledTooltip = styled(Tooltip)`
|
const StyledTooltip = styled(Tooltip)`
|
||||||
@ -54,7 +58,7 @@ const StyledIcon = styled(Icon)`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const AsyncSelectWrapper = styled.div`
|
const AsyncSelectWrapper = styled.div`
|
||||||
padding: 0px 48px 32px 48px;
|
padding-bottom: 32px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const AddedTokensWrapper = styled.div``;
|
const AddedTokensWrapper = styled.div``;
|
||||||
@ -77,6 +81,7 @@ const AccountSummary = (props: Props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<SelectedAccount {...props}>
|
<SelectedAccount {...props}>
|
||||||
|
<Content>
|
||||||
<AccountHeading>
|
<AccountHeading>
|
||||||
<AccountName>
|
<AccountName>
|
||||||
<StyledCoinLogo coinNetwork={account.network} />
|
<StyledCoinLogo coinNetwork={account.network} />
|
||||||
@ -160,6 +165,7 @@ const AccountSummary = (props: Props) => {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</AddedTokensWrapper>
|
</AddedTokensWrapper>
|
||||||
|
</Content>
|
||||||
</SelectedAccount>
|
</SelectedAccount>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user