lbry-sec/pages/index.js

237 lines
7.4 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-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-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 />
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-29 00:36:49 +02:00
The SEC doesnt understand blockchain. The claims made in SEC vs.
2021-03-29 04:28:05 +02:00
LBRY would destroy the United States cryptocurrency
2021-03-29 00:36:49 +02:00
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-29 03:57:22 +02:00
<h2 className="content__section-title">Whats the big deal?</h2>
2021-03-27 20:52:23 +01:00
<div className="content__subtitle">
2021-03-29 00:36:49 +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>
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
/>
</div>
<div className="content__section">
<p>
2021-03-29 00:36:49 +02:00
The SEC is advancing an aggressive and disastrous new standard
that would make almost all blockchain tokens securities.
<br />
<br />
Classifying all blockchain tokens as securities will be a
2021-03-29 04:16:12 +02:00
bureaucratic nightmare for United States residents and businesses
operating in the US.
2021-03-28 18:59:34 +02:00
</p>
<div className="content__img">
<Image
src="/machine.png"
alt="Image of LBRY cartoon"
layout="fill"
/>
</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:36:49 +02:00
Under this new standard, almost any token is a security, including
2021-03-29 02:20:08 +02:00
the previously safe ETH. The SEC additionally claims that token
2021-03-29 00:36:49 +02:00
sales are sales of securities too!
<br />
<br />
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-29 03:57:22 +02:00
<h2 className="content__section-title">Share this story</h2>
2021-03-28 22:48:58 +02:00
<div className="content__subtitle">
2021-03-29 00:36:49 +02:00
Post to social media to spread awareness. &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>
<div className="content">
2021-03-29 03:57:22 +02:00
<h2 className="content__section-title">What are people saying?</h2>
2021-03-28 22:48:58 +02:00
<Twitter />
</div>
<div className="content">
2021-03-29 03:57:22 +02:00
<h2 className="content__section-title">Sign the petition</h2>
2021-03-28 22:48:58 +02:00
<div className="content__subtitle">
2021-03-29 00:36:49 +02:00
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>
.
2021-03-28 22:48:58 +02:00
</div>
</div>
2021-03-27 20:52:23 +01:00
2021-03-28 22:48:58 +02:00
<div className="email">
2021-03-29 03:57:22 +02:00
<h2 className="content__section-title">Stay up to date</h2>
2021-03-28 22:48:58 +02:00
<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-29 00:36:49 +02:00
type="email"
name="email"
placeholder="ihatecensorship@protonmail.com"
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-29 00:36:49 +02: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-29 00:36:49 +02: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-29 03:57:22 +02:00
<h2 className="content__section-title">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>
2021-03-29 00:36:49 +02:00
<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>
</main>
</div>
2021-03-27 18:41:37 +01:00
);
2021-03-27 17:25:50 +01:00
}