Initial commit

This commit is contained in:
ポール ウェッブ 2019-02-01 16:30:09 -06:00 committed by Jeremy Kauffman
parent e3b431748d
commit 2925750ea1
6 changed files with 134 additions and 0 deletions

View file

@ -79,6 +79,11 @@ class Controller
$router->get(['/', 'home'], 'ContentActions::executeHome');
//
$router->get('/org', 'ContentActions::executeOrg');
$router->get('/tv', 'ContentActions::executeTv');
//
$router->get(['/get', 'get'], 'DownloadActions::executeGet');
$router->get(['/getrubin', 'getrubin'], 'DownloadActions::executeGet');
foreach (array_keys(OS::getAll()) as $os) {

View file

@ -32,6 +32,20 @@ class ContentActions extends Actions
return ['page/home'];
}
//
public static function executeOrg(): array
{
Response::enableHttpCache();
return ['page/org'];
}
public static function executeTv(): array
{
Response::enableHttpCache();
return ['page/tv'];
}
//
public static function executeNews(string $slug = null): array
{
Response::enableHttpCache();

View file

@ -0,0 +1,13 @@
<main class="soon">
<section>
<h1><strong>lbry.org</strong> is coming soon</h1>
<p>Sign up for updates and get notified as soon as we launch!</p>
<?php echo View::render('mail/_subscribeForm', [
'tag' => 'lbryorg',
'submitLabel' => 'Sign Me Up',
]) ?>
<p>Go back to <strong><a href="/">lbry.io</a></strong></p>
</section>
</main>

13
view/template/page/tv.php Normal file
View file

@ -0,0 +1,13 @@
<main class="soon">
<section>
<h1><strong>lbry.tv</strong> is coming soon</h1>
<p>Sign up for updates and get notified as soon as we launch!</p>
<?php echo View::render('mail/_subscribeForm', [
'tag' => 'lbrytv',
'submitLabel' => 'Sign Me Up',
]) ?>
<p>Go back to <strong><a href="/">lbry.io</a></strong>.</p>
</section>
</main>

88
web/scss/_soon.scss Normal file
View file

@ -0,0 +1,88 @@
.soon {
align-items: center;
background-image: linear-gradient(to right, #60e1ba, #3bc9db 100%);
background-size: cover;
color: white;
display: flex;
font-size: 1rem;
font-weight: 300;
justify-content: center;
padding-top: 2rem;
padding-bottom: 2rem;
text-align: center;
h1 {
font-weight: normal;
}
p {
line-height: 1.55;
margin-bottom: 1rem;
}
strong {
font-weight: bold;
}
.mail-submit {
display: flex;
font-size: 1rem;
justify-content: center;
margin: 0;
button,
input {
height: 2.5rem;
border-style: solid;
border-width: 1px;
box-shadow: none;
margin: 0;
outline: none;
&:not([type="button"]):not([type="submit"]) {
flex: 1;
padding-right: 1rem;
padding-left: 1rem;
transition: border 0.2s;
&:not(:focus) {
border-top-color: black;
border-right-color: transparent;
border-bottom-color: black;
border-left-color: black;
}
&:focus {
border-top-color: #2f9176;
border-right-color: transparent;
border-bottom-color: #2f9176;
border-left-color: #2f9176;
}
}
&[type="button"],
&[type="submit"] {
background-image: none;
color: white;
margin: 0;
padding-right: 1.5rem;
padding-left: 1.5rem;
transition: all 0.2s;
&:not(:hover) {
background-color: black;
border-color: black;
}
&:hover {
background-color: #38d9a9;
border-color: #2f9176;
}
}
}
.meta {
display: none;
}
}
}

View file

@ -19,3 +19,4 @@
@import "social";
@import "home";
@import "slider";
@import "soon";