Browse Source

add welcome template

main
ghost 3 years ago
parent
commit
21ffc37cab
  1. 14
      src/application/controller/register.php
  2. 21
      src/application/view/welcome.phtml
  3. 4
      src/public/css/common.css

14
src/application/controller/register.php

@ -6,4 +6,16 @@ if (isset($_SESSION['username'])) { @@ -6,4 +6,16 @@ if (isset($_SESSION['username'])) {
$metaTitle = _('Register | Twisterarmy Cloud');
require(PROJECT_DIR . '/application/view/register.phtml');
require(PROJECT_DIR . '/application/view/register.phtml');
// @TODO welcome message
/*
$metaTitle = _('Welcome | Twisterarmy Cloud');
$blockEstimated = 0;
$userName = 'userName';
$userPrivateKey = '0000000000000000000000000000000000000000';
require(PROJECT_DIR . '/application/view/welcome.phtml');
*/

21
src/application/view/welcome.phtml

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
<?php include(PROJECT_DIR . '/application/controller/common/header.php') ?>
<div class="mw-1024 mx-auto of-hidden">
<div class="mw-360 mx-auto my-100 bg-c-4 b-r-3 py-28 px-24">
<h1 class="f-size-20 f-normal mb-20"><?php echo _('Welcome') ?></h1>
<div>
<div class="mb-20">
<?php echo sprintf(_('Account <strong class="c-7">@%s</strong> in registration!'), $userName); ?>
</div>
<div class="mb-20">
<?php echo sprintf(_('Please, wait for block %s to enter the twister and keep the secret key in safety place:'), $blockEstimated); ?>
</div>
<div class="mb-30">
<pre class="f-size-9 c-4 px-8 py-16 b-r-3 b-c-5 b-2 t-center d-block"><?php echo $userPrivateKey; ?></pre>
</div>
</div>
<div class="mt-4">
<a class="btn btn-1 d-inline-block" href="login"><?php echo _('Login') ?></a>
</div>
</div>
</div>
<?php include(PROJECT_DIR . '/application/controller/common/footer.php') ?>

4
src/public/css/common.css

@ -88,6 +88,10 @@ textarea { @@ -88,6 +88,10 @@ textarea {
text-align: left
}
.f-size-9 {
font-size: 9px
}
.f-size-10 {
font-size: 10px
}

Loading…
Cancel
Save