lbry-sec/pages/index.js

228 lines
6.7 KiB
JavaScript
Raw Normal View History

2021-03-28 00:33:47 +01:00
import React from 'react';
2021-03-28 18:59:34 +02:00
import Image from 'next/image';
2021-03-29 04:10:33 +02:00
import { Header } from '../component/header';
2021-03-28 06:57:49 +02:00
import { Twitter } from '../component/twitter';
2021-03-29 05:32:35 +02:00
import { Email } from '../component/email';
2021-03-28 16:38:52 +02:00
import { t, m } from '../i18n';
2021-03-28 18:06:22 +02:00
import { tracker } from '../analytics';
2021-03-27 17:25:50 +01:00
export default function Home() {
2021-03-28 16:44:13 +02:00
const lang = 'en'; // req.query.lang || 'en'
2021-03-28 16:38:52 +02:00
2021-03-28 18:06:22 +02:00
React.useEffect(() => {
tracker.trackPageView();
}, []);
2021-03-28 16:38:52 +02:00
function __(message) {
return t(message, lang);
}
2021-03-28 00:33:47 +01:00
2021-03-27 17:25:50 +01:00
return (
2021-03-27 18:41:37 +01:00
<div>
2021-03-29 04:10:33 +02:00
<Header />
2021-03-27 18:41:37 +01:00
<main>
2021-03-28 17:21:03 +02:00
<div className="landing__img-container">
2021-03-29 04:16:12 +02:00
<img className="landing__img" src="https://i.imgur.com/onVjlEW.jpg" />
2021-03-28 17:21:03 +02:00
</div>
2021-03-27 18:41:37 +01:00
<div className="landing__text">
<h1 className="landing__title">
2021-03-28 16:44:13 +02:00
{__(m.help_lbry)}
2021-03-27 18:41:37 +01:00
<br />
{__(m.save_crypto)}
2021-03-27 18:41:37 +01:00
</h1>
2021-03-27 19:31:06 +01:00
<div className="landing__subtitle">
<div>{__(m.landing_subtitle)}</div>
2021-03-28 06:57:49 +02:00
<div className="landing__standout">
<span>{__(m.landing_action)}</span>
2021-03-28 06:57:49 +02:00
</div>
2021-03-27 19:31:06 +01:00
</div>
2021-03-27 18:41:37 +01:00
</div>
2021-03-27 17:25:50 +01:00
2021-03-27 18:41:37 +01:00
<div className="content">
<h2 className="content__section-title">{__(m.summary_title)}</h2>
<div className="content__subtitle">{__(m.summary_subtitle)}</div>
2021-03-29 04:21:12 +02:00
{/* <div>
2021-03-29 00:36:49 +02:00
<small>
Warning / Enticement: this video is more entertainment than
education, read the
<a className="link" href="https://odysee.com/helplbrysavecrypto">
Case Guide & FAQ
</a>
2021-03-28 22:48:58 +02:00
for facts
</small>
2021-03-27 20:52:23 +01:00
</div>
2021-03-27 18:41:37 +01:00
<div className="video">
2021-03-28 18:59:34 +02:00
<iframe
2021-03-27 20:52:23 +01:00
id="lbry-iframe"
src="https://odysee.com/$/embed/odysee/7a416c44a6888d94fe045241bbac055c726332aa?r=A6zE8KtZ6VVk268xANdFViL8znbDXL4F"
2021-03-28 06:57:49 +02:00
allowFullScreen
2021-03-28 18:59:34 +02:00
/>
2021-03-29 04:21:12 +02:00
</div> */}
2021-03-28 18:59:34 +02:00
<div className="content__section">
<p>
2021-03-29 15:48:14 +02:00
{__(m.p1_a)}
2021-03-29 00:36:49 +02:00
<br />
<br />
2021-03-29 15:48:14 +02:00
{__(m.p1_b)}
2021-03-28 18:59:34 +02:00
</p>
2021-03-29 05:32:35 +02:00
<div className="content__img content__img--question">
2021-03-28 18:59:34 +02:00
<Image
2021-03-29 05:32:35 +02:00
src="/question.png"
2021-03-28 18:59:34 +02:00
alt="Image of LBRY cartoon"
layout="fill"
/>
</div>
</div>
<div className="content__section">
2021-03-29 05:32:35 +02:00
<div className="content__img content__img--megaphone">
2021-03-28 18:59:34 +02:00
<Image
className="content__img"
src="/megaphone.png"
alt="Image of LBRY cartoon"
layout="fill"
/>
</div>
<p>
2021-03-29 15:48:14 +02:00
{__(m.p2_a)}
2021-03-29 00:36:49 +02:00
<br />
<br />
2021-03-29 15:48:14 +02:00
{__(m.p2_b)}
2021-03-28 18:59:34 +02:00
</p>
2021-03-27 18:41:37 +01:00
</div>
2021-03-27 20:52:23 +01:00
2021-03-29 14:46:29 +02:00
<h2 className="content__section-title" id="share">
2021-03-29 15:48:14 +02:00
{__(m.share_story_title)}
2021-03-29 14:46:29 +02:00
</h2>
2021-03-28 22:48:58 +02:00
<div className="content__subtitle">
2021-03-29 15:48:14 +02:00
{__(m.share_story_subtitle)}
&nbsp;
2021-03-28 22:48:58 +02:00
<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>
2021-03-29 05:32:35 +02:00
<Twitter />
2021-03-28 22:48:58 +02:00
<div className="content">
2021-03-29 14:46:29 +02:00
<h2 className="content__section-title" id="petition">
2021-03-29 15:48:14 +02:00
{__(m.petition_title)}
2021-03-29 14:46:29 +02:00
</h2>
2021-03-28 22:48:58 +02:00
<div className="content__subtitle">
2021-03-29 15:48:14 +02:00
{__(m.petition_subtitle)}
&nbsp;
2021-03-29 00:36:49 +02:00
<a className="link" href="https://www.change.org/p/28064277">
2021-03-29 15:48:14 +02:00
{__(m.petition_link)}
2021-03-29 00:36:49 +02:00
</a>
.
2021-03-28 22:48:58 +02:00
</div>
</div>
2021-03-27 20:52:23 +01:00
2021-03-29 14:54:55 +02:00
<div className="content">
<h2 className="content__section-title" id="petition">
2021-03-29 15:48:14 +02:00
{__(m.read_more_title)}
2021-03-29 14:54:55 +02:00
</h2>
<div className="content__subtitle">
2021-03-29 15:48:14 +02:00
{__(m.read_more_subtitle)}
&nbsp;
2021-03-29 14:54:55 +02:00
<a className="link" href="/faq">
2021-03-29 15:48:14 +02:00
{__(m.read_more_link)}
2021-03-29 14:54:55 +02:00
</a>
.
</div>
</div>
2021-03-29 15:48:14 +02:00
<Email i18n={__} />
2021-03-29 14:54:55 +02:00
2021-03-28 06:57:49 +02:00
<div className="content">
2021-03-29 15:59:33 +02:00
<h2 className="content__section-title">{__(m.try_lbry_title)}</h2>
<div className="content__subtitle">{__(m.try_lbry_subtitle)}</div>
2021-03-29 13:31:17 +02:00
<p>
2021-03-29 05:32:35 +02:00
<div className="lbry__try">
<a href="https://lbry.com/get" className="link">
2021-03-29 15:59:33 +02:00
{__(m.try_lbry_desktop_link)}
2021-03-29 05:32:35 +02:00
</a>{' '}
2021-03-29 15:59:33 +02:00
({__(m.try_lbry_desktop_help)})
2021-03-29 05:32:35 +02:00
</div>
<div className="lbry__try">
<a href="https://odysee.com" className="link">
Odysee
</a>{' '}
2021-03-29 15:59:33 +02:00
({__(m.try_odysee_help)})
2021-03-29 05:32:35 +02:00
</div>
2021-03-29 13:31:17 +02:00
</p>
</div>
<div className="content">
2021-03-29 14:46:29 +02:00
<h2 className="content__section-title" id="contact">
2021-03-29 15:59:33 +02:00
{__(m.contact_title)}
2021-03-29 14:46:29 +02:00
</h2>
<p>
2021-03-29 15:59:33 +02:00
{__(m.contact_press)}:{' '}
2021-03-29 14:46:29 +02:00
<a className="link" href="mailto:press@lbry.com">
press@lbry.com
</a>
</p>
<p>
2021-03-29 15:59:33 +02:00
{__(m.contact_legal)}:{' '}
2021-03-29 14:46:29 +02:00
<a className="link" href="mailto:legal@lbry.com">
legal@lbry.com
</a>
</p>
<p>
2021-03-29 15:59:33 +02:00
{__(m.contact_other_email)}:{' '}
2021-03-29 14:46:29 +02:00
<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>
2021-03-29 14:59:14 +02:00
<p>
2021-03-29 15:59:33 +02:00
{__(m.contact_discord)}:{' '}
2021-03-29 14:59:14 +02:00
<a className="link" href="https://chat.lbry.org">
LBRY Discord
</a>
</p>
2021-03-27 17:25:50 +01:00
</div>
2021-03-29 14:55:58 +02:00
<div className="content">
<h2 className="content__section-title" id="donate">
2021-03-29 15:59:33 +02:00
{__(m.donate_title)}
2021-03-29 14:55:58 +02:00
</h2>
2021-03-29 15:59:33 +02:00
<div className="content__subtitle">{__(m.contact_subtitle)}</div>
2021-03-29 14:55:58 +02:00
<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>
2021-03-27 17:25:50 +01:00
</main>
</div>
2021-03-27 18:41:37 +01:00
);
2021-03-27 17:25:50 +01:00
}