Skip to content

Commit

Permalink
strip out classes and old markup, remove unused templates
Browse files Browse the repository at this point in the history
  • Loading branch information
helenb committed Jan 3, 2024
1 parent 351ec91 commit 7329a4b
Show file tree
Hide file tree
Showing 137 changed files with 485 additions and 2,362 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
{% load wagtailimages_tags %}
{% comment %} Used on careers_page.html and impact_report_page.html {% endcomment %}
{% comment %} Used on impact_report_page.html {% endcomment %}

<a class="instagram-post" href="{% firstof post.value.link post.link|default:"https://www.instagram.com/torchboxltd/" %}" target="_blank" rel="nofollow noreferrer">
{% if post.value.image %}
{% image post.value.image fill-500x500 as post_img %}
{% elif post.image %}
{% image post.image fill-500x500 as post_img %}
{% endif %}
<img src="{{ post_img.url }}" class="instagram-post__image" width="500" height="500" loading="lazy" alt="{{ post_img.alt }}" />
<svg class="instagram-post__icon" viewBox="0 0 100 100" aria-hidden="true">
<a href="{% firstof post.value.link post.link|default:"https://www.instagram.com/torchboxltd/" %}" target="_blank" rel="nofollow noreferrer">
{% image post.value.image fill-500x500 loading="lazy" %}
<svg viewBox="0 0 100 100" aria-hidden="true">
<use xlink:href="#instagram" href="#instagram" />
</svg>
</a>
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
context:
embed:
url: https://example.com
author_name: torchboxltd
thumbnail_url: https://placekitten.com/480/360
post:
value:
link: '#'

tags:
image:
post.value.image fill-500x500 loading="lazy":
raw: '<img src="https://placekitten.com/500/500" loading="lazy">'

This file was deleted.

This file was deleted.

