From 1e116d88473445f8d9da99f3a09c6a22708405ba Mon Sep 17 00:00:00 2001 From: Dragan Dimic Date: Fri, 7 Jun 2024 12:10:49 +0200 Subject: [PATCH 1/3] Logo added and 404 page now has VAT messaging and markup --- 404.html | 22 +++++++++++++++------- icons/vat-logo.svg | 14 ++++++++++++++ 2 files changed, 29 insertions(+), 7 deletions(-) create mode 100644 icons/vat-logo.svg diff --git a/404.html b/404.html index 3baecc8..da4dc72 100644 --- a/404.html +++ b/404.html @@ -52,13 +52,21 @@
- - 404 - -

Page Not Found

-

- Go home -

+
+
+

404 Page Not Found

+

Sorry, this page is not available — try searching again or navigate back to the homepage.

+
+
+
+
+
+
+
+ +
+
diff --git a/icons/vat-logo.svg b/icons/vat-logo.svg new file mode 100644 index 0000000..d56a842 --- /dev/null +++ b/icons/vat-logo.svg @@ -0,0 +1,14 @@ + + + Group + + + + + + + + + \ No newline at end of file From 88f2738957c95085f990e692bf30ab62a2f7f5aa Mon Sep 17 00:00:00 2001 From: Dragan Dimic Date: Fri, 7 Jun 2024 12:43:11 +0200 Subject: [PATCH 2/3] VAT-1: exception added for logotypes. they should not be transformed into buttons. --- scripts/aem.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/aem.js b/scripts/aem.js index 3aef990..7bae25a 100644 --- a/scripts/aem.js +++ b/scripts/aem.js @@ -424,8 +424,9 @@ function decorateButtons(element) { if (a.href !== a.textContent) { const up = a.parentElement; const twoup = a.parentElement.parentElement; + const parentIsLogo = a.closest('logo.block'); if (!a.querySelector('img')) { - if (up.childNodes.length === 1 && (up.tagName === 'P' || up.tagName === 'DIV')) { + if (up.childNodes.length === 1 && (up.tagName === 'P' || up.tagName === 'DIV') && !parentIsLogo) { a.className = 'button'; // default up.classList.add('button-container'); } From 7e5700b4de96a09a258b0c33ce3a277f541d6ac2 Mon Sep 17 00:00:00 2001 From: Dragan Dimic Date: Fri, 7 Jun 2024 13:03:28 +0200 Subject: [PATCH 3/3] VAT-1: centering the 404 error message --- styles/styles.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/styles/styles.css b/styles/styles.css index ff5fa54..ab8af70 100644 --- a/styles/styles.css +++ b/styles/styles.css @@ -224,3 +224,8 @@ main .section.light, main .section.highlight { background-color: var(--light-color); } + +.error .container-fluid-container { + margin-left: auto; + margin-right: auto; +}