diff --git a/ihatemoney/static/css/download_mobile_app.css b/ihatemoney/static/css/download_mobile_app.css new file mode 100644 index 00000000..8fe87bb9 --- /dev/null +++ b/ihatemoney/static/css/download_mobile_app.css @@ -0,0 +1,13 @@ +.get-it-from { + width: 100px; + min-height: 110px; + border: 5px solid floralwhite; + background-color: white; margin: 10px; +} +.get-it-from:hover { + opacity: 80%; +} +main { + background: linear-gradient(150deg, #abe128 0%, #43ca61 100%); + font-family: 'Comfortaa', arial, serif; +} diff --git a/ihatemoney/static/images/app-store.svg b/ihatemoney/static/images/app-store.svg new file mode 100644 index 00000000..ac111e59 --- /dev/null +++ b/ihatemoney/static/images/app-store.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ihatemoney/static/images/f-droid.svg b/ihatemoney/static/images/f-droid.svg new file mode 100644 index 00000000..bac1d085 --- /dev/null +++ b/ihatemoney/static/images/f-droid.svg @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ihatemoney/static/images/google-play.png b/ihatemoney/static/images/google-play.png new file mode 100644 index 00000000..a93fdeab Binary files /dev/null and b/ihatemoney/static/images/google-play.png differ diff --git a/ihatemoney/templates/download_mobile_app.html b/ihatemoney/templates/download_mobile_app.html new file mode 100644 index 00000000..b343c71f --- /dev/null +++ b/ihatemoney/templates/download_mobile_app.html @@ -0,0 +1,26 @@ +{% extends "layout.html" %} + +{% block css %} + +{% endblock %} + +{% block body %} +
+
+

{{_("Download Mobile Application")}}

+
+

{{_("Get it on")}}

+
+ + + + + + + + + + +
+
+{% endblock %} diff --git a/ihatemoney/templates/layout.html b/ihatemoney/templates/layout.html index 1e16c7e2..f79270e4 100644 --- a/ihatemoney/templates/layout.html +++ b/ihatemoney/templates/layout.html @@ -6,6 +6,7 @@ + {% block css %}{% endblock %} @@ -144,14 +145,14 @@ {{ static_include("images/git.svg") | safe }} - + {{ static_include("images/mobile-alt.svg") | safe }} {{ static_include("images/book.svg") | safe }} {% if g.show_admin_dashboard_link %} - + {{ static_include("images/cog.svg") | safe }} {% endif %} diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 442779f7..6e4a2090 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -269,6 +269,11 @@ def home(): session=session, ) +@main.route("/mobile") +def mobile(): + return render_template( + "download_mobile_app.html" + ) @main.route("/create", methods=["GET", "POST"]) @requires_admin(bypass=("ALLOW_PUBLIC_PROJECT_CREATION", True))