Browse Source

:sparkles: Add a heading above the newsletter signup

The signup embed sat in the footer with no context. Introduce it so
readers know Django News carries more projects like the ones on this
list.
Jeff Triplett 4 ngày trước cách đây
mục cha
commit
8bb180ed25
2 tập tin đã thay đổi với 20 bổ sung0 xóa
  1. 14 0
      docs/stylesheets/django.css
  2. 6 0
      overrides/main.html

+ 14 - 0
docs/stylesheets/django.css

@@ -79,6 +79,20 @@
   text-align: center;
 }
 
+.awesome-django-footer__title {
+  margin: 0 0 0.3rem;
+  color: var(--md-footer-fg-color);
+  font-size: 1rem;
+  font-weight: 700;
+  line-height: 1.3;
+}
+
+.awesome-django-footer__lede {
+  margin: 0 auto 0.9rem;
+  max-width: 34rem;
+  font-size: 0.72rem;
+}
+
 .awesome-django-footer a {
   color: var(--md-footer-fg-color);
   text-decoration: underline;

+ 6 - 0
overrides/main.html

@@ -19,6 +19,12 @@
 {% block footer %}
   <footer class="md-footer">
     <div class="awesome-django-footer md-grid">
+      <h2 class="awesome-django-footer__title">Looking for more cool projects?</h2>
+      <p class="awesome-django-footer__lede">
+        Django News is a free weekly newsletter. It covers new packages,
+        articles, releases, and jobs from across the Django community.
+      </p>
+
       <div class="awesome-django-newsletter">
         <iframe
           src="https://django-news.com?as_embed=true"