shitty commit

This commit is contained in:
Jeremy Kauffman 2018-03-06 09:07:29 -05:00
parent 75700e0b76
commit 18d348b651
3 changed files with 64 additions and 27 deletions

View file

@ -0,0 +1,15 @@
<header class="header">
<div class="inner">
<div class="left">
<div class="logo"></div>
<a href="https://lbry.io/get" target="_blank">Get</a>
<a href="https://lbry.io/learn" target="_blank">Learn</a>
</div>
<div class="right">
<a href="https://github.com/lbryio" target="_blank" class="github"></a>
<a href="https://www.reddit.com/r/lbry/" target="_blank" class="reddit"></a>
<a href="https://www.facebook.com/lbryio" target="_blank" class="facebook"></a>
<a href="https://twitter.com/lbryio" target="_blank" class="twitter"></a>
</div>
</div>
</header>

View file

@ -1,27 +1,56 @@
<?php Response::setMetaDescription('YouTuber? Take back control! LBRY allows publication on your terms. It\'s open-source, decentralized, and gives you 100% of the profit.') ?>
<?php Response::setMetaTitle(__('YouTubers! Take back control.')) ?>
<?php echo View::render('nav/_header', ['isDark' => false]) ?>
<?php Response::setCssAssets(['/css/yt2.css']) ?>
<?php Response::addJsAsset('/js/yt2/FormValidation.js')?>
<main>
<?php echo View::render('acquisition/_youtube_header') ?>
<section class="hero">
<div class="shape">
<svg style="width: 100%; height: 100%;">
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="-1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="0" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="0" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="1" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
<path d="M 0,0" stroke="#2F3C5C" stroke-width="0.3px" fill="none" data-from="2" />
</svg>
<div class="circle one"></div>
<div class="circle two"></div>
<div class="circle three"></div>
<div class="dot a"></div>
<div class="dot b"></div>
<div class="dot c"></div>
<div class="dot d"></div>
<div class="dot e"></div>
</div>
<div class="title">
<div class="overflow"><h1>Leave YouTube</h1></div>
<div class="overflow"><h1>for good.</h1></div>
<p>No more demonetization or sneaky algorithms</p>
<div class="button">Claim Your Channel</div>
</div>
</section>
<?php $status= LBRY::statusYoutube($token);?>
<form id="youtube_settings" action="/youtube/edit" method="post">
<div>
<input type="hidden" name="status_token" id="status_token" value="<?php echo $token?>"/>
</div>
<div hidden id="channel-name-error" style="text-align: center;">
<div hidden id="channel-name-error" >
Channel is invalid or blank
</div>
<div style="text-align: center;">
<div >
<label for="channel-name">LBRY channel name:</label>
<input type="text" id="channel-name" style="display: block; margin : 0 auto;"
name="new_preferred_channel" placeholder="@YourPreferredChannelName"
value="<?php echo $status['data']['lbry_channel_name'];?>"
>
</div>
<div hidden id="email-error" style="text-align: center;">
<div hidden id="email-error" >
Email is invalid or blank
</div>
<div style="text-align: center;">
<div >
Email:
<input type="text" id="email" style="display: block; margin : 0 auto;"
name="new_email" placeholder="bill@gmail.com"
@ -29,25 +58,25 @@
>
</div>
<div style="text-align: center;">
<div >
Expected Reward:
<?php echo $status['data']['expected_reward'];?> LBC
</div>
<div style="text-align: center;">
<div >
Number Of Subscriber:
<?php echo $status['data']['subscribers']?>
</div>
<div style="text-align: center;">
<div >
Number Of Video:
<?php echo $status['data']['videos']?>
</div>
<div hidden id="sync-consent-error" style="text-align: center;" >
<div hidden id="sync-consent-error" >
You must agreed to sync to continue
</div>
<div style="text-align: center;">
<div >
<input name="sync_consent" id="sync-consent" type="checkbox"> I want to sync my content to the LBRY network and agree to the "terms"
</div>
<div style="text-align: center;">
<div >
<button type="submit" class="btn btn-default" onClick="return submitEditForm()">Edit my preferences</button>
</div>
</form>

View file

@ -8,21 +8,7 @@ Response::addJsAsset('/js/yt2/SyncStatus.js');
$reward = LBRY::youtubeReward();
?>
<main>
<header class="header">
<div class="inner">
<div class="left">
<div class="logo"></div>
<a href="https://lbry.io/get" target="_blank">Get</a>
<a href="https://lbry.io/learn" target="_blank">Learn</a>
</div>
<div class="right">
<a href="https://github.com/lbryio" target="_blank" class="github"></a>
<a href="https://www.reddit.com/r/lbry/" target="_blank" class="reddit"></a>
<a href="https://www.facebook.com/lbryio" target="_blank" class="facebook"></a>
<a href="https://twitter.com/lbryio" target="_blank" class="twitter"></a>
</div>
</div>
</header>
<?php echo View::render('acquisition/_youtube_header') ?>
<section class="hero">
<div class="shape">
<svg style="width: 100%; height: 100%;">
@ -48,7 +34,7 @@ $reward = LBRY::youtubeReward();
<div class="overflow"><h1>Leave YouTube</h1></div>
<div class="overflow"><h1>for good.</h1></div>
<p>No more demonetization or sneaky algorithms</p>
<div class="button">Take me to your leader</div>
<div class="button">Claim Your Channel</div>
</div>
</section>
<section class="claim section">
@ -74,6 +60,10 @@ $reward = LBRY::youtubeReward();
<div class="block">
<input type="submit" value="Claim now" onClick="return submitDetailsForm()"/>
</div>
<div class="meta">
This will verify you are an active YouTuber, then instructions and your welcome credits will be emailed to you.
<a href="//faq/youtube">Learn more</a>.
</div>
</div>
</div>
</section>
@ -145,6 +135,9 @@ $reward = LBRY::youtubeReward();
<div class="button">
<a href="https://api.lbry.io/yt/connect?type=sync">Sync now</a>
</div>
<div class="meta">
By syncing, you agree to mirror your content to the LBRY network for 1 year, and acknowledge <a href="//faq/youtube">these terms</a>.
</div>
</div>
</div>
</section>