1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

error pages

This commit is contained in:
codecalm
2019-12-15 17:17:21 +01:00
parent fd0c468289
commit 81eb1abd8e
13 changed files with 359 additions and 644 deletions

Binary file not shown.

909
dist/css/tabler.css vendored

File diff suppressed because it is too large Load Diff

Binary file not shown.

6
pages/400.html Normal file
View File

@@ -0,0 +1,6 @@
---
title: Page 400
layout: error
error: 400
done: true
---

6
pages/401.html Normal file
View File

@@ -0,0 +1,6 @@
---
title: Page 401
layout: error
error: 401
done: true
---

6
pages/403.html Normal file
View File

@@ -0,0 +1,6 @@
---
title: Page 403
layout: error
error: 403
done: true
---

6
pages/500.html Normal file
View File

@@ -0,0 +1,6 @@
---
title: Page 500
layout: error
error: 500
done: true
---

6
pages/503.html Normal file
View File

@@ -0,0 +1,6 @@
---
title: Page 503
layout: error
error: 503
done: true
---

View File

@@ -1,8 +1,23 @@
400: We are sorry but your request contains bad syntax and cannot be fulfilled 400:
401: We are sorry but you are not authorized to access this page title: 400
403: We are sorry but you do not have permission to access this page description: We are sorry but your request contains bad syntax and cannot be fulfilled
404: We are sorry but the page you are looking for was not found 401:
500: We are sorry but our server encountered an internal error title: 401
503: We are sorry but our service is currently not available description: We are sorry but you are not authorized to access this page
maintenance: Sorry, were down for maintenance. 403:
title: 403
description: We are sorry but you do not have permission to access this page
404:
title: 404
description: We are sorry but the page you are looking for was not found
500:
title: 500
description: We are sorry but our server encountered an internal error
503:
title: 503
description: We are sorry but our service is currently not available
maintenance:
illustration: undraw_bug_fixing_oc7a.svg
header: Temporarily down for maintenance
description: Sorry for the inconvenience but were performing some maintenance at the moment. Well be back online shortly!

View File

@@ -17,6 +17,7 @@
</p> </p>
<div class="empty-action"> <div class="empty-action">
{% assign button-text = include.button-text | default: "Search again" %} {% assign button-text = include.button-text | default: "Search again" %}
{% include_cached ui/button.html text=button-text color="primary" icon=include.button-icon %} {% assign button-icon = include.button-icon | default: "search" %}
{% include_cached ui/button.html text=button-text color="primary" icon=button-icon %}
</div> </div>
</div> </div>

View File

@@ -3,5 +3,8 @@ layout: base
body-class: border-top-2 border-primary body-class: border-top-2 border-primary
--- ---
<div class="d-flex align-items-center justify-content-center min-vh-100">
{% assign error = site.data.errors[page.error] %} {% assign error = site.data.errors[page.error] %}
{% include ui/empty.html icon="settings" icon-text=page.error title="Oops&hellip; You just found an error page" subtitle=error %} {% assign header = error.header | default: 'Oops&hellip; You just found an error page' %}
{% include ui/empty.html icon="settings" illustration=error.illustration icon-text=error.title title=header subtitle=error.description button-icon="arrow-left" button-text="Take me home" %}
</div>

View File

@@ -4,9 +4,13 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
padding: 3rem; padding: 1rem;
text-align: center; text-align: center;
@include media-breakpoint-up(md) {
padding: 3rem;
}
.empty-icon { .empty-icon {
margin: 0 0 1rem; margin: 0 0 1rem;
font-size: 2rem; font-size: 2rem;

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 40 KiB