From 4f7a8dc4992bebc1e0210248f45c086a8a906aba Mon Sep 17 00:00:00 2001 From: Dan Lipert Date: Fri, 5 Jun 2020 22:57:30 +0900 Subject: [PATCH 1/5] show twitter card w/o login, alert w/o login (#6775) * show twitter card w/o login, alert w/o login * correct selector --- app/grants/templates/grants/new-whitelabel.html | 7 +++++++ app/grants/views.py | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/grants/templates/grants/new-whitelabel.html b/app/grants/templates/grants/new-whitelabel.html index a9317aa3fc2..05b1798bcc0 100644 --- a/app/grants/templates/grants/new-whitelabel.html +++ b/app/grants/templates/grants/new-whitelabel.html @@ -209,4 +209,11 @@

+ diff --git a/app/grants/views.py b/app/grants/views.py index 7238c24e441..7510e4b0801 100644 --- a/app/grants/views.py +++ b/app/grants/views.py @@ -613,16 +613,18 @@ def flag(request, grant_id): }) -@login_required def grant_new_whitelabel(request): """Create a new grant, with a branded creation form for specific tribe""" + profile = get_profile(request) + params = { 'active': 'new_grant', 'title': _('Matic Build-n-Earn x Gitcoin'), 'card_desc': _('Earn Rewards by Making Your DApps Superior'), 'card_player_thumb_override': request.build_absolute_uri(static('v2/images/grants/maticxgitcoin.png')), 'profile': profile, + 'is_logged_in': 1 if profile else 0, 'grant': {}, 'keywords': get_keywords(), 'recommend_gas_price': recommend_min_gas_price_to_confirm_in_time(4), From 28c42de786693417563363db77df3c10cfc7f062 Mon Sep 17 00:00:00 2001 From: octavioamu Date: Fri, 5 Jun 2020 19:24:01 -0300 Subject: [PATCH 2/5] add animated logos --- app/assets/v2/css/gitcoin.css | 7 ++++++- app/grants/templates/grants/nav.html | 4 ++-- app/kudos/templates/shared/kudos_nav.html | 4 ++-- app/quests/templates/quests/nav.html | 4 ++-- app/retail/templates/shared/nav.html | 4 ++-- app/retail/templates/shared/nav_hackathons.html | 4 ++-- app/retail/templates/shared/svg-embed/h35px_bounties.svg | 2 ++ app/retail/templates/shared/svg-embed/h35px_codefund.svg | 2 ++ app/retail/templates/shared/svg-embed/h35px_grants.svg | 2 ++ app/retail/templates/shared/svg-embed/h35px_hackathons.svg | 2 ++ app/retail/templates/shared/svg-embed/h35px_kudos.svg | 2 ++ app/retail/templates/shared/svg-embed/h35px_quests.svg | 2 ++ 12 files changed, 28 insertions(+), 11 deletions(-) create mode 100644 app/retail/templates/shared/svg-embed/h35px_bounties.svg create mode 100644 app/retail/templates/shared/svg-embed/h35px_codefund.svg create mode 100644 app/retail/templates/shared/svg-embed/h35px_grants.svg create mode 100644 app/retail/templates/shared/svg-embed/h35px_hackathons.svg create mode 100644 app/retail/templates/shared/svg-embed/h35px_kudos.svg create mode 100644 app/retail/templates/shared/svg-embed/h35px_quests.svg diff --git a/app/assets/v2/css/gitcoin.css b/app/assets/v2/css/gitcoin.css index b460ff7636e..c2dcb98bfec 100644 --- a/app/assets/v2/css/gitcoin.css +++ b/app/assets/v2/css/gitcoin.css @@ -929,4 +929,9 @@ textarea.status-textarea { .dark-mode .bg-light { background-color: var(--bg-shade-0)!important; -} \ No newline at end of file +} + +.svg-animated-logo { + height: 42px; + max-width: 100%; +} diff --git a/app/grants/templates/grants/nav.html b/app/grants/templates/grants/nav.html index 72751f6ca21..65b628dd731 100644 --- a/app/grants/templates/grants/nav.html +++ b/app/grants/templates/grants/nav.html @@ -22,8 +22,8 @@ - Grants - + + {% include 'shared/svg-embed/h35px_grants.svg' %} {% if request.path|matches:"^\/((.*new)|(.*cancel)|(.*fund))$" %}