feat(#2483): add thanks page for brazil payment
parent
91fca9f16f
commit
c6bb25e283
@ -0,0 +1,50 @@ |
|||||||
|
export const CheckCircle = (): JSX.Element => ( |
||||||
|
<svg |
||||||
|
xmlns='http://www.w3.org/2000/svg' |
||||||
|
width='90' |
||||||
|
height='90' |
||||||
|
fill='none' |
||||||
|
viewBox='0 0 90 90' |
||||||
|
> |
||||||
|
<g filter='url(#filter0_d_27718_242270)'> |
||||||
|
<path |
||||||
|
fill='#fff' |
||||||
|
d='M1 44C1 19.7 20.7 0 45 0s44 19.7 44 44-19.7 44-44 44S1 68.3 1 44z' |
||||||
|
/> |
||||||
|
<path |
||||||
|
fill='#000' |
||||||
|
d='M39.857 51.861l-9.073-9.073a1.714 1.714 0 10-2.425 2.424l10.286 10.286c.67.67 1.755.67 2.424 0l20.572-20.572a1.714 1.714 0 10-2.425-2.424l-19.359 19.36z' |
||||||
|
/> |
||||||
|
</g> |
||||||
|
<defs> |
||||||
|
<filter |
||||||
|
id='filter0_d_27718_242270' |
||||||
|
width='90' |
||||||
|
height='90' |
||||||
|
x='0' |
||||||
|
y='0' |
||||||
|
colorInterpolationFilters='sRGB' |
||||||
|
filterUnits='userSpaceOnUse' |
||||||
|
> |
||||||
|
<feFlood floodOpacity='0' result='BackgroundImageFix' /> |
||||||
|
<feColorMatrix |
||||||
|
in='SourceAlpha' |
||||||
|
result='hardAlpha' |
||||||
|
values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' |
||||||
|
/> |
||||||
|
<feOffset dy='1' /> |
||||||
|
<feGaussianBlur stdDeviation='0.5' /> |
||||||
|
<feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0' /> |
||||||
|
<feBlend |
||||||
|
in2='BackgroundImageFix' |
||||||
|
result='effect1_dropShadow_27718_242270' |
||||||
|
/> |
||||||
|
<feBlend |
||||||
|
in='SourceGraphic' |
||||||
|
in2='effect1_dropShadow_27718_242270' |
||||||
|
result='shape' |
||||||
|
/> |
||||||
|
</filter> |
||||||
|
</defs> |
||||||
|
</svg> |
||||||
|
) |
||||||
@ -0,0 +1,37 @@ |
|||||||
|
import { Icon } from 'features/Icon' |
||||||
|
import { T9n } from 'features/T9n' |
||||||
|
|
||||||
|
import { |
||||||
|
ScWrapper, |
||||||
|
ScLogo, |
||||||
|
ScTitle, |
||||||
|
ScText, |
||||||
|
ScButton, |
||||||
|
ScBody, |
||||||
|
} from './styled' |
||||||
|
|
||||||
|
const ThanksPage = () => { |
||||||
|
const onClose = () => { |
||||||
|
window.parent.postMessage('close') |
||||||
|
} |
||||||
|
|
||||||
|
return ( |
||||||
|
<ScWrapper> |
||||||
|
<ScBody> |
||||||
|
<ScLogo color='red' /> |
||||||
|
<Icon refIcon='CheckCircle' color='#fff' /> |
||||||
|
<ScTitle> |
||||||
|
<T9n t='thanks_for_sub' /> |
||||||
|
</ScTitle> |
||||||
|
<ScText> |
||||||
|
<T9n t='pb_instat' /> |
||||||
|
</ScText> |
||||||
|
<ScButton onClick={onClose}> |
||||||
|
<T9n t='watch_match' /> |
||||||
|
</ScButton> |
||||||
|
</ScBody> |
||||||
|
</ScWrapper> |
||||||
|
) |
||||||
|
} |
||||||
|
|
||||||
|
export default ThanksPage |
||||||
@ -0,0 +1,108 @@ |
|||||||
|
import styled, { css } from 'styled-components/macro' |
||||||
|
|
||||||
|
import { isMobileDevice } from 'config/userAgent' |
||||||
|
|
||||||
|
import { Logo } from 'features/Logo' |
||||||
|
import { ButtonSolid } from 'features/Common' |
||||||
|
|
||||||
|
export const ScWrapper = styled.div` |
||||||
|
background: #333333; |
||||||
|
min-width: 100%; |
||||||
|
min-height: 100%; |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
align-items: center; |
||||||
|
` |
||||||
|
|
||||||
|
export const ScBody = styled.div` |
||||||
|
background: #333333; |
||||||
|
display: flex; |
||||||
|
justify-content: center; |
||||||
|
align-items: center; |
||||||
|
flex-direction: column; |
||||||
|
padding: 90px 178px 140px; |
||||||
|
|
||||||
|
${isMobileDevice |
||||||
|
? css` |
||||||
|
padding: 20px; |
||||||
|
` |
||||||
|
: ''}; |
||||||
|
|
||||||
|
> * { |
||||||
|
margin: 30px 0; |
||||||
|
|
||||||
|
${isMobileDevice |
||||||
|
? css` |
||||||
|
margin: 20px 0; |
||||||
|
` |
||||||
|
: ''}; |
||||||
|
} |
||||||
|
` |
||||||
|
|
||||||
|
export const ScLogo = styled(Logo)` |
||||||
|
height: 43px; |
||||||
|
width: 184px; |
||||||
|
filter: brightness(0.5); |
||||||
|
|
||||||
|
${isMobileDevice |
||||||
|
? css` |
||||||
|
height: 30px; |
||||||
|
width: 130px; |
||||||
|
` |
||||||
|
: ''}; |
||||||
|
` |
||||||
|
|
||||||
|
export const ScTitle = styled.span` |
||||||
|
font-weight: 700; |
||||||
|
font-size: 34px; |
||||||
|
line-height: 39px; |
||||||
|
color: #ffffff; |
||||||
|
text-align: center; |
||||||
|
|
||||||
|
${isMobileDevice |
||||||
|
? css` |
||||||
|
font-weight: 700; |
||||||
|
font-size: 18px; |
||||||
|
line-height: 25px; |
||||||
|
` |
||||||
|
: ''}; |
||||||
|
` |
||||||
|
|
||||||
|
export const ScText = styled.span` |
||||||
|
font-weight: 400; |
||||||
|
font-size: 20px; |
||||||
|
line-height: 28px; |
||||||
|
color: #ffffff; |
||||||
|
text-align: center; |
||||||
|
|
||||||
|
${isMobileDevice |
||||||
|
? css` |
||||||
|
font-weight: 500; |
||||||
|
font-size: 16px; |
||||||
|
line-height: 10px; |
||||||
|
` |
||||||
|
: ''}; |
||||||
|
` |
||||||
|
|
||||||
|
export const ScButton = styled(ButtonSolid)` |
||||||
|
min-width: 236px; |
||||||
|
width: auto; |
||||||
|
height: 50px; |
||||||
|
background-color: ${({ theme: { colors } }) => colors.button}; |
||||||
|
color: ${({ theme: { colors } }) => colors.white}; |
||||||
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); |
||||||
|
border-radius: 5px; |
||||||
|
font-weight: 600; |
||||||
|
font-size: 20px; |
||||||
|
${isMobileDevice |
||||||
|
? css` |
||||||
|
height: 50px; |
||||||
|
min-width: 300px; |
||||||
|
font-size: 16px; |
||||||
|
` |
||||||
|
: ''}; |
||||||
|
|
||||||
|
:disabled { |
||||||
|
opacity: 0.5; |
||||||
|
} |
||||||
|
` |
||||||
Loading…
Reference in new issue