From 8bd1be8f2fe634c428f82a2f8e210663746b8f17 Mon Sep 17 00:00:00 2001 From: Dave Nichols Date: Mon, 12 Aug 2024 12:18:44 +0100 Subject: [PATCH 1/7] Added OpCo footer to the code. --- blocks/footer/footer.css | 51 ++++++++++++++++++++++++++++++++++++++++ blocks/footer/footer.js | 35 +++++++++++++++++++++++++++ styles/template.css | 2 +- 3 files changed, 87 insertions(+), 1 deletion(-) diff --git a/blocks/footer/footer.css b/blocks/footer/footer.css index 698ed8c..e9caa2f 100644 --- a/blocks/footer/footer.css +++ b/blocks/footer/footer.css @@ -67,6 +67,57 @@ color: #fff; } +.footer-opco { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + background-color: black; + color: #fff; + justify-content: center; +} + +.footer-opco ul { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + width: 85%; +} + +.footer-opco li { + flex: 1 1 calc(11.111% - 10px); + margin: 5px; + box-sizing: border-box; +} + +.footer-opco a { + display: block; + text-align: center; + color: #fff; + text-decoration: none; +} + +.footer-opco img { + max-width: 100%; + height: auto; + filter: brightness(0) invert(1); + height: 37px; +} + +@media (max-width: 768px) { + .footer-opco li { + flex: 1 1 calc(33.333% - 10px); + } +} + +@media (max-width: 479px) { + .footer-opco li { + flex: 1 1 calc(50% - 10px); + } +} + #footer-black img { width: 55px; } diff --git a/blocks/footer/footer.js b/blocks/footer/footer.js index d10901c..4bd06d8 100644 --- a/blocks/footer/footer.js +++ b/blocks/footer/footer.js @@ -37,6 +37,7 @@ export default async function decorate(block) { } return allAnchorTags; } + if (resp.ok) { const html = await resp.text(); const topContainer = createDivElement('top-container', ''); @@ -74,7 +75,41 @@ export default async function decorate(block) { link.classList.add('text-normal'); } }); + + function footerOpco() { + const ulElement = document.createElement('ul'); + const items = [ + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + ]; + items.forEach(item => { + const liElement = document.createElement('li'); + const aElement = document.createElement('a'); + aElement.href = item.href; + aElement.target = '_blank'; + const imgElement = document.createElement('img'); + imgElement.src = item.src; + imgElement.alt = item.alt; + aElement.appendChild(imgElement); + liElement.appendChild(aElement); + ulElement.appendChild(liElement); + }); + + const footerContainer = document.createElement('div'); + footerContainer.classList.add('footer-opco'); + footerContainer.appendChild(ulElement); + document.body.appendChild(footerContainer); + } + decorateIcons(footerWapper); block.append(topContainer); + footerOpco(); } } diff --git a/styles/template.css b/styles/template.css index 9cdbbba..bc1a1f2 100644 --- a/styles/template.css +++ b/styles/template.css @@ -730,7 +730,7 @@ body.sidebar-50 #sidebar { #footer-black { padding: 30px 0 40px; text-align: center; - width: 85%; + /* width: 85%; */ } #footer-black #footer-logo { From fee4863591ec65df2ca29ab94c3adc4317a6c44a Mon Sep 17 00:00:00 2001 From: Dave Nichols Date: Mon, 12 Aug 2024 12:24:17 +0100 Subject: [PATCH 2/7] Coded in the OpCo images --- blocks/footer/footer.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/blocks/footer/footer.js b/blocks/footer/footer.js index 4bd06d8..4cb3930 100644 --- a/blocks/footer/footer.js +++ b/blocks/footer/footer.js @@ -79,15 +79,15 @@ export default async function decorate(block) { function footerOpco() { const ulElement = document.createElement('ul'); const items = [ - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Image 1' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_1b4cb13c1b58a2aa9440c48591885c2d142ef2ad9.svg?width=2000&format=webply&optimize=medium', alt: 'Abcam' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_1bdcd4f292eff7c94564c2edabbe6f2990b7c2771.svg?width=2000&format=webply&optimize=medium', alt: 'Beckman' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_18ce6e6ac9fa86b1e38dd5d5aa2c26739f7699a7a.svg?width=2000&format=webply&optimize=medium', alt: 'IDBS' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_17e0c34915747b51dc4f3b1d6115a354a005f7811.svg?width=2000&format=webply&optimize=medium', alt: 'Leica' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_14551887088f7666163b3db5b7c4563db95aeba9c.svg?width=2000&format=webply&optimize=medium', alt: 'MolDev' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_16925698572ba5cd9b64350134f680855a9896f9f.svg?width=2000&format=webply&optimize=medium', alt: 'Phenomenex' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_190d426a0f0258e8636507a15d8aedfaed8649fc1.svg?width=2000&format=webply&optimize=medium', alt: 'Sciex' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Aldevron' }, + { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_1dfadbb273bd8868ca3659447071c5aeee1525cbf.svg?width=2000&format=webply&optimize=medium', alt: 'IDT' }, ]; items.forEach(item => { const liElement = document.createElement('li'); From 958893cd0d22b395365221a349e948d271d4d066 Mon Sep 17 00:00:00 2001 From: Dave Nichols Date: Mon, 12 Aug 2024 13:15:42 +0100 Subject: [PATCH 3/7] Fixing lint issues. --- blocks/footer/footer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/footer/footer.js b/blocks/footer/footer.js index 4cb3930..ba5f149 100644 --- a/blocks/footer/footer.js +++ b/blocks/footer/footer.js @@ -89,7 +89,7 @@ export default async function decorate(block) { { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Aldevron' }, { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_1dfadbb273bd8868ca3659447071c5aeee1525cbf.svg?width=2000&format=webply&optimize=medium', alt: 'IDT' }, ]; - items.forEach(item => { + items.forEach((item) => { const liElement = document.createElement('li'); const aElement = document.createElement('a'); aElement.href = item.href; @@ -101,7 +101,7 @@ export default async function decorate(block) { liElement.appendChild(aElement); ulElement.appendChild(liElement); }); - + const footerContainer = document.createElement('div'); footerContainer.classList.add('footer-opco'); footerContainer.appendChild(ulElement); From ecfbe39c8584eff6df9ab1ea2cbf8758ffc3a190 Mon Sep 17 00:00:00 2001 From: Dave Nichols Date: Tue, 13 Aug 2024 10:29:10 +0100 Subject: [PATCH 4/7] Added opco svgs --- icons/opcos/abcam.svg | 27 ++++++++++ icons/opcos/aldevron.svg | 38 ++++++++++++++ icons/opcos/beckman.svg | 81 ++++++++++++++++++++++++++++ icons/opcos/idbs.svg | 26 +++++++++ icons/opcos/idt.svg | 105 +++++++++++++++++++++++++++++++++++++ icons/opcos/leica.svg | 31 +++++++++++ icons/opcos/moldev.svg | 67 +++++++++++++++++++++++ icons/opcos/phenomenex.svg | 49 +++++++++++++++++ icons/opcos/sciex.svg | 24 +++++++++ 9 files changed, 448 insertions(+) create mode 100644 icons/opcos/abcam.svg create mode 100644 icons/opcos/aldevron.svg create mode 100644 icons/opcos/beckman.svg create mode 100644 icons/opcos/idbs.svg create mode 100644 icons/opcos/idt.svg create mode 100644 icons/opcos/leica.svg create mode 100644 icons/opcos/moldev.svg create mode 100644 icons/opcos/phenomenex.svg create mode 100644 icons/opcos/sciex.svg diff --git a/icons/opcos/abcam.svg b/icons/opcos/abcam.svg new file mode 100644 index 0000000..83d6190 --- /dev/null +++ b/icons/opcos/abcam.svg @@ -0,0 +1,27 @@ + + + + + + + + + + diff --git a/icons/opcos/aldevron.svg b/icons/opcos/aldevron.svg new file mode 100644 index 0000000..22d8f67 --- /dev/null +++ b/icons/opcos/aldevron.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/opcos/beckman.svg b/icons/opcos/beckman.svg new file mode 100644 index 0000000..8134a39 --- /dev/null +++ b/icons/opcos/beckman.svg @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/opcos/idbs.svg b/icons/opcos/idbs.svg new file mode 100644 index 0000000..fde611d --- /dev/null +++ b/icons/opcos/idbs.svg @@ -0,0 +1,26 @@ + + + + + + + + + + diff --git a/icons/opcos/idt.svg b/icons/opcos/idt.svg new file mode 100644 index 0000000..cde0e34 --- /dev/null +++ b/icons/opcos/idt.svg @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/opcos/leica.svg b/icons/opcos/leica.svg new file mode 100644 index 0000000..e2c43be --- /dev/null +++ b/icons/opcos/leica.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + diff --git a/icons/opcos/moldev.svg b/icons/opcos/moldev.svg new file mode 100644 index 0000000..d44675c --- /dev/null +++ b/icons/opcos/moldev.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/opcos/phenomenex.svg b/icons/opcos/phenomenex.svg new file mode 100644 index 0000000..fecb75e --- /dev/null +++ b/icons/opcos/phenomenex.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/icons/opcos/sciex.svg b/icons/opcos/sciex.svg new file mode 100644 index 0000000..31b3872 --- /dev/null +++ b/icons/opcos/sciex.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + From e112434ae9d63e7dfffe32b98a1591c9ebd96f80 Mon Sep 17 00:00:00 2001 From: Dave Nichols Date: Tue, 13 Aug 2024 10:42:51 +0100 Subject: [PATCH 5/7] Updated links and css to match above --- blocks/footer/footer.css | 2 +- blocks/footer/footer.js | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/blocks/footer/footer.css b/blocks/footer/footer.css index e9caa2f..37eaacf 100644 --- a/blocks/footer/footer.css +++ b/blocks/footer/footer.css @@ -71,7 +71,7 @@ display: flex; flex-wrap: wrap; justify-content: space-between; - background-color: black; + background-color: #1a1919; color: #fff; justify-content: center; } diff --git a/blocks/footer/footer.js b/blocks/footer/footer.js index ba5f149..a2f4496 100644 --- a/blocks/footer/footer.js +++ b/blocks/footer/footer.js @@ -75,19 +75,19 @@ export default async function decorate(block) { link.classList.add('text-normal'); } }); - + https://www.idtdna.com/pages?utm_source=dhls_website&utm_medium=referral&utm_content=header&ajs_aid=49525b0f-92aa-40b6-aed8-3bbe4bfca573 function footerOpco() { const ulElement = document.createElement('ul'); const items = [ - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_1b4cb13c1b58a2aa9440c48591885c2d142ef2ad9.svg?width=2000&format=webply&optimize=medium', alt: 'Abcam' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_1bdcd4f292eff7c94564c2edabbe6f2990b7c2771.svg?width=2000&format=webply&optimize=medium', alt: 'Beckman' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_18ce6e6ac9fa86b1e38dd5d5aa2c26739f7699a7a.svg?width=2000&format=webply&optimize=medium', alt: 'IDBS' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_17e0c34915747b51dc4f3b1d6115a354a005f7811.svg?width=2000&format=webply&optimize=medium', alt: 'Leica' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_14551887088f7666163b3db5b7c4563db95aeba9c.svg?width=2000&format=webply&optimize=medium', alt: 'MolDev' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_16925698572ba5cd9b64350134f680855a9896f9f.svg?width=2000&format=webply&optimize=medium', alt: 'Phenomenex' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_190d426a0f0258e8636507a15d8aedfaed8649fc1.svg?width=2000&format=webply&optimize=medium', alt: 'Sciex' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_142f5f1953984f372a389eba53a44db24cebcd3a8.svg?width=2000&format=webply&optimize=medium', alt: 'Aldevron' }, - { href: 'https://www.aldevron.com/?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: 'https://lifesciences.danaher.com/media_1dfadbb273bd8868ca3659447071c5aeee1525cbf.svg?width=2000&format=webply&optimize=medium', alt: 'IDT' }, + { href: 'https://www.abcam.com?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: '../../icons/opcos/abcam.svg', alt: 'Abcam' }, + { href: 'https://www.beckman.com?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: '../../icons/opcos/beckman.svg', alt: 'Beckman' }, + { href: 'https://www.idbs.com?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: '../../icons/opcos/idbs.svg', alt: 'IDBS' }, + { href: 'https://www.leica-microsystems.com?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: '../../icons/opcos/leica.svg', alt: 'Leica' }, + { href: 'http://www.moleculardevices.com?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: '../../icons/opcos/moldev.svg', alt: 'MolDev' }, + { href: 'http://www.phenomenex.com?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: '../../icons/opcos/phenomenex.svg', alt: 'Phenomenex' }, + { href: 'https://sciex.com?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: '../../icons/opcos/sciex.svg', alt: 'Sciex' }, + { href: 'https://www.aldevron.com?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: '../../icons/opcos/aldevron.svg', alt: 'Aldevron' }, + { href: 'https://www.idtdna.com?utm_source=aldevron_website&utm_medium=referral&utm_content=footer', src: '../../icons/opcos/idt.svg', alt: 'IDT' }, ]; items.forEach((item) => { const liElement = document.createElement('li'); @@ -97,6 +97,7 @@ export default async function decorate(block) { const imgElement = document.createElement('img'); imgElement.src = item.src; imgElement.alt = item.alt; + imgElement.loading = 'lazy'; aElement.appendChild(imgElement); liElement.appendChild(aElement); ulElement.appendChild(liElement); From 42d86ddb1acd03c121776239ff0f24795d2babab Mon Sep 17 00:00:00 2001 From: Dave Nichols Date: Tue, 13 Aug 2024 15:15:58 +0100 Subject: [PATCH 6/7] Change to fix code --- blocks/footer/footer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/footer/footer.js b/blocks/footer/footer.js index a2f4496..7fabce4 100644 --- a/blocks/footer/footer.js +++ b/blocks/footer/footer.js @@ -75,7 +75,8 @@ export default async function decorate(block) { link.classList.add('text-normal'); } }); - https://www.idtdna.com/pages?utm_source=dhls_website&utm_medium=referral&utm_content=header&ajs_aid=49525b0f-92aa-40b6-aed8-3bbe4bfca573 + + // eslint-disable-next-line function footerOpco() { const ulElement = document.createElement('ul'); const items = [ From 84b8faffd8e9305a6b42b9869fcd5409fb6c14d9 Mon Sep 17 00:00:00 2001 From: Dave Nichols Date: Tue, 13 Aug 2024 15:23:12 +0100 Subject: [PATCH 7/7] Changed styling and fixed lint issues --- blocks/footer/footer.css | 6 ++---- styles/template.css | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/blocks/footer/footer.css b/blocks/footer/footer.css index 37eaacf..2d901b7 100644 --- a/blocks/footer/footer.css +++ b/blocks/footer/footer.css @@ -70,10 +70,9 @@ .footer-opco { display: flex; flex-wrap: wrap; - justify-content: space-between; + justify-content: center; background-color: #1a1919; color: #fff; - justify-content: center; } .footer-opco ul { @@ -101,9 +100,8 @@ .footer-opco img { max-width: 100%; - height: auto; - filter: brightness(0) invert(1); height: 37px; + filter: brightness(0) invert(1); } @media (max-width: 768px) { diff --git a/styles/template.css b/styles/template.css index bc1a1f2..9cdbbba 100644 --- a/styles/template.css +++ b/styles/template.css @@ -730,7 +730,7 @@ body.sidebar-50 #sidebar { #footer-black { padding: 30px 0 40px; text-align: center; - /* width: 85%; */ + width: 85%; } #footer-black #footer-logo {