From 8adf7129ae016b76211fc6a8fe567d0bfe945b4e Mon Sep 17 00:00:00 2001 From: Aditya Anand M C Date: Tue, 23 Jul 2019 10:08:25 +0530 Subject: [PATCH] add email capture to landing --- app/assets/v2/css/home.css | 4 ++++ app/assets/v2/css/newsletter.css | 3 +++ app/retail/templates/home/index.html | 6 +++++- app/retail/views.py | 3 +++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/app/assets/v2/css/home.css b/app/assets/v2/css/home.css index 442b60223ee..c62242b5e4d 100644 --- a/app/assets/v2/css/home.css +++ b/app/assets/v2/css/home.css @@ -61,6 +61,10 @@ color: #0D0764; } +.homepage .newsletter { + border-top: none; +} + .watch a { color: #0D0764; } diff --git a/app/assets/v2/css/newsletter.css b/app/assets/v2/css/newsletter.css index 1d4aba832ea..573b6c94737 100644 --- a/app/assets/v2/css/newsletter.css +++ b/app/assets/v2/css/newsletter.css @@ -25,6 +25,9 @@ border: 1px solid #eee; border-top-left-radius: 5px; border-bottom-left-radius: 5px; + width: 18rem; + text-align: center; + outline: none; } .newsletter .addon { diff --git a/app/retail/templates/home/index.html b/app/retail/templates/home/index.html index 144b75a7168..1a28f3bc49b 100644 --- a/app/retail/templates/home/index.html +++ b/app/retail/templates/home/index.html @@ -89,7 +89,11 @@

-
+ + +
diff --git a/app/retail/views.py b/app/retail/views.py index 832dea7cc6d..d1563fd0206 100644 --- a/app/retail/views.py +++ b/app/retail/views.py @@ -206,6 +206,9 @@ def index(request): 'know_us': know_us, 'press': press, 'articles': articles, + 'hide_newsletter_caption': True, + 'hide_newsletter_consent': True, + 'newsletter_headline': _("Get the Latest Gitcoin News! Join Our Newsletter."), 'title': _('Grow Open Source: Get crowdfunding and find freelance developers for your software projects, paid in crypto') } return TemplateResponse(request, 'home/index.html', context)