-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
landing page: final changes #1412
Changes from 6 commits
93c1588
dcb63d7
50bc7cb
9abc6c1
a77ce20
7f5b4a5
2d4b0c0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,17 +25,20 @@ <h4 class="col-12" id="newsletter-title"> | |
{% if newsletter_headline %} | ||
{{ newsletter_headline }} | ||
{% else %} | ||
{% trans "Join Our Newsletter !" %} | ||
{% trans "Join Our Newsletter!" %} | ||
{% endif %} | ||
</h4> | ||
<label for="newsletter-input">({% trans "Emails once a week max, & we never sell your data" %})</label> | ||
{% if not hide_newsletter_caption %} | ||
<label for="newsletter-input">({% trans "Emails once a week max, & we never sell your data" %})</label> | ||
{% endif %} | ||
<div class="col-12"> | ||
<input name="EMAIL" placeholder="[email protected]" id="newsletter-input" required> | ||
<input name="EMAIL" id="newsletter-input" required> | ||
<button id="newsletter-subscribe" type="submit" class="addon subscribe"><i class="fas fa-paper-plane" aria-hidden="true"></i></button> | ||
</div> | ||
{% if not hide_newsletter_consent %} | ||
<span style="display: block; margin-top: 3px; font-size: 10px;"> | ||
{% trans "You may withdraw email consent at any time" %} | <a href="{% url 'email_settings' email_key %}">{% trans "Manage preferences" %}</a> | <a href="{% url 'email_settings' email_key %}">{% trans "Opt out" %}</a> | <a href="mailto:[email protected]">{% trans "Email us" %}</a> | ||
</span> | ||
|
||
{% endif %} | ||
</form> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,9 @@ def index(request): | |
'slides': slides, | ||
'slideDurationInMs': 6000, | ||
'active': 'home', | ||
'hide_newsletter_caption': True, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the utility of this bool? Are we altering this value at any point? 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mbeacom I think what @thelostone-mc has done here is he is sending this boolean only to landing-page, which makes it non-hidden in all the other pages. Hence both the caption and consent are shown in every other page except the landing page. |
||
'hide_newsletter_consent': True, | ||
'newsletter_headline': _("Get the Latest Gitcoin News! Join Our Newsletter."), | ||
} | ||
return TemplateResponse(request, 'index.html', context) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SaptakS this only changes the border for larger devices :P