From b6e8242bb6968fe2d5cc92febbe01b447221ce24 Mon Sep 17 00:00:00 2001 From: Rogerio Chaves Date: Mon, 20 Apr 2020 21:02:08 +0200 Subject: [PATCH] Change homepage and fix login and account creation pages --- app/public/style.css | 32 +++++++++----------------------- app/views/_header.ejs | 8 ++++---- app/views/download.ejs | 4 ++-- app/views/index.ejs | 24 ++++++++++++++---------- app/views/keys.ejs | 4 ++-- app/views/keys_copy.ejs | 2 +- app/views/login.ejs | 4 ++-- app/views/signup.ejs | 4 ++-- 8 files changed, 36 insertions(+), 46 deletions(-) diff --git a/app/public/style.css b/app/public/style.css index ad042d7..81c69d1 100644 --- a/app/public/style.css +++ b/app/public/style.css @@ -37,6 +37,7 @@ a.button.button-big, input[type="submit"].button-big { padding: 16px 20px; font-size: 18px; + height: auto; } button.button-blue, a.button.button-blue, @@ -181,6 +182,14 @@ h2 { background: #fff; } +.entrance { + background: #fbb; +} + +.entrance header { + display: none; +} + .friends-communities { min-width: 200px; max-width: 200px; @@ -266,29 +275,6 @@ h2 { justify-content: space-between; } -.entrance { - background: url("/images/bg.jpg") center center #000; - background-size: cover; -} - -.entrance main { - margin: 0; - background: rgba(0, 0, 0, 0.7); - width: 100vw; - min-height: 100vh; - max-width: none; -} - -.entrance-content { - color: #fff; - margin: 0 auto; - max-width: 800px; -} - -.entrance h1 { - font-size: 60px; -} - .profile-pic-placeholder { min-width: 100px; width: 100px; diff --git a/app/views/_header.ejs b/app/views/_header.ejs index 131dc62..9374f10 100644 --- a/app/views/_header.ejs +++ b/app/views/_header.ejs @@ -7,8 +7,8 @@ > - <% if (context.profile && typeof hideHeader == "undefined") { %> -
+
+ <% if (context.profile && typeof hideHeader == "undefined") { %> @@ -39,6 +39,6 @@ -
- <% } %> + <% } %> +
"> diff --git a/app/views/download.ejs b/app/views/download.ejs index 740fb3d..0492eac 100644 --- a/app/views/download.ejs +++ b/app/views/download.ejs @@ -2,7 +2,7 @@ <%- include('_header') %>
-

Download the app

+

Download the app

If you don't trust this server to hold your credentials, download the app version, @@ -10,7 +10,7 @@ plus you can use Social offline

- Go to downloads page + Go to downloads page

diff --git a/app/views/index.ejs b/app/views/index.ejs index 06ccc33..de2e26c 100644 --- a/app/views/index.ejs +++ b/app/views/index.ejs @@ -1,15 +1,19 @@ -<%- include('_header', { body_class: "entrance" }) %> +<%- include('_header', { body_class: "entrance", main_class: "" }) %> -
-

Welcome to Social

-

The non-addictive social network

+
+
+

Welcome to Social

+

The non-addictive social network

- +
-
+
+

Social combines the best original ideas of popular social networks but without the bad parts

@@ -23,9 +27,9 @@

- Because Social is not a business, so we don't need to make people + Because Social is not a business, we don't need to make people addicted just to sell more ads and please shareholders. Social is built on top of - SSB, + SSB, a decentralized social network protocol, which means the community sustains it, not a corporation.

diff --git a/app/views/keys.ejs b/app/views/keys.ejs index b239245..deedf1d 100644 --- a/app/views/keys.ejs +++ b/app/views/keys.ejs @@ -1,7 +1,7 @@ <%- include('_header', { hideHeader: true }) %>
-

Save your keys

+

Save your keys

Congratulations! Your account was created successfully. @@ -25,7 +25,7 @@

- +

or

diff --git a/app/views/keys_copy.ejs b/app/views/keys_copy.ejs index fce4c80..677d5d8 100644 --- a/app/views/keys_copy.ejs +++ b/app/views/keys_copy.ejs @@ -1,7 +1,7 @@ <%- include('_header', { hideHeader: true }) %>

-

Save your keys

+

Save your keys

Your download is starting, alternatively, you can copy your key as text: diff --git a/app/views/login.ejs b/app/views/login.ejs index b49ff04..491b4f7 100644 --- a/app/views/login.ejs +++ b/app/views/login.ejs @@ -1,7 +1,7 @@ <%- include('_header') %>

-

Login

+

Login

You should probably have received your login button by email, search for "Social login button", if not, then you must have saved your key, you can input it here @@ -19,7 +19,7 @@

- +

<% if (mode == "server") { %>

or

diff --git a/app/views/signup.ejs b/app/views/signup.ejs index 2a7af69..716f301 100644 --- a/app/views/signup.ejs +++ b/app/views/signup.ejs @@ -1,7 +1,7 @@ <%- include('_header') %>
-

Create account

+

Create account

@@ -22,7 +22,7 @@

- +

<% if (mode == "server") { %>

or