{% include "patterns/molecules/home-page-hero/home-page-hero.html" %}
-
+
{{ hero_introduction|richtext }}
diff --git a/tbx/project_styleguide/templates/patterns/pages/home/home_page.yaml b/tbx/project_styleguide/templates/patterns/pages/home/home_page.yaml
index 15b942a93..f772d6df2 100644
--- a/tbx/project_styleguide/templates/patterns/pages/home/home_page.yaml
+++ b/tbx/project_styleguide/templates/patterns/pages/home/home_page.yaml
@@ -1,12 +1,16 @@
context:
+ hero_introduction: '
Innovative and strategic digital experiences, powerful tech platforms, and targeted digital marketing to catalyse impact for the world's leading charities and public sector organisations.
'
page:
get_verbose_name: home-page
- hero_introduction: '
Innovative and strategic digital experiences, powerful tech platforms, and targeted digital marketing to catalyse impact for the world's leading charities and public sector organisations.
'
partner_logos:
- partner_logo:
- partner_logo:
- partner_logo:
- partner_logo:
+ - partner_logo:
+ - partner_logo:
+ - partner_logo:
+ - partner_logo:
tags:
include_block:
@@ -15,12 +19,19 @@ tags:
footerlinks:
'':
template_name: 'patterns/navigation/components/footer-links.html'
+ srcset_image:
+ 'avatar format-webp fill-{100x100,144x144,286x286} sizes="(max-width: 598px) 100px, (min-width: 599px) 145px" alt="" loading="lazy" class="avatar__image"':
+ raw: |
+
+ 'avatar format-webp fill-{100x100,144x144,286x286} sizes="(max-width: 598px) 100px, (min-width: 599px) 145px" alt="" class="avatar__image"':
+ raw: |
+
image:
- partner_logo max-100x90 format-webp as partner_logo_image:
+ partner_logo max-107x107 format-webp as partner_logo_image:
target_var: partner_logo_image
raw:
- url: 'https://picsum.photos/100/90.webp'
- partner_logo max-200x180 format-webp as partner_logo_image_retina:
+ url: 'https://picsum.photos/107/107.webp'
+ partner_logo max-214x214 format-webp as partner_logo_image_retina:
target_var: partner_logo_image_retina
raw:
- url: 'https://picsum.photos/200/180.webp'
+ url: 'https://picsum.photos/214/214.webp'
diff --git a/tbx/project_styleguide/templates/patterns/styleguide/components/components.yaml b/tbx/project_styleguide/templates/patterns/styleguide/components/components.yaml
index 27894033e..a11ec09e7 100644
--- a/tbx/project_styleguide/templates/patterns/styleguide/components/components.yaml
+++ b/tbx/project_styleguide/templates/patterns/styleguide/components/components.yaml
@@ -168,14 +168,14 @@ tags:
raw: |
# for partners
- partner_logo max-100x90 format-webp as partner_logo_image:
+ partner_logo max-107x107 format-webp as partner_logo_image:
target_var: partner_logo_image
raw:
- url: 'https://picsum.photos/100/90.webp'
- partner_logo max-200x180 format-webp as partner_logo_image_retina:
+ url: 'https://picsum.photos/107/107.webp'
+ partner_logo max-214x214 format-webp as partner_logo_image_retina:
target_var: partner_logo_image_retina
raw:
- url: 'https://picsum.photos/200/180.webp'
+ url: 'https://picsum.photos/214/214.webp'
# event block
value.image fill-525x510 format-webp as desktop_image:
target_var: desktop_image
diff --git a/tbx/static_src/sass/components/_division-signpost.scss b/tbx/static_src/sass/components/_division-signpost.scss
index 9a5d069ea..dd41d1e57 100644
--- a/tbx/static_src/sass/components/_division-signpost.scss
+++ b/tbx/static_src/sass/components/_division-signpost.scss
@@ -1,8 +1,6 @@
@use 'config' as *;
.division-signpost {
- margin-bottom: $spacer-large;
-
&__intro {
margin-bottom: $spacer-medium;
}
diff --git a/tbx/static_src/sass/components/_employee-owned-icon.scss b/tbx/static_src/sass/components/_employee-owned-icon.scss
index 0e3f1f8d0..c6a86c7a1 100644
--- a/tbx/static_src/sass/components/_employee-owned-icon.scss
+++ b/tbx/static_src/sass/components/_employee-owned-icon.scss
@@ -9,13 +9,12 @@
position: absolute;
top: calc(50% - 15px);
left: calc(50% - 15px);
- color: var(--color--accent-three);
+ color: var(--color--sky);
opacity: 0.5;
mix-blend-mode: screen;
#{$root}:hover & {
opacity: 1;
- color: var(--color--accent-two);
}
@include media-query(large) {
@@ -44,12 +43,11 @@
position: absolute;
top: calc(50% - 15px);
left: calc(50% - 19px);
- color: var(--color--accent-two);
+ color: var(--color--coral-charity);
opacity: 0.5;
mix-blend-mode: screen;
#{$root}:hover & {
- color: var(--color--accent-three);
opacity: 1;
}
diff --git a/tbx/static_src/sass/components/_grid.scss b/tbx/static_src/sass/components/_grid.scss
index 0784881ea..38a0705c7 100644
--- a/tbx/static_src/sass/components/_grid.scss
+++ b/tbx/static_src/sass/components/_grid.scss
@@ -28,7 +28,8 @@
grid-column: 2 / span 4;
@include media-query(large) {
- grid-column: 4 / span 9;
+ grid-column: 2 / span 9;
+ margin-bottom: $spacer-small-plus;
}
}
@@ -42,12 +43,12 @@
}
&__intro {
- margin-bottom: $spacer-small;
+ margin-bottom: $spacer-medium;
grid-column: 2 / span 4;
@include media-query(large) {
- margin-bottom: $spacer-medium;
- grid-column: 4 / span 7;
+ margin-bottom: $spacer-medium-plus;
+ grid-column: 2 / span 7;
}
}
@@ -113,8 +114,8 @@
grid-column: 2 / span 4;
@include media-query(large) {
- margin-bottom: $spacer-large;
- grid-column: 2 / span 12;
+ margin-bottom: $spacer-medium-plus;
+ grid-column: 3 / span 10;
}
}
@@ -519,21 +520,6 @@
}
}
- // home page adjustments
- .template-homepage & {
- &__title {
- @include media-query(large) {
- grid-column: 3 / span 9;
- }
- }
-
- &__intro {
- @include media-query(large) {
- grid-column: 3 / span 6;
- }
- }
- }
-
// 404 page adjustments
.template-404-page & {
&__paragraph {
diff --git a/tbx/static_src/sass/components/_home-page-hero.scss b/tbx/static_src/sass/components/_home-page-hero.scss
index e52f00bff..5a3714304 100644
--- a/tbx/static_src/sass/components/_home-page-hero.scss
+++ b/tbx/static_src/sass/components/_home-page-hero.scss
@@ -2,11 +2,7 @@
.home-page-hero {
position: relative;
- margin-top: 160px;
-
- @include media-query('large') {
- margin-top: 200px;
- }
+ margin-top: $spacer;
&__title {
@include media-query('large') {
@@ -26,7 +22,8 @@
top: -100px;
@include media-query('large') {
- top: -72px;
+ top: -20px;
+ right: -144px;
width: 144px;
height: 144px;
}
diff --git a/tbx/static_src/sass/components/_home-page-intro.scss b/tbx/static_src/sass/components/_home-page-intro.scss
new file mode 100644
index 000000000..c9a99a5be
--- /dev/null
+++ b/tbx/static_src/sass/components/_home-page-intro.scss
@@ -0,0 +1,38 @@
+@use 'config' as *;
+
+.home-page-intro {
+ @include font-size(size-five);
+
+ .text-coral,
+ .text-nebuline {
+ @include link-styles(
+ $color: var(--color--heading),
+ $interaction-color: var(--color--heading),
+ $underline-color: var(--color--heading),
+ $underline-hover-color: var(--color--heading)
+ );
+ font-weight: $weight--semibold;
+ }
+
+ .text-coral {
+ @include media-query(large) {
+ @include link-styles(
+ $color: var(--color--coral-charity),
+ $interaction-color: var(--color--coral-charity),
+ $underline-color: var(--color--coral-charity),
+ $underline-hover-color: var(--color--coral-charity)
+ );
+ }
+ }
+
+ .text-nebuline {
+ @include media-query(large) {
+ @include link-styles(
+ $color: var(--color--nebuline-public),
+ $interaction-color: var(--color--nebuline-public),
+ $underline-color: var(--color--nebuline-public),
+ $underline-hover-color: var(--color--nebuline-public)
+ );
+ }
+ }
+}
diff --git a/tbx/static_src/sass/components/_logo.scss b/tbx/static_src/sass/components/_logo.scss
index dcfc8bccc..b13ea3e59 100644
--- a/tbx/static_src/sass/components/_logo.scss
+++ b/tbx/static_src/sass/components/_logo.scss
@@ -3,16 +3,9 @@
.logo {
width: 105px;
height: 31px;
+ color: var(--color--heading);
- &__text {
- fill: var(--color--heading);
-
- @include high-contrast-light-mode() {
- fill: var(--color--decoration);
- }
- }
-
- &__flame {
- fill: var(--color--accent-three);
+ @include high-contrast-light-mode() {
+ color: var(--color--decoration);
}
}
diff --git a/tbx/static_src/sass/components/_partners.scss b/tbx/static_src/sass/components/_partners.scss
index ae06424c0..7efe49c02 100644
--- a/tbx/static_src/sass/components/_partners.scss
+++ b/tbx/static_src/sass/components/_partners.scss
@@ -6,8 +6,13 @@
@mixin partner-logo-sizes() {
width: 100%;
height: 100%;
- max-width: 100px;
+ max-width: 90px;
max-height: 90px;
+
+ @include media-query(large) {
+ max-width: 107px;
+ max-height: 107px;
+ }
}
&__title {
@@ -23,30 +28,25 @@
align-items: center;
@include media-query(large) {
+ gap: $spacer-small;
justify-content: flex-start;
}
- &--wide {
- @include media-query('x-large') {
- justify-content: space-between;
- }
+ @include media-query('x-large') {
+ gap: $spacer-medium;
}
}
&__logo-wrapper {
- width: 120px;
- height: 120px;
+ width: 100px;
+ height: 100px;
display: flex;
align-items: center;
justify-content: center;
@include media-query(medium) {
- width: 160px;
- height: 160px;
- }
-
- @include media-query(large) {
- justify-content: flex-start;
+ width: 120px;
+ height: 120px;
}
#{$root}__logos--wide & {
@@ -58,7 +58,7 @@
&__logo {
@include partner-logo-sizes();
- filter: grayscale(1) invert(1) brightness(1.5);
+ filter: grayscale(1) invert(1) brightness(1.2);
object-fit: contain;
@include high-contrast-light-mode() {
@@ -66,11 +66,7 @@
}
.mode-light & {
- filter: none;
+ filter: grayscale(1) brightness(1.2);
}
}
-
- &__logo-picture {
- @include partner-logo-sizes();
- }
}
diff --git a/tbx/static_src/sass/components/_rich-text.scss b/tbx/static_src/sass/components/_rich-text.scss
index fa3e849ff..e96c6910b 100644
--- a/tbx/static_src/sass/components/_rich-text.scss
+++ b/tbx/static_src/sass/components/_rich-text.scss
@@ -8,7 +8,7 @@
h4,
h5,
h6 {
- font-weight: $weight--light;
+ font-weight: $weight--semibold;
b {
//
tags were used in the legacy CMS within headings
@@ -40,7 +40,6 @@
h4 {
@include font-size(size-four);
@include rich-text-heading-spacing();
- font-weight: $weight--semibold;
}
// overide top heading margins for the first child
diff --git a/tbx/static_src/sass/components/_swirls.scss b/tbx/static_src/sass/components/_swirls.scss
new file mode 100644
index 000000000..5846d79a0
--- /dev/null
+++ b/tbx/static_src/sass/components/_swirls.scss
@@ -0,0 +1,25 @@
+@use 'config' as *;
+
+.swirls {
+ position: relative;
+ display: none;
+
+ @include media-query(large) {
+ display: block;
+ }
+
+ &__container {
+ @include z-index(under);
+ position: absolute;
+ width: 100%;
+ aspect-ratio: 1512 / 1239;
+ }
+
+ &__icon {
+ position: absolute;
+
+ @include high-contrast-mode() {
+ display: none;
+ }
+ }
+}
diff --git a/tbx/static_src/sass/config/_variables.scss b/tbx/static_src/sass/config/_variables.scss
index bf087bed6..46844a3f9 100755
--- a/tbx/static_src/sass/config/_variables.scss
+++ b/tbx/static_src/sass/config/_variables.scss
@@ -78,6 +78,8 @@ $color--earth-streamfield-background: #e6e3df;
--color--overlay: #{color.adjust($color--black, $alpha: -0.6)};
--color--background--overlay: #{color.adjust($color--eclipse, $alpha: -1)};
--color--light-grey-background: #{$color--grey-5};
+ --color--background-swirls-one: #{$color--black};
+ --color--background-swirls-two: #{$color--white};
// The following base variables do not change with neither theme nor mode
// where we always want white
--color--white: #{$color--white};
@@ -95,6 +97,7 @@ $color--earth-streamfield-background: #e6e3df;
--color--coral-30: #{$color--coral-30};
--color--nebuline-30: #{$color--nebuline-30};
--color--lagoon-30: #{$color--lagoon-30};
+ --color--sky: #{$color--sky};
}
// Coral theme, dark mode - also by default
@@ -206,6 +209,8 @@ $color--earth-streamfield-background: #e6e3df;
--color--link-interaction: #{$color--eclipse};
--color--button-link-interaction: #{$color--white};
--color--streamfield-background: #{$color--grey-5};
+ --color--background-swirls-one: #{$color--grey-5};
+ --color--background-swirls-two: #{$color--grey-50};
}
// Coral theme, light mode (coral theme is by default if theme class not specified)
diff --git a/tbx/static_src/sass/main.scss b/tbx/static_src/sass/main.scss
index 27666c7d7..deafcf436 100755
--- a/tbx/static_src/sass/main.scss
+++ b/tbx/static_src/sass/main.scss
@@ -28,6 +28,7 @@
@use 'components/grid';
@use 'components/header';
@use 'components/home-page-hero';
+@use 'components/home-page-intro';
@use 'components/image';
@use 'components/instagram-gallery';
@use 'components/link';
@@ -57,6 +58,7 @@
@use 'components/sprites-preview-icons';
@use 'components/stats';
@use 'components/streamfield';
+@use 'components/swirls';
@use 'components/team-page-meta';
@use 'components/tabbed-paragraph';
@use 'components/table';