Skip to content

Commit 3c3abb3

Browse files
dandimeodandimeo
and
dandimeo
authored
[DOC-565] 404 page (#247)
* first 404 implemenetaiton * fix: add missing / at homepage redirect * finish not found implementation * get rid of page-loading system in 404.html --------- Co-authored-by: dandimeo <daniele@arangodb.com>
1 parent aead939 commit 3c3abb3

File tree

3 files changed

+44
-10
lines changed

3 files changed

+44
-10
lines changed

site/themes/arangodb-docs-theme/layouts/404.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
</head>
1111

1212
<body>
13-
<div id="show-page-loading">
14-
<div class="logo-loading-page">
15-
<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>
16-
</div>
17-
<div class="loader"></div>
18-
</div>
1913
<div id="page-wrapper" class="page_content_splash" style="height: auto;opacity: 0;">
2014
<section id="page-main">
2115
<section class="page-container" id="page-container">
Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
<section class="page-container" id="page-container">
22
<div class="container-main">
3-
<div class="row-main">
4-
<article>Not found</article>
5-
</div>
3+
<div class="notfound">
4+
<div class="flex-block-wrapper">
5+
6+
<div class="notfound-404">
7+
<p class="notfound-4">4</p>
8+
<img id="notfound-image" src="{{ "images/sad-avocado.png" | relURL }}" alt="Page not found!">
9+
<p class="notfound-4">4</p>
10+
</div>
11+
<hgroup>
12+
<h3 style="text-align: center;">Oops… Avocados are not growing here</h1>
13+
</hgroup>
14+
<p style="text-align: center;">
15+
<a href="{{ site.BaseURL }}/stable">Back to Home</a>
16+
</p>
17+
</div>
18+
</article>
619
</div>
720
</section>

site/themes/arangodb-docs-theme/static/css/theme.css

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ img {
258258
opacity: 1;
259259
transition: opacity 0.5s;
260260
height: auto !important;
261-
width: auto !important;
261+
width: auto;
262262
max-height: 100%;
263263
}
264264

@@ -1260,6 +1260,15 @@ article.default, article.chapter, article.home {
12601260
max-width: 800px;
12611261
}
12621262

1263+
article.notfound {
1264+
margin: auto;
1265+
margin-top: 7rem;
1266+
min-height: 600px;
1267+
grid-area: article;
1268+
width: calc(80vw - 440px);
1269+
max-width: 800px;
1270+
}
1271+
12631272
@media screen and (max-width: 768px) {
12641273
article.default, article.chapter, article.home {
12651274
width: 100vw;
@@ -2065,6 +2074,24 @@ nav.pagination .next {
20652074
margin: 0 !important;
20662075
}
20672076

2077+
/* 404 page */
2078+
.flex-block-wrapper {
2079+
margin-top: 9rem;
2080+
}
2081+
2082+
.notfound-404 {
2083+
display: flex;
2084+
font-size: 10rem;
2085+
align-items: center;
2086+
justify-content: center;
2087+
margin-bottom: 4rem;
2088+
}
2089+
2090+
#notfound-image {
2091+
display: block;
2092+
width: 9rem;
2093+
}
2094+
20682095
.ag-banner {
20692096
display: flex;
20702097
align-items: center;

0 commit comments

Comments
 (0)