Skip to content

Commit

Permalink
Footer redesign; revised language to be more accessible & mention FPF
Browse files Browse the repository at this point in the history
Resolves #4662
  • Loading branch information
eloquence committed Aug 10, 2019
1 parent cd30c12 commit 163113a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@
/var/www/securedrop/static/i/font-awesome/white/guard.svg r,
/var/www/securedrop/static/i/hand_with_fingerprint.png r,
/var/www/securedrop/static/i/logo.png rw,
/var/www/securedrop/static/i/logo-footer.png r,
/var/www/securedrop/static/i/no16-global.png r,
/var/www/securedrop/static/i/no16.png r,
/var/www/securedrop/static/i/securedrop.png r,
Expand Down
16 changes: 15 additions & 1 deletion securedrop/sass/modules/_footer.sass
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@
footer
clear: both
text-align: center
border-top: 1px dashed $color_grey_xlight
margin-top: 20px
padding-top: 20px

footer #footer-powered-by
color: #000
margin-bottom: 0.5em

footer #footer-advisory
color: #3b3b3b
line-height: 2

footer #footer-fpf
line-height: 2
color: $color_grey_medium

footer img#footer-logo
vertical-align: -45%
margin-right: 0.5em
4 changes: 1 addition & 3 deletions securedrop/source_templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
</div>

{% block footer %}
<footer>
{{ gettext('Like all software, SecureDrop may contain security bugs. Use at your own risk.') }} <br>{{ gettext('Powered by') }} SecureDrop {{ version }}.
</footer>
{% include 'footer.html' %}
{% endblock %}
</div>
</body>
Expand Down
11 changes: 11 additions & 0 deletions securedrop/source_templates/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<footer>
<div id="footer-powered-by">
<img id="footer-logo" src="{{url_for('static', filename='i/logo-footer.png') }}" width="26" height="30">{{ gettext('Powered by') }} <strong>SecureDrop {{ version }}</strong>.
</div>
<div id="footer-advisory">
{{ gettext('Please note: Sharing sensitive documents may put you at risk, even when using Tor and SecureDrop.') }}
</div>
<div id="footer-fpf">
{{ gettext('SecureDrop is free and open source software stewarded by Freedom of the Press Foundation.') }}
</div>
</footer>
5 changes: 1 addition & 4 deletions securedrop/source_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ <h2 class="welcome-text">
</div>
</div>
</div>

<footer>
{{ gettext('Like all software, SecureDrop may contain security bugs. Use at your own risk.') }}<br>{{ gettext('Powered by') }} SecureDrop {{ version }}.
</footer>
{% include 'footer.html' %}
</div>

{# Warning bubble to help TB users disable JavaScript with NoScript.
Expand Down
Binary file added securedrop/static/i/logo-footer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 163113a

Please sign in to comment.