Skip to content

Commit

Permalink
feat(public background): new public background
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Sep 21, 2020
1 parent 62b69ae commit 41d1a52
Show file tree
Hide file tree
Showing 10 changed files with 2,126 additions and 275 deletions.
2 changes: 2 additions & 0 deletions packages/blockchain-info-components/src/Images/Images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import allowCamera from './img/allow-camera.png'
import allowCamera2 from './img/allow-camera@2x.png'
import allowCamera3 from './img/allow-camera@3x.png'
import appleAppStoreBadge from './img/apple-app-store-badge.svg'
import bgIllo from './img/bg-illo.svg'
import bitpayLogo from './img/bitpay-logo.svg'
import blankCard from './img/blank-card.svg'
import blockchainIcon from './img/bc-icon.svg'
Expand Down Expand Up @@ -124,6 +125,7 @@ const Images = {
'allow-camera2': allowCamera2,
'allow-camera3': allowCamera3,
'apple-app-store-badge': appleAppStoreBadge,
'bg-illo': bgIllo,
'bitpay-logo': bitpayLogo,
'blank-card': blankCard,
'blockchain-logo': blockchainLogo,
Expand Down
1,826 changes: 1,826 additions & 0 deletions packages/blockchain-info-components/src/Images/img/bg-illo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@
"scenes.login.resendsms": "Resend SMS",
"scenes.login.sendguid": "Send my Wallet ID",
"scenes.login.wallet.link": "Don't have a wallet?",
"scenes.login.wallet.signup": "Sign Up",
"scenes.login.wallet.signup": "Sign up Now",
"scenes.login.welcome": "Welcome back!",
"scenes.login.wrong_password": "Error decrypting wallet. Wrong password",
"scenes.login.yubikey": "Yubikey",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ type MessagesType = {
'scenes.login.resendsms': 'Resend SMS'
'scenes.login.sendguid': 'Send my Wallet ID'
'scenes.login.wallet.link': "Don't have a wallet?"
'scenes.login.wallet.signup': 'Sign Up'
'scenes.login.wallet.signup': 'Sign up Now'
'scenes.login.welcome': 'Welcome back!'
'scenes.login.wrong_password': 'Error decrypting wallet. Wrong password'
'scenes.login.yubikey': 'Yubikey'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DropdownLanguageContainer extends React.PureComponent {
}

render () {
const { currentLanguage, languages } = this.props
const { currentLanguage, languages, color } = this.props
const languageList = languages.map(lang => {
return {
text: lang.name,
Expand All @@ -24,7 +24,7 @@ class DropdownLanguageContainer extends React.PureComponent {

return (
<SimpleDropdown
color='whiteFade900'
color={color || 'gray400'}
uppercase={false}
items={languageList}
selectedValue={currentLanguage}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
import { Link } from 'blockchain-info-components'
import React from 'react'

import { FormattedMessage } from 'react-intl'
import { Link } from 'blockchain-info-components'
import { LinkContainer } from 'react-router-bootstrap'
import styled from 'styled-components'

const VersionWrapper = styled.span`
margin-top: 4px;
margin-left: 16px;
margin-right: 16px;
`

// @ts-ignore
const V = APP_VERSION

const Footer = () => (
<VersionWrapper>
<Link
color='whiteFade600'
href='https://github.com/blockchain/blockchain-wallet-v4-frontend/releases'
size='14px'
target='_blank'
weight={500}
>
Version {V}
</Link>
</VersionWrapper>
<>
<VersionWrapper>
<Link
color='grey400'
href='https://github.com/blockchain/blockchain-wallet-v4-frontend/releases'
size='16px'
target='_blank'
weight={500}
>
Version {V}
</Link>
</VersionWrapper>
<LinkContainer to='/help'>
<Link size='16px' weight={600} color='grey400' data-e2e='loginGetHelp'>
<FormattedMessage
id='scenes.login.needhelp'
defaultMessage='Need some help?'
/>
</Link>
</LinkContainer>
</>
)

export default Footer
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ import styled from 'styled-components'
const NavbarStyled = styled(Navbar)`
padding: 0 16px;
box-sizing: border-box;
background-color: ${props => props.theme.blue900};
background-color: ${props => props.theme.grey900};
background-image: url('/img/bg-illo.svg');
`

const NavbarBrandStyled = styled(NavbarBrand)`
display: flex;
flex-direction: row;
width: 100%;
justify-content: center;
`

const BlockchainLogoImage = styled(Image)`
width: 240px;
display: block;
Expand All @@ -21,22 +30,23 @@ const BlockchainLogoImage = styled(Image)`

const PublicBrand = styled.div`
display: flex;
flex-direction: column;
flex-direction: row;
justify-content: center;
`

const Header = () => (
<React.Fragment>
<NavbarStyled height='90px'>
<NavbarBrand>
<>
<NavbarStyled height='112px'>
<NavbarBrandStyled>
<PublicBrand>
<Link href='https://www.blockchain.com'>
<BlockchainLogoImage name='blockchain-logo' height='24px' />
</Link>
</PublicBrand>
</NavbarBrand>
</NavbarBrandStyled>
</NavbarStyled>
<Announcements type='service' alertArea='public' />
</React.Fragment>
</>
)

export default Header
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const FooterInner = styled.div`
`

const Wrapper = styled.div`
background-color: ${props => props.theme.blue900};
background-color: ${props => props.theme.grey900};
height: auto;
min-height: 100%;
width: 100%;
Expand All @@ -51,7 +51,7 @@ const ContentContainer = styled.div`
align-items: center;
padding: 0 32px;
z-index: 1;
max-width: 100%;
width: 100%;
${media.mobile`
padding: 0 15px;
`}
Expand All @@ -72,7 +72,7 @@ const PublicLayoutContainer = ({ component: Component, ...rest }) => (
</ContentContainer>
<FooterWrapper>
<FooterInner>
<DropdownLanguage color='whiteFade900' />
<DropdownLanguage color='grey400' />
<Footer />
</FooterInner>
</FooterWrapper>
Expand Down

0 comments on commit 41d1a52

Please sign in to comment.