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 >
) ;
return (
< div className = "membership-splash" >
< div className = "membership-splash__banner" >
2022-03-18 06:19:35 +01:00
< img width = "1000" height = "740" src = { AstronautAndFriends } / >
2022-03-09 19:05:37 +01:00
< section className = "membership-splash__title" >
< section >
2022-03-18 06:19:35 +01:00
< img width = "1000" height = "174" src = { OdyseePremium } / >
2022-03-09 19:05:37 +01:00
< / 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" >
2022-03-18 06:19:35 +01:00
< img width = "500" height = "500" src = { BadgePremium } / >
2022-03-09 19:05:37 +01:00
< section >
< I18nMessage
tokens = { {
2022-03-16 07:40:33 +01:00
premium _recurrence : < div className = "membership-splash__info-range" > { _ _ ( 'A MONTH' ) } < / div > ,
premium _price : premiumDisplayAmounts [ currencyToUse ] ,
2022-03-09 19:05:37 +01:00
} }
>
2022-03-16 07:40:33 +01:00
% premium _price % % premium _recurrence % -- [ context : '99¢ A MONTH' ] --
2022-03-09 19:05:37 +01:00
< / I18nMessage >
< / section >
< / div >
< / section >
{ badgeInfo }
{ 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" >
2022-03-18 06:19:35 +01:00
< img width = "500" height = "500" src = { BadgePremiumPlus } / >
2022-03-09 19:05:37 +01:00
< section >
2022-03-16 07:40:33 +01:00
< I18nMessage
tokens = { {
premium _recurrence : < div className = "membership-splash__info-range" > { _ _ ( 'A MONTH' ) } < / div > ,
premium _price : premiumPlusDisplayAmounts [ currencyToUse ] ,
} }
>
% premium _price % % premium _recurrence % -- [ context : '99¢ A MONTH' ] --
< / I18nMessage >
2022-03-09 19:05:37 +01:00
< / section >
< / div >
< / section >
{ badgeInfo }
{ 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 >
) ;
}