diff --git a/blocks/footer/footer.js b/blocks/footer/footer.js index 4eaf0888..fd5910ae 100644 --- a/blocks/footer/footer.js +++ b/blocks/footer/footer.js @@ -27,6 +27,17 @@ export default async function decorate(block) { } }); + const formSection = footer.querySelector('.footer-form'); + if (formSection.textContent.trim() === '.') { + formSection.style.display = 'none'; + formSection.closest('section').setAttribute('style', ` + grid-template: + "links social" auto + "links social" auto + "copyright copyright" auto / 2fr 1fr; + `); + } + // decorate social const social = footer.querySelector('.footer-social'); if (social) {