Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 96 additions & 34 deletions website/modules/asset/ui/src/scss/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,79 +8,140 @@
padding-bottom: 16px;

@include breakpoint-medium {
padding-bottom: 24px;
padding-bottom: 150px;
}
}

.sf-footer__mission {
text-align: center;
margin-bottom: 32px;
margin-bottom: 20px;
display: block;

@include breakpoint-medium {
display: block;
width: fit-content;
margin-left: auto;
margin-right: auto;
margin-bottom: 91.5px;
}

p {
font-size: $font-size-footer-mobile;
font-weight: $font-weight-300;
font-size: 10px;
font-weight: $font-weight-bold;
color: $gray-300;
margin: 0;
line-height: 120%;
line-height: 140%;
display: block;
margin-right: 4px;
text-align: center;
text-wrap: balance;

@include breakpoint-medium {
font-size: 12px;
}

&:first-child {
display: block;
}

&:not(:first-child) {
&:nth-child(2) {
display: block;
@include breakpoint-medium {
display: inline-block;
}
}
}
}

.sf-footer__links {
.sf-footer__badge-row {
display: flex;
flex-direction: column;
align-items: flex-start;
font-size: $font-size-footer-mobile;
font-weight: $font-weight-300;
line-height: 120%;
gap: 44px;
align-items: center;
margin-bottom: 104px;

@include breakpoint-medium {
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 32px;
text-align: left;
margin-bottom: 0;
position: relative;
}
}

.sf-footer__badge {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 60px;
order: 1;

@include breakpoint-medium {
position: absolute;
left: 50%;
transform: translateX(-50%);
margin-bottom: 0;
order: 1;
}

.sf-footer__badge-image {
width: 100px;
height: 60px;
object-fit: contain;

@include breakpoint-medium {
width: 140px;
height: 80px;
}
}
}

.sf-footer__links-left {
display: flex;
flex-direction: column;
align-items: center;
order: 2;
margin-bottom: 0;

@include breakpoint-medium {
flex-direction: row;
align-items: center;
gap: 50px;
flex: 1;
justify-content: flex-start;
order: 0;
margin-bottom: 0;
}
}

.sf-footer__links-group {
.sf-footer__links-right {
display: flex;
flex-direction: column;
gap: 12px;
align-items: center;
order: 3;
margin-bottom: 0;

@include breakpoint-medium {
flex-direction: row;
align-items: center;
gap: 32px;
gap: 50px;
flex: 1;
justify-content: flex-end;
order: 2;
margin-bottom: 0;
}
}

.sf-footer__links-item {
font-size: $font-size-footer-mobile;
font-weight: $font-weight-normal;
font-size: 10px;
font-weight: $font-weight-bold;
color: $gray-500;
line-height: 140%;
text-decoration: none;
text-align: center;
transition: color 0.2s ease;
margin-bottom: 20px;

@include breakpoint-medium {
font-size: 12px;
text-align: left;
margin-bottom: 0;
}

&:hover,
&:focus {
Expand All @@ -89,16 +150,12 @@
}
}

.sf-footer__links-item--policy {
margin-top: 44px;
@include breakpoint-medium {
margin-top: 0;
}
}

.sf-footer__bottom {
text-align: center;
padding-top: 32px;

@include breakpoint-medium {
text-align: right;
}
}

.sf-copy {
Expand All @@ -108,8 +165,13 @@

.sf-copy {
text-align: center;
font-weight: $font-weight-medium;
font-size: $font-size-body-medium-mobile;
font-weight: $font-weight-bold;
font-size: 10px;
line-height: 140%;
color: $gray-300;
color: $gray-500;

@include breakpoint-medium {
font-size: 12px;
text-align: right;
}
}
Binary file added website/public/images/proud-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 30 additions & 24 deletions website/views/fragments/fragments.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
{% endfragment %} {% fragment footer() %}
<footer class="sf-footer sf-container">
<div class="sf-footer__content">

{% if data.global.companyMission and data.global.companyMission.items and data.global.companyMission.items.length > 0 %}
<div class="sf-footer__mission">
<div class="sf-footer__mission-content">
Expand All @@ -39,38 +38,45 @@
</div>
{% endif %}

<div class="sf-footer__links">
{% if data.global.socialMediaLinks and data.global.socialMediaLinks.length > 0 %}
<div class="sf-footer__links-group">
<div class="sf-footer__badge-row">
<div class="sf-footer__links-left">
{% if data.global.socialMediaLinks and data.global.socialMediaLinks.length > 0 %}
{% for item in data.global.socialMediaLinks %}
<a
href="{% if item.SMLink.linkType == 'page' and item.SMLink._page %}{{ item.SMLink._page._url }}{% else %}{{ item.SMLink.customUrl }}{% endif %}"
class="sf-footer__links-item"
{% if item.SMLink.target and item.SMLink.target.includes('_blank') %}target="_blank" rel="noopener noreferrer"{% endif %}
>
{{ item.SMLink.linkTitle }}
</a>
{% endfor %}
</div>
{% endif %}
{{ item.SMLink.linkTitle }}
</a>
{% endfor %}
{% endif %}
</div>

{% if data.global.footerLinks and data.global.footerLinks.length > 0 %}
<div class="sf-footer__links-group">
{% for item in data.global.footerLinks %}
<a
href="{% if item.footerLink.linkType == 'page' and item.footerLink._page %}{{ item.footerLink._page._url }}{% else %}{{ item.footerLink.customUrl }}{% endif %}"
class="sf-footer__links-item"
{% if item.footerLink.target and item.footerLink.target.includes('_blank') %}target="_blank" rel="noopener noreferrer"{% endif %}
>
{{ item.footerLink.linkTitle }}
</a>
{% endfor %}
<div class="sf-footer__badge">
<img
src="/images/proud-icon.png"
alt="Proud member of The Bureau"
class="sf-footer__badge-image"
/>
</div>
{% endif %}
</div>

<div class="sf-footer__bottom">
<p class="sf-copy">&#169; {{ data.currentYear or '2025' }} S&amp;F</p>
<div class="sf-footer__links-right">
{% if data.global.footerLinks and data.global.footerLinks.length > 0 %}
{% for item in data.global.footerLinks %}
<a
href="{% if item.footerLink.linkType == 'page' and item.footerLink._page %}{{ item.footerLink._page._url }}{% else %}{{ item.footerLink.customUrl }}{% endif %}"
class="sf-footer__links-item"
{% if item.footerLink.target and item.footerLink.target.includes('_blank') %}target="_blank" rel="noopener noreferrer"{% endif %}
>
{{ item.footerLink.linkTitle }}
</a>
{% endfor %}
{% endif %}
<div class="sf-footer__bottom">
<p class="sf-copy">&#169; {{ data.currentYear or '2026' }} S&amp;F</p>
</div>
</div>
</div>
</div>
</footer>
Expand Down
Loading