lbry-sec/pages/index.js

244 lines
7.7 KiB
JavaScript
Raw Normal View History

2021-03-28 00:33:47 +01:00
import React from 'react';
2021-03-27 18:41:37 +01:00
import Head from 'next/head';
2021-03-28 18:59:34 +02:00
import Image from 'next/image';
2021-03-28 06:57:49 +02:00
import { Twitter } from '../component/twitter';
2021-03-28 16:38:52 +02:00
import { Stripe } from '../component/stripe';
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 00:33:47 +01:00
const [email, setEmail] = React.useState('');
const [emailLoading, setEmailLoading] = React.useState(false);
const [emailError, setEmailError] = React.useState();
const [emailSuccess, setEmailSuccess] = React.useState();
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
function handleEmailSubmit(e) {
e.preventDefault();
if (!email) {
return;
}
setEmailError(false);
setEmailSuccess(false);
setEmailLoading(true);
fetch('/api/email', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
email,
}),
})
2021-03-28 04:42:43 +02:00
.then((res) => res.json())
2021-03-28 00:33:47 +01:00
.then((data) => {
setEmailLoading(false);
setEmailSuccess(true);
})
.catch(() => {
setEmailLoading(false);
setEmailSuccess(false);
setEmailError(true);
});
}
2021-03-28 18:06:22 +02:00
2021-03-27 17:25:50 +01:00
return (
2021-03-27 18:41:37 +01:00
<div>
2021-03-27 17:25:50 +01:00
<Head>
2021-03-28 16:38:52 +02:00
<title>{__(m.title)}</title>
2021-03-27 17:25:50 +01:00
<link rel="icon" href="/favicon.ico" />
2021-03-28 07:26:08 +02:00
<meta
property="og:image"
2021-03-28 17:21:03 +02:00
content="https://i.imgur.com/pnU7PJz.jpg"
2021-03-28 07:26:08 +02:00
key="image"
/>
2021-03-28 17:29:23 +02:00
<meta
property="og:description"
content="The SEC doesnt understand blockchain or crypto. Theyre saying LBC is a security, its not!"
key="description"
/>
2021-03-27 17:25:50 +01:00
</Head>
2021-03-27 18:41:37 +01:00
<header>
2021-03-28 16:38:52 +02:00
<span className="title">{__(m.title)}</span>
2021-03-27 17:25:50 +01:00
2021-03-27 18:41:37 +01:00
<div className="header__links">
2021-03-27 19:31:06 +01:00
<a
2021-03-28 18:23:24 +02:00
className="link"
2021-03-27 19:31:06 +01:00
href="https://docs.google.com/document/d/1QYSruKLjStWZOTTmkatfUZaCdp4lHWwk6TmUvytzTx0/edit#"
2021-03-28 06:57:49 +02:00
rel="noreferrer noopener"
2021-03-27 19:31:06 +01:00
target="_blannk"
>
2021-03-28 16:44:13 +02:00
{__(m.faq)}
2021-03-27 19:31:06 +01:00
</a>
2021-03-27 18:41:37 +01:00
</div>
</header>
<main>
2021-03-28 17:21:03 +02:00
<div className="landing__img-container">
<img className="landing__img" src="https://i.imgur.com/pnU7PJz.jpg" />
</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 />
2021-03-28 00:33:47 +01:00
SAVE CRYPTO
2021-03-27 18:41:37 +01:00
</h1>
2021-03-27 19:31:06 +01:00
<div className="landing__subtitle">
2021-03-28 00:33:47 +01:00
<div>
2021-03-28 22:48:58 +02:00
The SEC doesnt understand blockchain. The claims made in SEC vs. LBRY, Inc. would destroy the United States cryptocurrency industry.
2021-03-27 19:31:06 +01:00
</div>
2021-03-28 06:57:49 +02:00
<div className="landing__standout">
<span>Help us educate the SEC</span>
</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">
2021-03-28 16:38:52 +02:00
<h2>Whats the big deal?</h2>
2021-03-27 20:52:23 +01:00
<div className="content__subtitle">
2021-03-29 00:31:20 +02:00
The entire blockchain industry is at risk in the United States. Big tech and Wall St. would have more power and many people could lose their jobs!
2021-03-28 22:48:58 +02:00
</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>
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
/>
</div>
<div className="content__section">
<p>
2021-03-29 00:31:20 +02:00
The SEC is advancing an aggressive and disastrous new standard that would make almost all blockchain tokens securities.
2021-03-28 22:48:58 +02:00
<br/><br/>
2021-03-29 00:31:20 +02:00
Classifying all blockchain tokens as securities will be a bureaucratic nightmare for all United States residents and businesses operating in the United States.
2021-03-28 18:59:34 +02:00
</p>
<div className="content__img">
<Image
src="/machine.png"
alt="Image of LBRY cartoon"
layout="fill"
// height={100}
// width={100}
/>
</div>
</div>
<div className="content__section">
<div className="content__img">
<Image
className="content__img"
src="/megaphone.png"
alt="Image of LBRY cartoon"
layout="fill"
// height={100}
// width={100}
/>
</div>
<p>
2021-03-29 00:31:20 +02:00
Under this new standard, almost any token is a security, including the previously safe ETH. The SEC additionally claim that token sales are sales of securities too!
2021-03-28 22:48:58 +02:00
<br/><br/>
2021-03-29 00:31:20 +02:00
This change will make it much harder for startups to form new blockchain companies, cause massive job loss, and stunt the development of a critical new technology. All the while, big tech and Wall St. prosper!
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-28 22:48:58 +02:00
<h2>Share this story</h2>
<div className="content__subtitle">
Post to social media to spread awareness.
&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>
<div className="content">
<h2>What are people saying?</h2>
<Twitter />
</div>
<div className="content">
<h2>Sign the petition</h2>
<div className="content__subtitle">
Tell Gary Gensler and the SEC that cryptocurrency must remain legal and free.{' '}
<a className="link" href="https://www.change.org/p/28064277">Add your signature</a>.
</div>
</div>
2021-03-27 20:52:23 +01:00
2021-03-28 22:48:58 +02:00
<div className="email">
<h2>Stay up to date</h2>
<div className="email__subtitle">
We will keep you up to date with any information we receive about
this case.
</div>
<label htmlFor="email">Email</label>
<form className="email__group" onSubmit={handleEmailSubmit}>
<input
2021-03-27 20:52:23 +01:00
type="email"
name="email"
placeholder="ihatecensorship@protonmail.com"
2021-03-28 00:33:47 +01:00
value={email}
onChange={(e) => setEmail(e.target.value)}
2021-03-28 22:48:58 +02:00
/>
<button disabled={!email || emailLoading}>
{emailLoading ? 'Submitting' : 'Submit'}
</button>
</form>
2021-03-28 00:33:47 +01:00
2021-03-28 22:48:58 +02:00
{emailSuccess && (
2021-03-28 00:33:47 +01:00
<div className="email__success">
Thank you! We will keep you in the loop.
</div>
2021-03-28 22:48:58 +02:00
)}
{emailError && (
2021-03-28 00:33:47 +01:00
<div className="email__success">
Sorry, there was an error. Please try again.
</div>
2021-03-28 22:48:58 +02:00
)}
2021-03-28 06:57:49 +02:00
</div>
<div className="content">
2021-03-28 22:48:58 +02:00
<h2>Try LBRY</h2>
2021-03-27 20:52:23 +01:00
<div className="content__subtitle">
2021-03-28 22:48:58 +02:00
If the government and big tech want it gone, it must be good.
</div>
<div>
<a href="https://lbry.com/get" className="link">LBRY Desktop</a> (decentralized and open-source)
<a href="https://odysee.com" className="link">Odysee</a> (easiest to use)
2021-03-27 20:52:23 +01:00
</div>
2021-03-27 17:25:50 +01:00
</div>
2021-03-28 22:48:58 +02:00
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
}