Skip to content

Commit 0928ad3

Browse files
authored
Merge pull request #307 from torchbox/add-footer-address
Add company address to footer
2 parents cf25bb0 + 25f2a5d commit 0928ad3

File tree

3 files changed

+43
-6
lines changed

3 files changed

+43
-6
lines changed

tbx/project_styleguide/templates/patterns/organisms/footer/footer.html

+10-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
{% wagtailcache 600 "footerlinks" current_site.pk is_pattern_library %}
1515
{% footerlinks %}
1616
{% endwagtailcache %}
17-
<p class="footer__copyright">© Torchbox {% now "Y" %}</p>
1817

1918
<ul class="footer__socials">
2019
<li>
@@ -63,6 +62,16 @@
6362
{% endif %}
6463
{% endwith %}
6564
</div>
65+
<div class="grid__footer-company">
66+
<div class="footer__company">
67+
<div class="footer__company-address">
68+
<p>© Torchbox {% now "Y" %} - </p><address>3rd Floor, 15 Colston St, Bristol, BS1 5AP</address>
69+
</div>
70+
<div>
71+
<p>Registered in England &amp; Wales. Company no. 3983354, VAT no. 752981011</p>
72+
</div>
73+
</div>
74+
</div>
6675
</div>
6776

6877
{% include "patterns/molecules/carbon-impact/carbon-impact.html" %}

tbx/static_src/sass/components/_footer.scss

+22-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
}
3636
}
3737

38-
&__copyright {
39-
margin: $spacer-mini 0 0;
40-
}
41-
4238
&__socials {
4339
display: flex;
4440
gap: $spacer-mini * 2;
@@ -96,6 +92,28 @@
9692
}
9793
}
9894

95+
&__company {
96+
display: flex;
97+
flex-direction: column;
98+
height: 100%;
99+
margin: $spacer-medium 0 $spacer-mini;
100+
color: var(--color--grey-20);
101+
102+
@include media-query(large) {
103+
justify-content: center;
104+
margin: 0;
105+
}
106+
}
107+
108+
&__company-address {
109+
font-weight: 600;
110+
111+
> * {
112+
font-style: normal;
113+
display: inline;
114+
}
115+
}
116+
99117
&__carbon-impact-container {
100118
background-color: var(--color--footer-background);
101119
border-top: 1px solid var(--color--border);

tbx/static_src/sass/components/_grid.scss

+11-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,17 @@
273273
grid-column: 2 / span 4;
274274

275275
@include media-query(large) {
276-
grid-column: 2 / span 12;
276+
grid-column: 2 / span 4;
277+
}
278+
}
279+
280+
&__footer-company {
281+
grid-column: 2 / span 4;
282+
grid-row: 2;
283+
284+
@include media-query(large) {
285+
grid-column: 10 / span 4;
286+
grid-row: auto;
277287
}
278288
}
279289

0 commit comments

Comments
 (0)