From 2925750ea12f637f85e059ab6e87b77dc5db03ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Fri, 1 Feb 2019 16:30:09 -0600 Subject: [PATCH] Initial commit --- controller/Controller.class.php | 5 ++ controller/action/ContentActions.class.php | 14 ++++ view/template/page/org.php | 13 ++++ view/template/page/tv.php | 13 ++++ web/scss/_soon.scss | 88 ++++++++++++++++++++++ web/scss/all.scss | 1 + 6 files changed, 134 insertions(+) create mode 100644 view/template/page/org.php create mode 100644 view/template/page/tv.php create mode 100644 web/scss/_soon.scss diff --git a/controller/Controller.class.php b/controller/Controller.class.php index 28875fc7..14be167e 100644 --- a/controller/Controller.class.php +++ b/controller/Controller.class.php @@ -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) { diff --git a/controller/action/ContentActions.class.php b/controller/action/ContentActions.class.php index acb6b071..8d1ee61e 100644 --- a/controller/action/ContentActions.class.php +++ b/controller/action/ContentActions.class.php @@ -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(); diff --git a/view/template/page/org.php b/view/template/page/org.php new file mode 100644 index 00000000..b3d06f04 --- /dev/null +++ b/view/template/page/org.php @@ -0,0 +1,13 @@ +
+
+

lbry.org is coming soon

+

Sign up for updates and get notified as soon as we launch!

+ + 'lbryorg', + 'submitLabel' => 'Sign Me Up', + ]) ?> + +

Go back to lbry.io

+
+
diff --git a/view/template/page/tv.php b/view/template/page/tv.php new file mode 100644 index 00000000..b1bb884a --- /dev/null +++ b/view/template/page/tv.php @@ -0,0 +1,13 @@ +
+
+

lbry.tv is coming soon

+

Sign up for updates and get notified as soon as we launch!

+ + 'lbrytv', + 'submitLabel' => 'Sign Me Up', + ]) ?> + +

Go back to lbry.io.

+
+
diff --git a/web/scss/_soon.scss b/web/scss/_soon.scss new file mode 100644 index 00000000..fc97cfde --- /dev/null +++ b/web/scss/_soon.scss @@ -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; + } + } +} diff --git a/web/scss/all.scss b/web/scss/all.scss index 6abf0a4b..46d81c35 100644 --- a/web/scss/all.scss +++ b/web/scss/all.scss @@ -19,3 +19,4 @@ @import "social"; @import "home"; @import "slider"; +@import "soon";