2022-03-09 19:05:37 +01:00
// @flow
import * as ICONS from 'constants/icons' ;
import * as PAGES from 'constants/pages' ;
import Icon from 'component/common/icon' ;
import Button from 'component/button' ;
2022-03-15 03:38:45 +01:00
import I18nMessage from 'component/i18nMessage' ;
2022-03-09 19:05:37 +01:00
import React from 'react' ;
import AstronautAndFriends from './astronaut_n_friends.png' ;
import BadgePremium from './badge_premium.png' ;
import BadgePremiumPlus from './badge_premium-plus.png' ;
import OdyseePremium from './odysee_premium.png' ;
type Props = {
pageLocation : string ,
currencyToUse : string ,
} ;
export default function MembershipSplash ( props : Props ) {
const { pageLocation , currencyToUse } = props ;
const premiumDisplayAmounts = {
eur : '€0.89' ,
usd : '99¢' ,
} ;
const premiumPlusDisplayAmounts = {
eur : '€2.68' ,
usd : '$2.99' ,
} ;
// const logo = <Icon className="header__logo" icon={ICONS.ODYSEE_WHITE_TEXT} />;
const earlyAcessInfo = (
< div className = "membership-splash__info-content" >
< Icon icon = { ICONS . EARLY _ACCESS } / >
{ _ _ ( 'Exclusive and early access to features' ) }
< / div >
) ;
const badgeInfo = (
< div className = "membership-splash__info-content" >
< Icon icon = { ICONS . MEMBER _BADGE } / >
{ _ _ ( 'Badge on profile' ) }
< / div >
) ;
const noAdsInfo = (
< div className = "membership-splash__info-content" >
< Icon icon = { ICONS . NO _ADS } / >
{ _ _ ( 'No ads' ) }
< / div >
) ;
2022-03-15 03:38:45 +01:00
// const livestreamInfo = (
// <div className="membership-splash__info-content">
// <Icon icon={ICONS.NO_ADS} />
// {__('Livestreaming')}
// </div>
// );
2022-03-09 19:05:37 +01:00
return (
< div className = "membership-splash" >
< div className = "membership-splash__banner" >
< img src = { AstronautAndFriends } / >
< section className = "membership-splash__title" >
< section >
< img src = { OdyseePremium } / >
< / section >
< section >
< I18nMessage
tokens = { { early _access : < b > { _ _ ( 'early access' ) } < / b > , site _wide _badge : < b > { _ _ ( 'site-wide badge' ) } < / b > } }
>
Get % early _access % features and a % site _wide _badge %
< / I18nMessage >
< / section >
< / section >
< / div >
< div className = "membership-splash__info-wrapper" >
< div className = "membership-splash__info" >
2022-03-10 05:02:24 +01:00
{ _ _ (
"Creating a revolutionary video platform for everyone is something we're proud to be doing, but it isn't something that can happen without support. If you believe in Odysee's mission, please consider becoming a Premium member. As a Premium member, you'll be helping us build the best platform in the universe and we'll give you some cool perks!"
) }
2022-03-09 19:05:37 +01:00
< / div >
< div className = "membership-splash__info" >
< section className = "membership-splash__info-header" >
< div className = "membership-splash__info-price" >
< img src = { BadgePremium } / >
< section >
< I18nMessage
tokens = { {
date _range : < div className = "membership-splash__info-range" > { _ _ ( 'A MONTH' ) } < / div > ,
currencyToUseString : premiumDisplayAmounts [ currencyToUse ] ,
} }
>
% currencyToUseString % % date _range %
< / I18nMessage >
< / section >
< / div >
< / section >
{ badgeInfo }
2022-03-15 03:38:45 +01:00
{ /* {livestreamInfo} */ }
2022-03-09 19:05:37 +01:00
{ earlyAcessInfo }
< div className = "membership-splash__info-button" >
< Button
button = "primary"
label = { _ _ ( 'Join' ) }
navigate = { ` / $ / ${ PAGES . ODYSEE _MEMBERSHIP } ?interval=year&plan=Premium&pageLocation= ${ pageLocation } ` }
/ >
< / div >
< / div >
< div className = "membership-splash__info" >
< section className = "membership-splash__info-header" >
< div className = "membership-splash__info-price" >
< img src = { BadgePremiumPlus } / >
< section >
{ premiumPlusDisplayAmounts [ currencyToUse ] }
< div className = "membership-splash__info-range" > { _ _ ( 'A MONTH' ) } < / div >
< / section >
< / div >
< / section >
{ badgeInfo }
2022-03-15 03:38:45 +01:00
{ /* {livestreamInfo} */ }
2022-03-09 19:05:37 +01:00
{ earlyAcessInfo }
{ noAdsInfo }
< div className = "membership-splash__info-button" >
< Button
button = "primary"
label = { _ _ ( 'Join' ) }
navigate = { ` / $ / ${ PAGES . ODYSEE _MEMBERSHIP } ?interval=year&plan=Premium%2b&pageLocation= ${ pageLocation } & ` }
/ >
< / div >
< / div >
< / div >
< / div >
) ;
}