prevent hardcoded capitalization

This commit is contained in:
emmapeel 2023-11-06 15:14:49 +00:00 committed by Jérôme Charaoui
parent ee85dad7df
commit 69428eb541
2 changed files with 5 additions and 5 deletions

View File

@ -72,9 +72,9 @@
<div class="row">
<div class="col-12 d-flex justify-content-center">
<div class="col-sm-6 offset-lx-1 offset-sm-0 mt-5">
<p class="text-primary-light text-uppercase">{{ _('Subscribe to our Newsletter') }}</p>
<p class="text-primary-light">{{ _('SUBSCRIBE TO OUR NEWSLETTER') }}</p>
<p class="text-light">{{ _('Get monthly updates and opportunities from the Tor Project:') }}</p>
<p class="w"><a class="btn btn-small btn-dark mt-2 text-white text-uppercase active" role="button" aria-pressed="true" href="https://newsletter.torproject.org/">{{ _('Sign up') }}</a></p>
<p class="w"><a class="btn btn-small btn-dark mt-2 text-white active" role="button" aria-pressed="true" href="https://newsletter.torproject.org/">{{ _('SIGN UP') }}</a></p>
</div>
<div class="col-sm-2 mt-5 d-none d-sm-block">
<div class="row">

View File

@ -12,7 +12,7 @@
<div class="row">
{% if this._model == 'donate-form' and this.header_image|length %}
<div class="col-12 content-center pt-1 pt-sm-0 donate-has-image">
<h2 class="mx-auto display-3 text-white text-capitalize donate-title">{{ this.title }}</h2>
<h2 class="mx-auto display-3 text-white donate-title">{{ this.title }}</h2>
<img src="{{ this.header_image | asseturl }}" class="donate-header-image img-fluid" />
{% set idx = this.header_image.index(".png") %}
{% set header_mobile = this.header_image[:idx] + "-mobile" + this.header_image[idx:] %}
@ -26,10 +26,10 @@
{% else %}
<div class="col-12 content-center pt-5">
<div class="row">
<h6 class="mx-auto text-white text-capitalize">{% block section %}{{ this.section }}{% endblock %}</h6>
<h6 class="mx-auto text-white">{% block section %}{{ this.section }}{% endblock %}</h6>
</div>
<div class="row pb-5">
<h2 class="mx-auto display-3 text-white text-capitalize">{% block title %}{{ this.title }}{% endblock %}</h2>
<h2 class="mx-auto display-3 text-white">{% block title %}{{ this.title }}{% endblock %}</h2>
</div>
{% if this.header_description_alignment == 'center' %}
<div class="row text-center header-description">