extend landing page

This commit is contained in:
Niko Storni 2018-03-02 23:38:03 +01:00 committed by Niko Storni
parent 7693b834ca
commit 4ce772d680
No known key found for this signature in database
GPG key ID: F37FE63398800368

View file

@ -1,18 +1,49 @@
<?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::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 Response::setMetaTitle(__('YouTubers! Take back control.')) ?>
<?php echo View::render('nav/_header', ['isDark' => false]) ?> <?php echo View::render('nav/_header', ['isDark' => false]) ?>
<main> <main>
<?php $status= LBRY::statusYoutube($token);?>
<?php $status = LBRY::statusYoutube($token); <form action="yt/update?status_token=<?php echo $token?>" method="post">
?> <div style="text-align: center;">
<center> <label for="channel-name">LBRY channel name:</label>
LBRY channel name: <?php echo $status['data']['lbry_channel_name'];?> <input type="text" id="channel-name" style="display: block; margin : 0 auto;"
</center> name="new_preferred_channel" placeholder="@YourPreferredChannelName"
<center> value="<?php echo $status['data']['lbry_channel_name'];?>"
Youtube Sync status: <?php echo $status['data']['status'];?> >
</div>
</center> <div style="text-align: center;">
<center> LBRY channel name:
Expected Reward: <?php echo $status['data']['expected_reward'];?> <input type="text" id="email" style="display: block; margin : 0 auto;"
</center> name="new_email" placeholder="bill@gmail.com"
<main/> value="<?php echo $status['data']['email'];?>"
>
</div>
<div style="text-align: center;">
<label for="sync-consent">Youtube Sync status:</label>
<select name="sync_consent" id="sync-consent" style="display: block; margin : 0 auto;">
<option value="false" <?php echo $status['data']['status']=='pending'?'selected="selected"':'';?>>
Don't sync yet
</option>
<option value="true" <?php echo $status['data']['status']=='queued'?'selected="selected"':'';?>>
Sync my channel
</option>
<option value="syncing" <?php echo $status['data']['status']=='syncing'?'selected="selected"':'';?>
disabled="disabled">
Being synced
</option>
<option value="synced" <?php echo $status['data']['status']=='synced'?'selected="selected"':'';?>
disabled="disabled">
Syncing completed
</option>
</select>
</div>
<div style="text-align: center;">
Expected Reward:
<?php echo $status['data']['expected_reward'];?> LBC
</div>
<div style="text-align: center;">
<button type="submit" class="btn btn-default">Edit my preferences</button>
</div>
</form>
</main>