Skip to content

Commit

Permalink
Merge branch 'main' into update-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tdziezykDS committed Jun 7, 2024
2 parents 260685c + 1303d36 commit 5f9c1d1
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 8 deletions.
22 changes: 15 additions & 7 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,21 @@
<header></header>
<main class="error">
<div class="section">
<svg viewBox="1 0 38 18" class="error-number">
<text x="0" y="17">404</text>
</svg>
<h2 class="error-message">Page Not Found</h2>
<p class="button-container">
<a href="/" class="button secondary error-button-home">Go home</a>
</p>
<div class="container-fluid">
<div class="row">
<div class="col-12 col-md-8"><h1> 404 Page Not Found </h1>
<h3> Sorry, this page is not available — try searching again or navigate back to the homepage. </h3></div>
</div>
<div class="row">
<div class="col-12">
<div class="horizontal-divider mt-5 mt-md-10 mb-5 mb-md-10"></div>
</div>
</div>
<div class="row">
<div class="col-12"><a href="https://www.vatvalve.com" class="btn --primary --back --inline"> Go back </a>
</div>
</div>
</div>
</div>
</main>
<footer></footer>
Expand Down
14 changes: 14 additions & 0 deletions icons/vat-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion scripts/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
6 changes: 6 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,10 @@ main .section.highlight {
font-size:2.6rem;
line-height: 3rem
}

}

.error .container-fluid-container {
margin-left: auto;
margin-right: auto;
}

0 comments on commit 5f9c1d1

Please sign in to comment.