lbry-sec/pages/index.js
2021-03-29 10:13:37 -04:00

233 lines
6.8 KiB
JavaScript

import React from 'react';
import Image from 'next/image';
import { useRouter } from 'next/router';
import { Header } from '../component/header';
import { Twitter } from '../component/twitter';
import { Email } from '../component/email';
import { t, m } from '../i18n';
import { tracker } from '../analytics';
export default function Home() {
const router = useRouter();
const lang = router.query.lang || 'en';
React.useEffect(() => {
tracker.trackPageView();
}, []);
function __(message) {
return t(message, lang);
}
return (
<div>
<Header />
<main>
<div className="landing__img-container">
<img className="landing__img" src="https://i.imgur.com/onVjlEW.jpg" />
</div>
<div className="landing__text">
<h1 className="landing__title">
{__(m.help_lbry)}
<br />
{__(m.save_crypto)}
</h1>
<div className="landing__subtitle">
<div>{__(m.landing_subtitle)}</div>
<div className="landing__standout">
<span>{__(m.landing_action)}</span>
</div>
</div>
</div>
<div className="content">
<h2 className="content__section-title">{__(m.summary_title)}</h2>
<div className="content__subtitle">{__(m.summary_subtitle)}</div>
{/* <div>
<small>
Warning / Enticement: this video is more entertainment than
education, read the
<a className="link" href="https://odysee.com/helplbrysavecrypto">
Case Guide & FAQ
</a>
for facts
</small>
</div>
<div className="video">
<iframe
id="lbry-iframe"
src="https://odysee.com/$/embed/odysee/7a416c44a6888d94fe045241bbac055c726332aa?r=A6zE8KtZ6VVk268xANdFViL8znbDXL4F"
allowFullScreen
/>
</div> */}
<div className="content__section">
<p>
{__(m.p1_a)}
<br />
<br />
{__(m.p1_b)}
</p>
<div className="content__img content__img--question">
<Image
src="/question.png"
alt="Image of LBRY cartoon"
layout="fill"
/>
</div>
</div>
<div className="content__section">
<div className="content__img content__img--megaphone">
<Image
className="content__img"
src="/megaphone.png"
alt="Image of LBRY cartoon"
layout="fill"
/>
</div>
<p>
{__(m.p2_a)}
<br />
<br />
{__(m.p2_b)}
</p>
</div>
<h2 className="content__section-title" id="share">
{__(m.share_story_title)}
</h2>
<div className="content__subtitle">
{__(m.share_story_subtitle)}
&nbsp;
<a
href="https://twitter.com/intent/tweet?text=LBRY%20and%20cryptocurrencies%20are%20useful%20technologies%20that%20must%20remain%20legal%20and%20free%20%23HelpLBRYSaveCrypto%0A%0Awww.helplbrysavecrypto.com"
className="link"
rel="noreferrer noopener"
target="_blannk"
>
#HelpLBRYSaveCrypto
</a>
</div>
</div>
<Twitter />
<div className="content">
<h2 className="content__section-title" id="petition">
{__(m.petition_title)}
</h2>
<div className="content__subtitle">
{__(m.petition_subtitle)}
&nbsp;
<a className="link" href="https://www.change.org/p/28064277">
{__(m.petition_link)}
</a>
.
</div>
</div>
<div className="content">
<h2 className="content__section-title" id="petition">
{__(m.read_more_title)}
</h2>
<div className="content__subtitle">
{__(m.read_more_subtitle)}
&nbsp;
<a className="link" href="/faq">
{__(m.read_more_link)}
</a>
.
</div>
</div>
<Email i18n={__} />
<div className="content">
<h2 className="content__section-title">{__(m.try_lbry_title)}</h2>
<div className="content__subtitle">{__(m.try_lbry_subtitle)}</div>
<div className="lbry__try">
<p>
<a href="https://lbry.com/get" className="link">
{__(m.try_lbry_desktop_link)}
</a>{' '}
({__(m.try_lbry_desktop_help)})
</p>
</div>
<div className="lbry__try">
<p>
<a href="https://odysee.com" className="link">
Odysee
</a>{' '}
({__(m.try_odysee_help)})
</p>
</div>
</div>
<div className="content">
<h2 className="content__section-title" id="contact">
{__(m.contact_title)}
</h2>
<p>
{__(m.contact_press)}:{' '}
<a className="link" href="mailto:press@lbry.com">
press@lbry.com
</a>
</p>
<p>
{__(m.contact_legal)}:{' '}
<a className="link" href="mailto:legal@lbry.com">
legal@lbry.com
</a>
</p>
<p>
{__(m.contact_other_email)}:{' '}
<a className="link" href="mailto:savecrypto@lbry.com">
savecrypto@lbry.com
</a>
</p>
<p>
Twitter:{' '}
<a className="link" href="https://twitter.com/lbrycom">
@LBRYcom
</a>
</p>
<p>
{__(m.contact_discord)}:{' '}
<a className="link" href="https://chat.lbry.org">
LBRY Discord
</a>
</p>
</div>
<div className="content">
<h2 className="content__section-title" id="donate">
{__(m.donate_title)}
</h2>
<div className="content__subtitle">{__(m.contact_subtitle)}</div>
<div>
<div className="donate">
<div>BTC</div>
<code>bc1qtfylps0guegw83el0tn3c7s35cyy728fskk6a8</code>
</div>
<div className="donate">
<div>ETH & ERC</div>
<code>0x13Dd57244116Ae29fd4346436494AAF4C72c5e84</code>
</div>
<div className="donate">
<div>LBC</div>
<code>lbc1qwpt9caexxzqlpw07h7jyh28r60hf86t9xn6flk</code>
</div>
</div>
</div>
</main>
</div>
);
}