Skip to content

[DOC-565] 404 page #247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions site/themes/arangodb-docs-theme/layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
</head>

<body>
<div id="show-page-loading">
<div class="logo-loading-page">
<img src="/images/logo_main.png" alt="ArangoDB" title="" style="position: fixed; top: 0px; left: 0; right: 0; bottom: 154px; margin: auto; width: 232px !important;"></a>
</div>
<div class="loader"></div>
</div>
<div id="page-wrapper" class="page_content_splash" style="height: auto;opacity: 0;">
<section id="page-main">
<section class="page-container" id="page-container">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
<section class="page-container" id="page-container">
<div class="container-main">
<div class="row-main">
<article>Not found</article>
</div>
<div class="notfound">
<div class="flex-block-wrapper">

<div class="notfound-404">
<p class="notfound-4">4</p>
<img id="notfound-image" src="{{ "images/sad-avocado.png" | relURL }}" alt="Page not found!">
<p class="notfound-4">4</p>
</div>
<hgroup>
<h3 style="text-align: center;">Oops… Avocados are not growing here</h1>
</hgroup>
<p style="text-align: center;">
<a href="{{ site.BaseURL }}/stable">Back to Home</a>
</p>
</div>
</article>
</div>
</section>
29 changes: 28 additions & 1 deletion site/themes/arangodb-docs-theme/static/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ img {
opacity: 1;
transition: opacity 0.5s;
height: auto !important;
width: auto !important;
width: auto;
max-height: 100%;
}

Expand Down Expand Up @@ -1260,6 +1260,15 @@ article.default, article.chapter, article.home {
max-width: 800px;
}

article.notfound {
margin: auto;
margin-top: 7rem;
min-height: 600px;
grid-area: article;
width: calc(80vw - 440px);
max-width: 800px;
}

@media screen and (max-width: 768px) {
article.default, article.chapter, article.home {
width: 100vw;
Expand Down Expand Up @@ -2065,6 +2074,24 @@ nav.pagination .next {
margin: 0 !important;
}

/* 404 page */
.flex-block-wrapper {
margin-top: 9rem;
}

.notfound-404 {
display: flex;
font-size: 10rem;
align-items: center;
justify-content: center;
margin-bottom: 4rem;
}

#notfound-image {
display: block;
width: 9rem;
}

.ag-banner {
display: flex;
align-items: center;
Expand Down