From c5e5b4af211a7aa8375d402d68c6b2541376838f Mon Sep 17 00:00:00 2001 From: Aditya Anand Date: Sat, 27 Apr 2019 18:13:40 +0530 Subject: [PATCH] grants/index: clean up landing page --- app/assets/v2/css/grants/grant.css | 70 +++++++++++++++----- app/grants/templates/grants/index.html | 89 +++++++++++++------------- 2 files changed, 99 insertions(+), 60 deletions(-) diff --git a/app/assets/v2/css/grants/grant.css b/app/assets/v2/css/grants/grant.css index 5cfcb0c604e..c7ff4b7f8ef 100644 --- a/app/assets/v2/css/grants/grant.css +++ b/app/assets/v2/css/grants/grant.css @@ -1,3 +1,14 @@ +.header { + background-image: none; + background: linear-gradient(to right top, #0fce7c, #00a5a1, #0077b5, #0046a1, #0d0764); + animation: gradient 40s ease infinite; + background-size: 200% 200% !important; +} + +.header .embed-responsive { + border-radius: 3px; +} + .white-icon { width: 14px; height: 20px; @@ -176,6 +187,36 @@ font-size: 12px; } +#grants-details { + padding-bottom: 1em; +} + +#grants_nav{ + border-bottom: 1px solid #333333; + text-align: left; + width: 100%; +} + +#grants_nav a{ + color: #333333; + margin-right: 30px; +} + +#grants_nav a:hover{ + font-weight: 700; +} + +#grants_nav .selected{ + font-weight: 1000; + color: #3f24f9; +} + +@media (min-width: 1200px) { + .header .container { + max-width: 1240px; + } +} + @media (max-width: 767.98px) { .search { margin-left: 0rem; @@ -194,23 +235,20 @@ } } -#grants-details { - padding-bottom: 1em; +@-webkit-keyframes gradient { + 0%{background-position:0% 50%} + 50%{background-position:100% 50%} + 100%{background-position:0% 50%} } -#grants_nav{ - border-bottom: 1px solid #333333; - text-align: left; - width: 100%; -} -#grants_nav a{ - color: #333333; - margin-right: 30px; -} -#grants_nav a:hover{ - font-weight: 700; +@-moz-keyframes gradient { + 0%{background-position:0% 50%} + 50%{background-position:100% 50%} + 100%{background-position:0% 50%} } -#grants_nav .selected{ - font-weight: 1000; - color: #3f24f9; + +@keyframes gradient { + 0%{background-position:0% 50%} + 50%{background-position:100% 50%} + 100%{background-position:0% 50%} } diff --git a/app/grants/templates/grants/index.html b/app/grants/templates/grants/index.html index 6c18449c11e..2edcd71a600 100644 --- a/app/grants/templates/grants/index.html +++ b/app/grants/templates/grants/index.html @@ -26,8 +26,8 @@
{% include 'shared/top_nav.html' with class='d-md-flex' %} {% include 'grants/nav.html' %} -
-
+
+
@@ -35,8 +35,8 @@
-

{% trans 'Provide sustainable funding for Open Source with Gitcoin Grants' %}

-

+

{% trans 'Provide sustainable funding for Open Source with Gitcoin Grants' %}

+

{% blocktrans %} Gitcoin Grants, powered by the EIP 1337 standard , are a fast, easy and secure way to provide recurring token contributions to your favorite OSS maintainers.

@@ -53,27 +53,32 @@

{% trans 'Provide sustainable funding for Open Source

-
-
-
+
+
+
-

Round 2 of Matching is now closed! Round 3 details coming soon.

-
We will be announcing the match amounts soon..
-

A special thanks to the following partners who have offered to match contributions to Gitcoin Grants. (Read Announcement Here)

- - {% if not user.is_authenticated %} - {% trans 'Become a Matching Partner' %} - {% else %} -
- {% trans 'Become a Matching Partner' %} -
- {% endif %} - +

Round 3 details coming soon.

+

We will be announcing the match amounts soon!

+

Round 2 of Matching is now closed!

+

+ A special thanks to the following partners who have offered to match contributions to Gitcoin Grants. + (Read Announcement Here) + +

-
-
+ {% if not user.is_authenticated %} + {% trans 'Become a Matching Partner' %} + {% else %} +
+ {% trans 'Become a Matching Partner' %} +
+ {% endif %}
- {% if current_partners or past_partners %} +
+ +
+
+ {% if current_partners or past_partners %} -
-
- {% if current_partners|length == 0 %} - No current partners. - {% endif %} - {% for current_partner in current_partners %} -
-
- - @{{current_partner.profile.handle}} - -
- - - -

${{current_partner.amount|floatformat}}

-
- {% endfor %} -
+
+ {% if current_partners|length == 0 %} No current partners.{% endif %} + {% for current_partner in current_partners %} +
+
+ + @{{current_partner.profile.handle}} + +
+ + + +

${{current_partner.amount|floatformat}}

+
+ {% endfor %} +
{% for past_partner in past_partners %} @@ -116,10 +118,9 @@
@{{past_partner.profile.handle}}
{% endfor %}
- {% endif %} -
+ {% endif %}
- +