Skip to content

Commit 06b8033

Browse files
KenniMartinezMKenniMjohnsmartco
authored
Fix 404 encoding (#61)
* Initial rebranding styles Changed header and footer background color for both light and dark modes * Initial rebranding styles * Fixing styles The headings should no longer be underlined and cards should now show have black as font color in dark mode * Fixes in links The links and titles should now show properly in cards for both dark and light modes * Rebranding styles This commit includes multiple changes for the rebranding styles, like changing some colors. * The right content bar should now be sticky to the page, making it always available with no need to scroll to the top * Collapse and Expand all buttons has been added for the left navbar * The GCX code component should now take all the entire height from the body space on the website. * The code blocks should no longer have bold font * New 404 docs design This commit includes the new content and style applied to the antora 404 page. * Update 404.hbs This update includes the relative paths used on the live server * Update 404.hbs Changed location to /en/home * 404 footer fix The footer for the 404 page should now be fixed at the bottom of the device * 404 Fixes Fixed 404 design for mobile and error on console fixed * Update 404.hbs Testing permissions * Update 404.hbs Fixed relative paths on 404 page * Updated 404.hbs This should fix the encoding for this page. * Change L88 to use single plain quote in the word can't --------- Co-authored-by: Kenni Martínez <[email protected]> Co-authored-by: John Smart <[email protected]>
1 parent e9162da commit 06b8033

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

gcx/styles/src/layouts/404.hbs

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<link rel="stylesheet" href="/en/home/assets/css/site.css">
88
<title>Oops! We can't find that page {{#with site.title}} :: {{this}}{{/with}}</title>
99
<meta name="viewport" content="width=device-width, initial-scale=1.0">
10+
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
1011
</head>
1112

1213
<body class="article status-404">
1314
<header class="header">
1415
<nav class="navbar">
1516
<div class="navbar-brand">
16-
<!-- <a href="{{{or site.url (or siteRootUrl siteRootPath)}}}"> -->
1717
<a href="https://docs.datastax.com">
1818
<img src="/en/home/assets/img/logo.svg" alt="">
1919
</a>
@@ -85,7 +85,7 @@
8585
margin-top: 6rem;
8686
margin-bottom: 6rem;
8787
">
88-
<h1 class="page" style="font-size: calc(2rem + 2px);">Oops! We cant find that page. </h1>
88+
<h1 class="page" style="font-size: calc(2rem + 2px);">Oops! We can't find that page. </h1>
8989
<div class="paragraph">
9090
<p style="font-size: calc(1rem + 2px); text-align: justify;">The page you're looking for doesn't exist. It might have been moved or
9191
maybe there was a typo in the URL. If you typed the URL of this page manually, please double check that you
@@ -210,22 +210,6 @@ window.addEventListener('DOMContentLoaded', (event) => {
210210
}
211211
212212
document.addEventListener('click', function (event) {
213-
//No es un clic en el sidebar
214-
//if (!event.target.matches('li[data-depth="1"]') && !event.target.matches('.switch')) return;
215-
/* if (event.target.closest('li.nav-item.toggler')) {
216-
console.log(event.target)
217-
event.target.closest('li.nav-item.toggler').classList.toggle('is-active')
218-
}
219-
/*if ((event.target.matches('span.nav-text') ||
220-
event.target.matches('button.nav-item-toggle')) &&
221-
(event.target.offsetParent.matches('li[data-depth="1"]') ||
222-
event.target.offsetParent.matches('li[data-depth="0"]'))) {
223-
event.target.offsetParent.classList.toggle('is-active');
224-
}
225-
if (event.target.matches('li[data-depth="1"]') ||
226-
event.target.matches('li[data-depth="0"]')) {
227-
event.target.classList.toggle('is-active');
228-
}*/
229213
if (event.target.matches('.switch')) {
230214
var root = document.getElementsByTagName('html')[0]
231215
if (event.target.checked) {
@@ -239,4 +223,4 @@ window.addEventListener('DOMContentLoaded', (event) => {
239223
}, false)
240224
})
241225
</script>
242-
</body>
226+
</body>

0 commit comments

Comments
 (0)