From bd1122cc0e3c5524bea6f4dc97422eaeb52ed8d2 Mon Sep 17 00:00:00 2001 From: Jojo144 Date: Thu, 7 May 2020 22:34:31 +0200 Subject: Integrate illustrations as a showcase (#544) Integrate some custom graphics, and a whole comics explanation, only in French for now. Fix #363 --- ihatemoney/templates/edit_project.html | 8 ++-- ihatemoney/templates/history.html | 2 +- ihatemoney/templates/home.html | 21 ++++++++--- ihatemoney/templates/layout.html | 4 +- ihatemoney/templates/list_bills.html | 12 ++++-- ihatemoney/templates/showcase.html | 67 ++++++++++++++++++++++++++++++++++ 6 files changed, 99 insertions(+), 15 deletions(-) create mode 100644 ihatemoney/templates/showcase.html (limited to 'ihatemoney/templates') diff --git a/ihatemoney/templates/edit_project.html b/ihatemoney/templates/edit_project.html index b7861c5..478b7b4 100644 --- a/ihatemoney/templates/edit_project.html +++ b/ihatemoney/templates/edit_project.html @@ -48,11 +48,11 @@ {{ _('Bill items') }} - {{ static_include("images/file-alt.svg") | safe }} + {{ static_include("images/file-alt.svg") | safe }} JSON - {{ static_include("images/file-csv-solid.svg") | safe }} + {{ static_include("images/file-csv-solid.svg") | safe }} CSV @@ -64,11 +64,11 @@ {{ _('Settle plans') }} - {{ static_include("images/file-alt.svg") | safe }} + {{ static_include("images/file-alt.svg") | safe }} JSON - {{ static_include("images/file-csv-solid.svg") | safe }} + {{ static_include("images/file-csv-solid.svg") | safe }} CSV diff --git a/ihatemoney/templates/history.html b/ihatemoney/templates/history.html index a9a9a4d..9cf66a7 100644 --- a/ihatemoney/templates/history.html +++ b/ihatemoney/templates/history.html @@ -249,7 +249,7 @@
- {{ static_include("images/hand-holding-heart.svg") | safe }} + {{ static_include("images/bill.svg") | safe }}

{{ _('Nothing to list')}}

{{ _("Someone probably cleared the project history.") }} diff --git a/ihatemoney/templates/home.html b/ihatemoney/templates/home.html index bac8abe..4af6a80 100644 --- a/ihatemoney/templates/home.html +++ b/ihatemoney/templates/home.html @@ -9,14 +9,23 @@ {{ _("Try out the demo") }} {% endif %} + {% if g.lang == 'fr' %} + ou Voir la BD explicative + + {% endif %}

-

- {{ _("You're sharing a house?") }}
- {{ _("Going on holidays with friends?") }}
- {{ _("Simply sharing money with others?") }}
- {{ _("We can help!") }} -

+ + + +
+ {{ _("You're sharing a house?") }}
+ {{ _("Going on holidays with friends?") }}
+ {{ _("Simply sharing money with others?") }}
+ {{ _("We can help!") }} +
+ +
diff --git a/ihatemoney/templates/layout.html b/ihatemoney/templates/layout.html index 35d2797..6204ad5 100644 --- a/ihatemoney/templates/layout.html +++ b/ihatemoney/templates/layout.html @@ -16,6 +16,7 @@ {%- endif %} + {% block head %}{% endblock %} + {% if g.lang == 'fr' %}{% include "showcase.html" %}{% endif %}
+ {% if g.lang == 'fr' %} + + {{ static_include("images/read.svg") | safe }} + Voir la BD explicative + + {% endif %} - {{ static_include("images/paper-plane.svg") | safe }} + {{ static_include("images/paper-plane.svg") | safe }} {{ _("Invite people") }}
@@ -79,7 +85,7 @@ {% block content %} - {{ static_include("images/plus.svg") | safe }} + {{ static_include("images/plus.svg") | safe }} {{ _("Add a new bill") }} @@ -180,7 +186,7 @@
- {{ static_include("images/hand-holding-heart.svg") | safe }} + {{ static_include("images/bill.svg") | safe }}

{{ _('No bills')}}

{{ _("Nothing to list yet.")}}
diff --git a/ihatemoney/templates/showcase.html b/ihatemoney/templates/showcase.html new file mode 100644 index 0000000..cd9a371 --- /dev/null +++ b/ihatemoney/templates/showcase.html @@ -0,0 +1,67 @@ +

+ -- cgit v1.1