From 09d887cde2c2b845b2e4ccbdb64a9044c015a795 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Tue, 13 Aug 2019 23:34:04 +0200 Subject: [PATCH] add homepage design --- ihatemoney/static/css/main.css | 25 +++++-- ihatemoney/templates/home.html | 123 ++++++++++++++++++++----------- ihatemoney/templates/layout.html | 4 +- 3 files changed, 99 insertions(+), 53 deletions(-) diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css index e98b70a6..ec8c8413 100644 --- a/ihatemoney/static/css/main.css +++ b/ihatemoney/static/css/main.css @@ -11,6 +11,9 @@ body { /* Navbar */ +.navbar-brand span { + color: #abe128; +} .navbar h1 { font-size: 1rem; margin: 0; @@ -37,11 +40,6 @@ body { #header { padding-bottom: 2em; - margin-bottom: 1em; - background-color: #abe128; - background-image: url("../images/gradient.png"); - background-position: center top; - background-repeat: no-repeat; } #header h2 { @@ -118,11 +116,26 @@ body { } /* Home */ - +.home-container { + background: linear-gradient(150deg, #abe128 0%, #43CA61 100%); +} +.home { + padding-top: 1em; + padding-bottom: 3em; +} #authentication-form legend { text-align: right; } +.home .card { + min-width: 25em; + border: 0; + border-radius: 0; + box-shadow: 0px 0px 10px rgba(83, 88, 93, .40); + margin-right: 25px; + margin-bottom: 20px; + margin-left: 25px; +} /* Other */ #bills { diff --git a/ihatemoney/templates/home.html b/ihatemoney/templates/home.html index 4e32995c..bac8abe1 100644 --- a/ihatemoney/templates/home.html +++ b/ihatemoney/templates/home.html @@ -1,56 +1,89 @@ {% extends "layout.html" %} - {% block body %} - - -
-
-
-
- {{ _("Log to an existing project") }}... - {{ forms.authenticate(auth_form, home=True) }} -
- -
-
-
- {% if is_public_project_creation_allowed %} -
-
- ...{{ _("or create a new one") }} - {{ forms.create_project(project_form, home=True) }} -
-
- -
-
- {% else %} - ...{{ _("or create a new one") }} - {% endif %} -
+ +
+
+
+
+ {{ _("Log in to an existing project") }} +
+
+
+
+ + {{ forms.authenticate(auth_form, home=True) }} +
+
+ + {{ _("can't remember your password?") }} +
+
+
+
+
+ {{ _("Create a new project") }} +
+
+ {% if is_public_project_creation_allowed %} +
+
+ {{ forms.create_project(project_form, home=True) }} +
+
+ +
+
+ {% else %} + + {{ _("Create a new project") }} + + {% endif %} +
+
+
+
{% endblock %} - {% block js %} - $('#creation-form #password').tooltip({ - title: '{{ _("This access code will be sent to your friends. It is stored as-is by the server, so don\\'t reuse a personal password!") }}', + title: '{{ _("This access code will be sent to your friends. It is stored as-is by the server, so don\\'t reuse a personal password!")}}', trigger: 'focus', placement: 'right' }); - {% endblock %} diff --git a/ihatemoney/templates/layout.html b/ihatemoney/templates/layout.html index 90bd0324..c00105ba 100644 --- a/ihatemoney/templates/layout.html +++ b/ihatemoney/templates/layout.html @@ -31,7 +31,7 @@ -

#! money?

+

#! money?

-
+
{% block body %}
{% block content %}{% endblock %}