2019-12-05 06:24:54 +01:00
|
|
|
// @flow
|
2021-03-03 20:23:42 +01:00
|
|
|
import { SIMPLE_SITE } from 'config';
|
2019-12-06 17:03:11 +01:00
|
|
|
import * as PAGES from 'constants/pages';
|
2019-12-05 06:24:54 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { Modal } from 'modal/modal';
|
|
|
|
import Card from 'component/common/card';
|
|
|
|
import Confetti from 'react-confetti';
|
|
|
|
import Button from 'component/button';
|
|
|
|
|
|
|
|
type Props = { doHideModal: () => void };
|
|
|
|
|
|
|
|
const YoutubeWelcome = (props: Props) => {
|
|
|
|
const { doHideModal } = props;
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Modal isOpen type="card" onAborted={doHideModal}>
|
|
|
|
<Confetti recycle={false} style={{ position: 'fixed' }} numberOfPieces={100} />
|
|
|
|
<Card
|
2021-03-03 20:23:42 +01:00
|
|
|
title={!SIMPLE_SITE ? __("You're free!") : __('Welcome to Odysee')}
|
2019-12-06 17:03:11 +01:00
|
|
|
subtitle={
|
2021-03-03 20:23:42 +01:00
|
|
|
!SIMPLE_SITE ? (
|
|
|
|
<React.Fragment>
|
|
|
|
<p>
|
|
|
|
{__("You've escaped the land of spying, censorship, and exploitation.")}
|
|
|
|
<span className="emoji"> 💩</span>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{__('Welcome to the land of content freedom.')}
|
|
|
|
<span className="emoji"> 🌈</span>
|
|
|
|
</p>
|
|
|
|
</React.Fragment>
|
|
|
|
) : (
|
|
|
|
<React.Fragment>
|
|
|
|
<p>
|
|
|
|
{__('You make the party extra special!')}
|
|
|
|
<span className="emoji"> 💖</span>
|
|
|
|
</p>
|
|
|
|
</React.Fragment>
|
|
|
|
)
|
2019-12-06 17:03:11 +01:00
|
|
|
}
|
|
|
|
actions={
|
2019-12-06 22:12:48 +01:00
|
|
|
<div className="card__actions">
|
2019-12-06 17:03:11 +01:00
|
|
|
<Button
|
|
|
|
button="primary"
|
|
|
|
label={__('Create an Account')}
|
|
|
|
navigate={`/$/${PAGES.AUTH}`}
|
|
|
|
onClick={doHideModal}
|
|
|
|
/>
|
|
|
|
<Button button="link" label={__('Not Yet')} onClick={doHideModal} />
|
2019-12-06 22:12:48 +01:00
|
|
|
</div>
|
2019-12-06 17:03:11 +01:00
|
|
|
}
|
2019-12-05 06:24:54 +01:00
|
|
|
/>
|
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default YoutubeWelcome;
|