From f82c24eff4aa89ecc45f26133ef0c36d86b69933 Mon Sep 17 00:00:00 2001 From: Rogerio Chaves Date: Sun, 26 Apr 2020 09:49:44 +0200 Subject: [PATCH] Few adaptations to make index and signup/login pages more mobile-friendly --- app/public/shared.css | 51 +++++++++++++++++++++++++++++++++++++++++++ app/views/index.ejs | 26 ++++++++++++++++++---- 2 files changed, 73 insertions(+), 4 deletions(-) diff --git a/app/public/shared.css b/app/public/shared.css index daf89b9..5a4e174 100644 --- a/app/public/shared.css +++ b/app/public/shared.css @@ -327,3 +327,54 @@ h2 { width: 110px; text-align: right; } + +.index-welcome { + background: #8debf5; + padding: 50px; +} + +.index-explanation { + background: #fbb; + padding: 50px 0; + color: #600; +} + +.index-explanation ul { + padding-left: 15px; +} + +.index-explanation li { + padding: 6px 0; +} + +.index-more-details { + display: none; +} + +@media (max-width: 576px) { + header { + /* For responsiveness on login and singup pages, because I was too lazy to do a mobile focused version for those */ + padding: 10px 0 !important; + } + .index-welcome { + height: 98vh; + padding: 30px; + display: flex; + flex-direction: column; + justify-content: space-between; + } + .index-explanation { + padding: 14px; + } + .index-more-details { + background: none; + border: none; + align-content: flex-end; + } + .index-more-details { + display: block; + } + .index-explanation { + height: 100vh; + } +} diff --git a/app/views/index.ejs b/app/views/index.ejs index 3b85634..dea3c24 100644 --- a/app/views/index.ejs +++ b/app/views/index.ejs @@ -1,6 +1,6 @@ <%- include('_header', { body_class: "entrance", main_class: "" }) %> -
+

Welcome to Social

The non-addictive social network

@@ -10,20 +10,23 @@ Login
+
-
+

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

    -
  • There is no feed to scroll forever, no cassino slot machine addiction
  • -
  • There are no likes nor any mindless interactions, if you like something, you tell the person, like a human
  • You have your own wall, but you can only post with 140 characters, like original Twitter
  • If you want to check on others you have to go to their profile, like original Facebook or Orkut
  • You can send secret messages, like original Snapchat, but there are no stories
  • +
  • There is no feed to scroll forever, no cassino slot machine addiction
  • +
  • There are no likes nor any mindless interactions, if you like something, you tell the person, like a human

@@ -35,4 +38,19 @@

+ + <%- include('_footer') %> \ No newline at end of file