mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
switch to invite codes
This commit is contained in:
parent
fa74920e86
commit
fc5ffc0ef5
7 changed files with 49 additions and 12 deletions
|
@ -36,6 +36,8 @@ class DownloadActions extends Actions
|
|||
'os' => $os,
|
||||
'osTitle' => $osTitle,
|
||||
'osIcon' => $osIcon,
|
||||
'hasMatchingInvite' => isset($_POST['invite']) && preg_match('/^(pfa|pfb).*$/', $_POST['invite']),
|
||||
'hasInvite' => isset($_POST['invite']) && $_POST['invite'],
|
||||
'downloadHtml' => View::exists('download/' . $partial) ?
|
||||
View::render('download/' . $partial, ['downloadUrl' => static::getDownloadUrl($os)]) :
|
||||
false
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<div class="video">
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/BNtivEJKHxI" frameborder="0" allowfullscreen></iframe>
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/qkUA0vTWM7g" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
20
view/template/download/get-old.php
Normal file
20
view/template/download/get-old.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php Response::setMetaDescription(__('Download/install the latest version of LBRY for %os%.', ['%os%' => $osTitle])) ?>
|
||||
<?php NavActions::setNavUri('/get') ?>
|
||||
<?php echo View::render('nav/header', ['isDark' => false]) ?>
|
||||
|
||||
<main class="column-fluid">
|
||||
<div class="span7">
|
||||
<div class="cover cover-dark cover-dark-grad content content-stretch content-dark">
|
||||
<h1>LBRY for <?php echo $osTitle ?> <span class="<?php echo $osIcon ?>"></span></h1>
|
||||
<p>LBRY is </p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span5">
|
||||
<?php echo View::render('download/_list', [
|
||||
'excludeOs' => $os
|
||||
]) ?>
|
||||
<?php echo View::render('download/_social') ?>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php echo View::render('nav/footer') ?>
|
|
@ -6,12 +6,27 @@
|
|||
<div class="span7">
|
||||
<div class="cover cover-dark cover-dark-grad content content-stretch content-dark">
|
||||
<h1>LBRY for <?php echo $osTitle ?> <span class="<?php echo $osIcon ?>"></span></h1>
|
||||
<?php if ($downloadHtml): ?>
|
||||
<?php echo View::render('download/_betaNotice') ?>
|
||||
<?php echo $downloadHtml ?>
|
||||
<?php echo View::render('download/_reward') ?>
|
||||
<?php if (!$hasMatchingInvite): ?>
|
||||
<?php if ($hasInvite): ?>
|
||||
<div class="notice notice-error spacer1">Please enter a valid code.</div>
|
||||
<?php endif ?>
|
||||
<p>LBRY is currently in invite only mode. Enter your code below for access:</p>
|
||||
<form method="POST" action="/get">
|
||||
<div class="invite-submit">
|
||||
<input type="text" value="" name="invite" class="required standard" placeholder="abc123">
|
||||
<input type="submit" value="Access LBRY" name="subscribe" class="btn-alt">
|
||||
</div>
|
||||
</form>
|
||||
<?php else: ?>
|
||||
<?php echo View::render('download/_unavailable') ?>
|
||||
<p>Your code does not grant access until July 4th, 2016. Enter your email address below for a reminder.</p>
|
||||
<?php echo View::render('mail/joinList', [
|
||||
'submitLabel' => 'Go',
|
||||
'returnUrl' => '/get',
|
||||
'meta' => true,
|
||||
'btnClass' => 'btn-alt',
|
||||
'listId' => Mailchimp::LIST_GENERAL_ID,
|
||||
'mergeFields' => ['CLI' => 'No'],
|
||||
]) ?>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -36,14 +36,14 @@
|
|||
*/ ?>
|
||||
<div class="control-group spacer2 text-center">
|
||||
<div class="control-item">
|
||||
<a href="/get" class="btn-primary">Get LBRY</a>
|
||||
<a href="/get" class="btn-primary">Early Access (invite code reqired)</a>
|
||||
</div>
|
||||
<div class="control-item">
|
||||
<a href="/learn" class="btn-alt">Learn More</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="video" style="margin-bottom: 80px">
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/BNtivEJKHxI" frameborder="0" allowfullscreen></iframe>
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/qkUA0vTWM7g" frameborder="0" allowfullscreen></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content content-dark">
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<main class="column-fluid ">
|
||||
<div class="span6">
|
||||
<div class="cover cover-light content">
|
||||
<h1 style="max-width: 660px; margin-left: auto; margin-right: auto">LBRY in 60 Seconds</h1>
|
||||
<h1 style="max-width: 660px; margin-left: auto; margin-right: auto">LBRY in 100 Seconds</h1>
|
||||
<?php echo View::render('download/_videoIntro') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,8 +7,8 @@ label[for]
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
input[type="email"], input[type="text"]
|
||||
{
|
||||
input[type="email"], input[type="text"]
|
||||
{
|
||||
border: 0 none;
|
||||
border: 1px solid rgba(160,160,160,.5);
|
||||
padding-left: 5px;
|
||||
|
@ -37,7 +37,7 @@ textarea
|
|||
margin-bottom: $spacing-vertical;
|
||||
}
|
||||
|
||||
.mail-submit
|
||||
.mail-submit, .invite-submit
|
||||
{
|
||||
input
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue