-
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(Signup): set up pit callout template
- Loading branch information
plondon
committed
Oct 8, 2019
1 parent
6870885
commit 0ef4a9b
Showing
7 changed files
with
128 additions
and
2 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
Binary file added
BIN
+17.9 KB
packages/blockchain-info-components/src/Images/img/pit-macbook-gold.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+48.6 KB
packages/blockchain-info-components/src/Images/img/pit-macbook-gold@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88.8 KB
packages/blockchain-info-components/src/Images/img/pit-macbook-gold@3x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
117 changes: 117 additions & 0 deletions
117
packages/blockchain-wallet-v4-frontend/src/scenes/Register/PitCallout/index.js
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,117 @@ | ||
import React from 'react' | ||
import styled, { keyframes, css } from 'styled-components' | ||
import { Icon, Image, Link, Text } from 'blockchain-info-components' | ||
import { Wrapper } from 'components/Public' | ||
|
||
const popoutKeyFrame = keyframes` | ||
0%, 10%, 20%, 30%, 70%, 80%, 90%, 100% { right: -40px; } | ||
40%, 50%, 60% { right: -70px; } | ||
` | ||
const popoutAnimation = css` | ||
animation: ${popoutKeyFrame} 5s infinite | ||
cubic-bezier(0.68, -0.55, 0.265, 1.55); | ||
` | ||
const InnerWrapperWidth = 280 | ||
const CopyWrapperWidth = 200 | ||
const WrapperPaddingX = 30 | ||
const WrapperPaddingY = 20 | ||
|
||
const PitCalloutWrapper = styled(Wrapper)` | ||
width: auto; | ||
top: 50%; | ||
right: -40px; | ||
position: absolute; | ||
flex-direction: column; | ||
transform: translateY(-50%); | ||
padding: ${WrapperPaddingY}px ${WrapperPaddingX}px; | ||
${popoutAnimation}; | ||
transition: all 0.3s; | ||
&:hover { | ||
transform: translateY(-50%) translateX(${InnerWrapperWidth - 10}px); | ||
animation: initial; | ||
.footer { | ||
opacity: 1; | ||
} | ||
} | ||
@media (max-width: 1052px) { | ||
display: none; | ||
} | ||
` | ||
const InnerWrapper = styled.div` | ||
width: ${InnerWrapperWidth}px; | ||
` | ||
const CopyWrapper = styled.div` | ||
width: ${CopyWrapperWidth}px; | ||
padding-left: ${WrapperPaddingX}px; | ||
` | ||
const Copy = styled.div` | ||
margin: 8px 0 16px 0; | ||
` | ||
const FooterLink = styled(Link)` | ||
opacity: 0; | ||
margin-top: 4px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: flex-end; | ||
text-align: right; | ||
` | ||
const GoLink = styled.div` | ||
margin-left: 8px; | ||
border: 2px solid ${props => props.theme['gray-1']}; | ||
border-radius: 5px; | ||
justify-content: center; | ||
align-items: center; | ||
cursor: pointer; | ||
display: flex; | ||
padding: 8px; | ||
span { | ||
transform: rotate(-90deg); | ||
font-weight: 600; | ||
} | ||
` | ||
|
||
const PitCallout = () => { | ||
return ( | ||
<PitCalloutWrapper> | ||
<InnerWrapper> | ||
<CopyWrapper> | ||
<Text color='gray-6' size='20px' weight={600}> | ||
Trade Like the Pros. | ||
</Text> | ||
<Text color='gray-6' size='20px' weight={600}> | ||
Trade in The PIT. | ||
</Text> | ||
<Copy> | ||
<Text color='textBlack' size='12px' weight={500}> | ||
We built a Crypto Exchange. Instantly Exchange over 26 pairs of | ||
Crypto and Cash. | ||
</Text> | ||
</Copy> | ||
</CopyWrapper> | ||
<Image | ||
width='100%' | ||
name='pit-macbook-gold' | ||
srcset={{ | ||
'pit-macbook-gold2': '2x', | ||
'pit-macbook-gold3': '3x' | ||
}} | ||
/> | ||
<FooterLink | ||
href='google.com' | ||
className='footer' | ||
target='_blank' | ||
rel='noopener noreferrer' | ||
> | ||
<Text color='blue' weight={600}> | ||
Check It Out | ||
</Text> | ||
<GoLink> | ||
<Icon name='down-arrow-filled' color='brand-secondary' /> | ||
</GoLink> | ||
</FooterLink> | ||
</InnerWrapper> | ||
</PitCalloutWrapper> | ||
) | ||
} | ||
|
||
export default PitCallout |
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