From a79af3a16e4deddcfd4fe702fcd7e340c6f4a429 Mon Sep 17 00:00:00 2001 From: octavioamu Date: Tue, 14 Apr 2020 18:07:08 -0300 Subject: [PATCH 1/8] fix hackathon backgrounds --- .../templates/dashboard/index-vue.html | 19 ++++++++++++------- app/dashboard/views.py | 1 - 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/dashboard/templates/dashboard/index-vue.html b/app/dashboard/templates/dashboard/index-vue.html index 7969821e2f7..5ad12d73c64 100644 --- a/app/dashboard/templates/dashboard/index-vue.html +++ b/app/dashboard/templates/dashboard/index-vue.html @@ -137,20 +137,25 @@ bottom:0; } - .hackathon-banner { + /* .hackathon-banner { background: {% firstof hackathon.background_color or 'white' %}; color: {% firstof hackathon.text_color or 'black' %}; height: 225px; background-image: url('{% firstof banner or "/static/wallpapers/V3.png" %}'); + } */ + .hackathon-banner { + background: {% firstof hackathon.background_color or 'white' %}; + color: {% firstof hackathon.text_color or 'black' %}; + height: 225px; + {% if hackathon.banner %} + background: url('{{MEDIA_URL}}{{hackathon.banner}}') 0 / cover; + {% endif %} } .bounty_row img.avatar { max-width: 50px; } - .hackathon-text { - color: white; - } .hackathon-title { font-size: 1.4rem; } @@ -178,9 +183,9 @@ max-height: 240px; width: 240px; max-width: 240px; - background-color: #090E60; + background: {% firstof hackathon.background_color or '#090E60' %}; border-radius: 10px; - color: white; + color: {% firstof hackathon.text_color or 'black' %}; display: flex; flex-direction: column; justify-content: center; @@ -298,7 +303,7 @@ {% trans "Hackathon Admin" %} {% endif %} - +
-
-
- {% csrf_token %} - {% include 'townsquare/shared/shareactivity.html' %} - - -
-
-
-
@@ -857,6 +856,13 @@
Invite [[numUsers]] Users to the Bounty
+
diff --git a/app/dashboard/templates/dashboard/index.html b/app/dashboard/templates/dashboard/index.html index 111e992d41e..ebffeb7cd09 100644 --- a/app/dashboard/templates/dashboard/index.html +++ b/app/dashboard/templates/dashboard/index.html @@ -42,11 +42,14 @@