18 changes: 8 additions & 10 deletions tbx/project_styleguide/templates/patterns/atoms/logo/logo.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<div class="logo {% if classes %}{{ classes }}{% endif %}">
<a href="/" class="logo__link" aria-label="Homepage link">
<svg viewBox="0 0 1000 291.2" fill="#231749" class="logo__image" aria-hidden="true">
<path class="logo__letters" d="M55.3 150.5H0v-34h149.1v34h-55v136.6H55.3V150.5z"></path>
<path class="logo__letters" d="M117.6 227c0-8.9 1.6-17.2 4.7-24.9 3.2-7.8 7.5-14.5 13.2-20.3 5.6-5.8 12.4-10.4 20.3-13.7 7.9-3.3 16.7-5 26.2-5s18.2 1.7 26.1 5c7.8 3.3 14.6 7.9 20.2 13.7 5.6 5.8 10 12.6 13.2 20.3 3.2 7.8 4.7 16.1 4.7 24.9 0 8.9-1.6 17.2-4.7 24.9-3.2 7.8-7.5 14.5-13.2 20.3-5.6 5.8-12.4 10.4-20.2 13.8-7.8 3.4-16.5 5.1-26.1 5.1-9.6 0-18.3-1.7-26.2-5.1s-14.7-8-20.3-13.8c-5.6-5.8-10-12.6-13.2-20.3-3.1-7.8-4.7-16.1-4.7-24.9zm64.5 32.2c4.6 0 8.7-.9 12.3-2.7 3.6-1.8 6.6-4.2 9.1-7.3 2.5-3.1 4.3-6.5 5.5-10.4 1.2-3.8 1.8-7.8 1.8-11.9s-.6-8.1-1.8-11.9c-1.2-3.8-3-7.2-5.5-10.2-2.5-3-5.5-5.4-9.1-7.2-3.6-1.8-7.7-2.7-12.3-2.7-4.6 0-8.7.9-12.4 2.7-3.7 1.8-6.7 4.2-9.1 7.2-2.4 3-4.2 6.4-5.5 10.2-1.3 3.8-1.9 7.8-1.9 11.9s.6 8.1 1.9 11.9c1.3 3.8 3.1 7.3 5.5 10.4 2.4 3.1 5.4 5.5 9.1 7.3 3.7 1.8 7.8 2.7 12.4 2.7zm79.6-92.1H297l1.3 15.1c3.1-4.1 7.3-8 12.7-11.8 5.4-3.7 12.3-5.6 20.8-5.6 3.2 0 6 .2 8.3.5 2.3.3 4.6.9 6.8 1.8l-5.9 32.5c-3.8-1.2-8.2-1.8-13.3-1.8-8.7 0-15.7 2.6-21.1 7.8-5.4 5.2-8.1 12.6-8.1 22.1V287h-36.8V167.1zm199.8 104.1c-4.9 5.5-11.5 10.1-19.6 14.1-8.1 3.9-17.7 5.9-28.8 5.9-9.7 0-18.5-1.6-26.5-4.7-7.9-3.2-14.7-7.6-20.3-13.3-5.6-5.7-10-12.5-13.2-20.3-3.2-7.8-4.7-16.5-4.7-25.8 0-8.9 1.6-17.2 4.9-24.9 3.2-7.8 7.7-14.5 13.4-20.3 5.7-5.8 12.5-10.4 20.5-13.7 7.9-3.3 16.6-5 26-5 10.9 0 20.4 1.8 28.4 5.4 8 3.6 14.7 8.4 20.2 14.3l-22.3 24c-2.7-3.1-6.1-5.8-10-8.2-3.9-2.4-9.1-3.6-15.6-3.6-4.4 0-8.4.9-11.9 2.7-3.5 1.8-6.5 4.1-9 7-2.5 2.9-4.3 6.3-5.6 10.1-1.3 3.8-1.9 7.9-1.9 12.2 0 3.9.6 7.8 1.9 11.6 1.3 3.8 3.2 7.3 5.6 10.2 2.5 3 5.5 5.4 9 7.3 3.5 1.9 7.5 2.8 11.9 2.8 6.3 0 11.6-1.2 15.9-3.7 4.3-2.5 7.7-5.2 10.2-8.1l21.5 24zm10.3-154.8h36.6v62.2c3.9-4.6 9.1-8.1 15.6-10.6s13-3.7 19.7-3.7c13.8 0 24.9 4.1 33.1 12.3 8.3 8.2 12.4 20.3 12.4 36.3v74.2h-36.6v-68.6c0-7-1.8-12.4-5.4-16.4-3.6-3.9-8.4-5.9-14.3-5.9-3.9 0-7.4.7-10.5 2.2-3.1 1.4-5.6 3.4-7.7 5.8-2 2.4-3.6 5.2-4.6 8.3-1 3.2-1.5 6.5-1.5 10.1v64.5h-36.8V116.4zm138.5 0h36.8V176c3.4-3.6 8.1-6.4 13.9-8.4 5.9-2 11.7-3.1 17.5-3.1 8.5 0 16.1 1.6 22.8 4.9 6.7 3.2 12.2 7.6 16.8 13.2 4.5 5.5 8 11.9 10.4 19.2 2.4 7.3 3.6 15 3.6 23.1 0 9.7-1.6 18.7-4.7 26.9-3.2 8.2-7.7 15.2-13.7 21-6 5.8-13.3 10.3-22 13.6-8.7 3.2-18.6 4.9-29.7 4.9-10.2 0-19.9-.9-29-2.8-9.1-1.9-16.7-3.8-22.6-5.9V116.4zm36.8 141.5c2 .9 4.3 1.5 6.8 1.9 2.5.4 5.9.6 10.4.6 9.7 0 17.3-3.2 22.6-9.5 5.4-6.3 8.1-14.6 8.1-24.8 0-3.8-.5-7.4-1.4-11-.9-3.6-2.3-6.8-4.2-9.6-1.9-2.8-4.3-5.1-7.3-6.9-3-1.8-6.6-2.7-10.9-2.7-8.2 0-14.2 2.3-18.2 6.8-3.9 4.5-5.9 10.5-5.9 18v37.2zM742 227c0-8.9 1.6-17.2 4.7-24.9 3.2-7.8 7.5-14.5 13.2-20.3 5.6-5.8 12.4-10.4 20.3-13.7 7.9-3.3 16.7-5 26.2-5s18.2 1.7 26.1 5c7.8 3.3 14.6 7.9 20.2 13.7 5.6 5.8 10 12.6 13.2 20.3 3.2 7.8 4.7 16.1 4.7 24.9 0 8.9-1.6 17.2-4.7 24.9-3.2 7.8-7.5 14.5-13.2 20.3-5.6 5.8-12.4 10.4-20.2 13.8-7.8 3.4-16.5 5.1-26.1 5.1-9.6 0-18.3-1.7-26.2-5.1s-14.7-8-20.3-13.8c-5.6-5.8-10-12.6-13.2-20.3-3.1-7.8-4.7-16.1-4.7-24.9zm64.5 32.2c4.6 0 8.7-.9 12.3-2.7 3.6-1.8 6.6-4.2 9.1-7.3 2.5-3.1 4.3-6.5 5.5-10.4 1.2-3.8 1.8-7.8 1.8-11.9s-.6-8.1-1.8-11.9c-1.2-3.8-3-7.2-5.5-10.2-2.5-3-5.5-5.4-9.1-7.2-3.6-1.8-7.7-2.7-12.3-2.7-4.6 0-8.7.9-12.4 2.7-3.7 1.8-6.7 4.2-9.1 7.2-2.4 3-4.2 6.4-5.5 10.2-1.3 3.8-1.9 7.8-1.9 11.9s.6 8.1 1.9 11.9c1.3 3.8 3.1 7.3 5.5 10.4 2.4 3.1 5.4 5.5 9.1 7.3 3.6 1.8 7.8 2.7 12.4 2.7z"></path>
<path class="logo__letters" d="M912.5 227l-43.7-59.9h44l21.5 32 21.7-32h40.2L954 224.4l46 62.7h-44l-23.8-34.5-24 34.5H868l44.5-60.1z"></path>
<path class="logo__flame" d="M998.5 82.8c-.2-1.6-2.3-2-3.1-.6-4.7 8.4-11.3 15.6-15.9 17.8v-.9C978.7 41 936.7 9.5 921.9.3c-1.4-.9-3.1.6-2.4 2.1 9.7 20.1 6.1 39.1-10.2 57.6-3.1 3.4-6.5 7.8-9.4 12.2 0 0-3.5 5.1-6.8 12.1l-.2-.2c-6.7-10.2-8.2-22.4-8.5-29.1-.1-1.6-2.1-2.2-3-1-4.2 5.8-11.4 17.6-12.5 30.5-2.6 31.2 15.9 63.1 47.7 71.6 1.5.4 2.6-1.2 1.7-2.5-2.8-4.4-4.5-10.6-4.5-18.6 0-18.5 20-46.6 20-46.6s20 28.1 20 46.6c0 8.1-1.7 14.3-4.5 18.7-.8 1.3.3 2.9 1.7 2.5 30.9-8 45.4-36.5 47.6-54 1-7.7.4-14.8-.1-19.4z"></path>
</svg>
</a>
</div>
<a href="/" aria-label="Homepage link">
<svg viewBox="0 0 1000 291.2" fill="#231749" aria-hidden="true">
<path d="M55.3 150.5H0v-34h149.1v34h-55v136.6H55.3V150.5z"></path>
<path d="M117.6 227c0-8.9 1.6-17.2 4.7-24.9 3.2-7.8 7.5-14.5 13.2-20.3 5.6-5.8 12.4-10.4 20.3-13.7 7.9-3.3 16.7-5 26.2-5s18.2 1.7 26.1 5c7.8 3.3 14.6 7.9 20.2 13.7 5.6 5.8 10 12.6 13.2 20.3 3.2 7.8 4.7 16.1 4.7 24.9 0 8.9-1.6 17.2-4.7 24.9-3.2 7.8-7.5 14.5-13.2 20.3-5.6 5.8-12.4 10.4-20.2 13.8-7.8 3.4-16.5 5.1-26.1 5.1-9.6 0-18.3-1.7-26.2-5.1s-14.7-8-20.3-13.8c-5.6-5.8-10-12.6-13.2-20.3-3.1-7.8-4.7-16.1-4.7-24.9zm64.5 32.2c4.6 0 8.7-.9 12.3-2.7 3.6-1.8 6.6-4.2 9.1-7.3 2.5-3.1 4.3-6.5 5.5-10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7.7-5.2 10.2-8.1l21.5 24zm10.3-154.8h36.6v62.2c3.9-4.6 9.1-8.1 15.6-10.6s13-3.7 19.7-3.7c13.8 0 24.9 4.1 33.1 12.3 8.3 8.2 12.4 20.3 12.4 36.3v74.2h-36.6v-68.6c0-7-1.8-12.4-5.4-16.4-3.6-3.9-8.4-5.9-14.3-5.9-3.9 0-7.4.7-10.5 2.2-3.1 1.4-5.6 3.4-7.7 5.8-2 2.4-3.6 5.2-4.6 8.3-1 3.2-1.5 6.5-1.5 10.1v64.5h-36.8V116.4zm138.5 0h36.8V176c3.4-3.6 8.1-6.4 13.9-8.4 5.9-2 11.7-3.1 17.5-3.1 8.5 0 16.1 1.6 22.8 4.9 6.7 3.2 12.2 7.6 16.8 13.2 4.5 5.5 8 11.9 10.4 19.2 2.4 7.3 3.6 15 3.6 23.1 0 9.7-1.6 18.7-4.7 26.9-3.2 8.2-7.7 15.2-13.7 21-6 5.8-13.3 10.3-22 13.6-8.7 3.2-18.6 4.9-29.7 4.9-10.2 0-19.9-.9-29-2.8-9.1-1.9-16.7-3.8-22.6-5.9V116.4zm36.8 141.5c2 .9 4.3 1.5 6.8 1.9 2.5.4 5.9.6 10.4.6 9.7 0 17.3-3.2 22.6-9.5 5.4-6.3 8.1-14.6 8.1-24.8 0-3.8-.5-7.4-1.4-11-.9-3.6-2.3-6.8-4.2-9.6-1.9-2.8-4.3-5.1-7.3-6.9-3-1.8-6.6-2.7-10.9-2.7-8.2 0-14.2 2.3-18.2 6.8-3.9 4.5-5.9 10.5-5.9 18v37.2zM742 227c0-8.9 1.6-17.2 4.7-24.9 3.2-7.8 7.5-14.5 13.2-20.3 5.6-5.8 12.4-10.4 20.3-13.7 7.9-3.3 16.7-5 26.2-5s18.2 1.7 26.1 5c7.8 3.3 14.6 7.9 20.2 13.7 5.6 5.8 10 12.6 13.2 20.3 3.2 7.8 4.7 16.1 4.7 24.9 0 8.9-1.6 17.2-4.7 24.9-3.2 7.8-7.5 14.5-13.2 20.3-5.6 5.8-12.4 10.4-20.2 13.8-7.8 3.4-16.5 5.1-26.1 5.1-9.6 0-18.3-1.7-26.2-5.1s-14.7-8-20.3-13.8c-5.6-5.8-10-12.6-13.2-20.3-3.1-7.8-4.7-16.1-4.7-24.9zm64.5 32.2c4.6 0 8.7-.9 12.3-2.7 3.6-1.8 6.6-4.2 9.1-7.3 2.5-3.1 4.3-6.5 5.5-10.4 1.2-3.8 1.8-7.8 1.8-11.9s-.6-8.1-1.8-11.9c-1.2-3.8-3-7.2-5.5-10.2-2.5-3-5.5-5.4-9.1-7.2-3.6-1.8-7.7-2.7-12.3-2.7-4.6 0-8.7.9-12.4 2.7-3.7 1.8-6.7 4.2-9.1 7.2-2.4 3-4.2 6.4-5.5 10.2-1.3 3.8-1.9 7.8-1.9 11.9s.6 8.1 1.9 11.9c1.3 3.8 3.1 7.3 5.5 10.4 2.4 3.1 5.4 5.5 9.1 7.3 3.6 1.8 7.8 2.7 12.4 2.7z"></path>
<path d="M912.5 227l-43.7-59.9h44l21.5 32 21.7-32h40.2L954 224.4l46 62.7h-44l-23.8-34.5-24 34.5H868l44.5-60.1z"></path>
<path d="M998.5 82.8c-.2-1.6-2.3-2-3.1-.6-4.7 8.4-11.3 15.6-15.9 17.8v-.9C978.7 41 936.7 9.5 921.9.3c-1.4-.9-3.1.6-2.4 2.1 9.7 20.1 6.1 39.1-10.2 57.6-3.1 3.4-6.5 7.8-9.4 12.2 0 0-3.5 5.1-6.8 12.1l-.2-.2c-6.7-10.2-8.2-22.4-8.5-29.1-.1-1.6-2.1-2.2-3-1-4.2 5.8-11.4 17.6-12.5 30.5-2.6 31.2 15.9 63.1 47.7 71.6 1.5.4 2.6-1.2 1.7-2.5-2.8-4.4-4.5-10.6-4.5-18.6 0-18.5 20-46.6 20-46.6s20 28.1 20 46.6c0 8.1-1.7 14.3-4.5 18.7-.8 1.3.3 2.9 1.7 2.5 30.9-8 45.4-36.5 47.6-54 1-7.7.4-14.8-.1-19.4z"></path>
</svg>
</a>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<li class="quote-slide glide__slide">
{% include "patterns/molecules/streamfield/blocks/pullquote_block.html" with value=item classes="pullquote--slider" %}
<li>
{% include "patterns/molecules/streamfield/blocks/pullquote_block.html" with value=item %}
</li>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<h2 class="section-title">{{ title }}</h2>
<h2>{{ title }}</h2>
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{% if text %}
<div class="see-more">
{% if fetch_data %}
<button class="see-more__link" tabindex="0" data-fetch-target="{{ fetch_data }}">{{ text }}</button>
{% if fetch_data %}
<button>{{ text }}</button>
{% else %}
{% if filter_by %}
<a href="{{ link|add:'?filter='|add:filter_by }}">{{ text }}</a>
{% else %}
{% if filter_by %}
<a class="see-more__link" tabindex="0" href="{{ link|add:'?filter='|add:filter_by }}">{{ text }}</a>
{% else %}
<a class="see-more__link" tabindex="0" href="{{ link }}">{{ text }}</a>
{% endif %}
<a href="{{ link }}">{{ text }}</a>
{% endif %}
</div>
{% endif %}
{% endif %}
Loading

0 comments on commit 7329a4b

Please sign in to comment.