[tor-commits] [lego/master] Rename banner fix templating

hiro at torproject.org hiro at torproject.org
Mon Oct 28 16:48:33 UTC 2019


commit 9166e8dee91b8e8c4148d750aafece458693ed3c
Author: hiro <hiro at torproject.org>
Date:   Mon Oct 28 17:48:28 2019 +0100

    Rename banner fix templating
---
 templates/banner.html        | 28 ++++++++++++++++++++++++++++
 templates/bottom_banner.html |  2 +-
 templates/navbar.html        |  2 +-
 3 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/templates/banner.html b/templates/banner.html
new file mode 100644
index 0000000..b110827
--- /dev/null
+++ b/templates/banner.html
@@ -0,0 +1,28 @@
+<div class="banner__containter banner align-middle d-flex justify-content-center p-0">
+  <input id="trigger" type="checkbox" title="Close banner" />
+    <label for="trigger" class="footer__close text-white">X</label>
+  <span class="eoy-sr-only text-white">Close banner</span>
+  <div class="eoy-banner row col-md-12" id="banner-header" role="contentinfo">
+    <div class="col-lg-3 col-md-1"></div>
+    <div class="col-lg-6 col-md-10">
+      <div class="col-12 p-5">
+        <div class="row">
+          <h4 class="tracking-surveillan">Tracking, surveillance, and censorship are widespread online.</h4>
+        </div>
+        <div class="row">
+          <h2 class="take-back-the-intern display-3 py-3">
+            TAKE BACK<br />
+            THE INTERNET<br />
+            WITH TOR
+          </h2>
+        </div>
+        <div class="row">
+          <a class="btn-lg rectangle mb-3" href="https://donate.torproject.org">DONATE NOW</a>
+          <p class="give-today-and-mozi">Give today, and Mozilla will match your donation.</p>
+        </div>
+      </div>
+    </div>
+    <div class="col-lg-3 col-md-1">
+    </div>
+  </div>
+</div>
diff --git a/templates/bottom_banner.html b/templates/bottom_banner.html
index b110827..b1782d7 100644
--- a/templates/bottom_banner.html
+++ b/templates/bottom_banner.html
@@ -17,7 +17,7 @@
           </h2>
         </div>
         <div class="row">
-          <a class="btn-lg rectangle mb-3" href="https://donate.torproject.org">DONATE NOW</a>
+          <a class="btn-lg rectangle mb-3 mr-3" href="https://donate.torproject.org">DONATE NOW</a>
           <p class="give-today-and-mozi">Give today, and Mozilla will match your donation.</p>
         </div>
       </div>
diff --git a/templates/navbar.html b/templates/navbar.html
index 4474fa8..96c0961 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -1,4 +1,4 @@
-{% include 'bottom_banner.html' %}
+{% include 'banner.html' %}
 {% if not this.color %}
 <div class="container-fluid bg-primary">
   <nav class="navbar no-background navbar-expand-lg navbar-dark bg-primary p-4">



More information about the tor-commits mailing list