Skip to content

Commit

Permalink
feat(Airdrops): green airdrop active menuleft
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Nov 22, 2019
1 parent 5c30f9e commit 2885439
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 8 deletions.
6 changes: 5 additions & 1 deletion packages/blockchain-info-components/src/Colors/DarkMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,15 @@ export default {
blue200: '#BBDBFC',
blue500: '#3D89F5',
green000: '#E6F5EB',
green100: '#D1F0DB',
green200: '#B8E5C7',
green300: '#8BDCB3',
green400: '#59CD93',
green500: '#339F7B',
green600: '#00994C',
green600: '#00875A',
green700: '#006B47',
green800: '#04593D',
green900: '#004025',
red000: '#FAECEB',
red100: '#F5D9D7',
red200: '#F0C3C0',
Expand Down
5 changes: 4 additions & 1 deletion packages/blockchain-info-components/src/Colors/Default.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,12 @@ export default {
blue200: '#BBDBFC',
blue500: '#3D89F5',
green000: '#E6F5EB',
green100: '#D1F0DB',
green200: '#B8E5C7',
green300: '#8BDCB3',
green400: '#59CD93',
green500: '#339F7B',
green600: '#00994C',
green600: '#00875A',
green700: '#006B47',
green800: '#04593D',
green900: '#004025',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,26 @@ export const MenuItem = styled.button`
color: ${props => props.theme['deep-blue']};
}
}
&.airdrop {
&:hover {
background: ${props => props.theme['green000']};
}
&.active {
background: ${props => props.theme['green100']};
}
&:active {
background: ${props => props.theme['green200']};
}
&:hover,
&.active {
.icon {
color: ${props => props.theme['green600']};
}
.destination {
color: ${props => props.theme['green800']};
}
}
}
&.coin {
.coin-icon {
width: 30px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Navigation = props => {
</MenuItem>
</SpotlightLinkContainer>
<SpotlightLinkContainer to='/airdrops' activeClassName='active'>
<MenuItem data-e2e='airdropLink'>
<MenuItem data-e2e='airdropLink' className='airdrop'>
<JoyrideSpotlight className='airdrop-tooltip' />
<MenuIcon name='parachute' size='24px' />
<Destination>
Expand All @@ -102,10 +102,10 @@ const Navigation = props => {
/>
</Destination>
<NewCartridge>
<Text color='orange' size='12' weight={500} uppercase>
<Text color='green600' size='12' weight={600} uppercase>
<FormattedMessage
id='layouts.wallet.menuleft.navigation.transactions.new'
defaultMessage='New'
id='layouts.wallet.menuleft.navigation.airdrop.active'
defaultMessage='Active'
/>
</Text>
</NewCartridge>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const Box = styled.div`
padding: 24px;
border-radius: 8px;
border: 1px solid ${props => props.theme['grey000']};
width: 300px;
width: 280px;
`

const AirdropBox = styled(Box)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const StxAirdrop = props => {
</Text>
</Date>
</StatusContainer>
<Text size='11px' color='grey600' style={{ marginTop: '12px' }}>
<Text size='11px' color='grey600' style={{ marginTop: '36px' }}>
<FormattedMessage
id='scenes.airdrop.stx.regulatory'
defaultMessage="*For regulatory reasons, USA, Canada and Japan nationals can't participate in the airdrop."
Expand Down

0 comments on commit 2885439

Please sign in to comment.