-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(exchange): adding login button on wallet login
- Loading branch information
1 parent
7b48dae
commit cd1b383
Showing
8 changed files
with
183 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
40 changes: 40 additions & 0 deletions
40
...lockchain-wallet-v4-frontend/src/layouts/Public/components/Footer/ExchangeLogin/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react' | ||
import { FormattedMessage } from 'react-intl' | ||
import styled from 'styled-components' | ||
|
||
import { Icon, Link, Text } from 'blockchain-info-components' | ||
|
||
const ExchangePill = styled.div` | ||
cursor: pointer; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 8px; | ||
background-color: ${props => props.theme.whiteFade100}; | ||
padding: 12px 32px; | ||
` | ||
|
||
const ExchangeLogin = () => { | ||
return ( | ||
<> | ||
<Link href='https://exchange.blockchain.com/trade/login'> | ||
<ExchangePill> | ||
<Icon name='blockchain-logo-circle' color='white' size='24px' /> | ||
| ||
<Text size='16px' color='whiteFade600' weight={500}> | ||
<FormattedMessage | ||
id='scenes.login.wallet.exchange' | ||
defaultMessage='Looking for Exchange?' | ||
/> | ||
</Text> | ||
| ||
<Text size='16px' color='whiteFade900' weight={600}> | ||
<FormattedMessage id='buttons.login' defaultMessage='Login' /> | ||
</Text> | ||
</ExchangePill> | ||
</Link> | ||
</> | ||
) | ||
} | ||
|
||
export default ExchangeLogin |
27 changes: 27 additions & 0 deletions
27
packages/blockchain-wallet-v4-frontend/src/layouts/Public/components/Footer/Help/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react' | ||
import { FormattedMessage } from 'react-intl' | ||
import { LinkContainer } from 'react-router-bootstrap' | ||
import styled from 'styled-components' | ||
|
||
import { Text } from 'blockchain-info-components' | ||
|
||
const HelpContainer = styled.div` | ||
display: inline-flex; | ||
cursor: pointer; | ||
` | ||
|
||
const Help = () => { | ||
return ( | ||
<HelpContainer> | ||
<LinkContainer to='/help'> | ||
<Text color='grey400' size='16px' weight={500}> | ||
<FormattedMessage | ||
id='scenes.login.need.help' | ||
defaultMessage='Need Help?' | ||
/> | ||
</Text> | ||
</LinkContainer> | ||
</HelpContainer> | ||
) | ||
} | ||
export default Help |
38 changes: 38 additions & 0 deletions
38
...ages/blockchain-wallet-v4-frontend/src/layouts/Public/components/Footer/Version/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react' | ||
import { FormattedMessage } from 'react-intl' | ||
import styled from 'styled-components' | ||
|
||
import { Link } from 'blockchain-info-components' | ||
|
||
const VersionWrapper = styled.span` | ||
margin-top: 4px; | ||
margin-left: 16px; | ||
margin-right: 16px; | ||
` | ||
|
||
// @ts-ignore | ||
const V = APP_VERSION | ||
|
||
const Version = () => ( | ||
<> | ||
<VersionWrapper> | ||
<Link | ||
color='grey400' | ||
href='https://github.com/blockchain/blockchain-wallet-v4-frontend/releases' | ||
size='14px' | ||
target='_blank' | ||
weight={500} | ||
> | ||
<FormattedMessage | ||
id='scenes.login.version' | ||
defaultMessage='Version {version}' | ||
values={{ | ||
version: V | ||
}} | ||
/> | ||
</Link> | ||
</VersionWrapper> | ||
</> | ||
) | ||
|
||
export default Version |
51 changes: 22 additions & 29 deletions
51
packages/blockchain-wallet-v4-frontend/src/layouts/Public/components/Footer/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,31 @@ | ||
import React from 'react' | ||
import { FormattedMessage } from 'react-intl' | ||
import styled from 'styled-components' | ||
|
||
import { Link } from 'blockchain-info-components' | ||
import DropdownLanguage from './DropdownLanguage' | ||
import ExchangeLogin from './ExchangeLogin' | ||
import Help from './Help' | ||
import Version from './Version' | ||
|
||
const VersionWrapper = styled.span` | ||
margin-top: 4px; | ||
margin-left: 16px; | ||
margin-right: 16px; | ||
const FooterInner = styled.div` | ||
padding: 2rem; | ||
padding-bottom: 0; | ||
` | ||
|
||
// @ts-ignore | ||
const V = APP_VERSION | ||
const Footer = ({ isLogin }: Props) => { | ||
return ( | ||
<> | ||
<FooterInner>{isLogin ? <ExchangeLogin /> : null}</FooterInner> | ||
<FooterInner> | ||
<DropdownLanguage color='grey400' size='16px' /> | ||
<Version /> | ||
<Help /> | ||
</FooterInner> | ||
</> | ||
) | ||
} | ||
|
||
const Footer = () => ( | ||
<> | ||
<VersionWrapper> | ||
<Link | ||
color='grey400' | ||
href='https://github.com/blockchain/blockchain-wallet-v4-frontend/releases' | ||
size='14px' | ||
target='_blank' | ||
weight={500} | ||
> | ||
<FormattedMessage | ||
id='scenes.login.version' | ||
defaultMessage='Version {version}' | ||
values={{ | ||
version: V | ||
}} | ||
/> | ||
</Link> | ||
</VersionWrapper> | ||
</> | ||
) | ||
type Props = { | ||
isLogin: boolean | ||
} | ||
|
||
export default Footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters