completed 404 error page

This commit is contained in:
vedatakd 2021-01-09 14:01:02 +03:00
parent 7be51d9cd8
commit 24db694df3
7 changed files with 74 additions and 2 deletions

View File

@ -0,0 +1,20 @@
body {
height: 100vh;
background: rgb(255, 255, 255);
background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(246, 246, 246, 1) 100%);
}
.color-error-message {
color: #555555;
}
.error-image {
max-width: 400px;
}
.error-btn-home {
color: #212529 !important;
font-weight: bold;
border: 2px solid #555555 !important;
text-decoration: none !important;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,7 @@
<?php
return [
'404_title' => 'Not Found',
'404_message' => 'The page you were looking for was not found.',
'home_page' => 'Go to Home Page',
];

View File

@ -0,0 +1,22 @@
{% extends "visiosoft.theme.base::layouts/error" %}
{% block styles %}
{{ asset_style('visiosoft.theme.base::css/error.css') }}
{% endblock %}
{% block content %}
<div class="container h-100 align-items-center d-flex">
<div class="col-12 bg-white shadow p-5 rounded text-center">
<img src="{{ img('visiosoft.theme.base::images/errors/404.png').url }}" class="w-100 error-image" alt="404">
<h3 class="h3 mb-3 font-weight-bold">{{ trans('visiosoft.theme.base::errors.404_title') }}</h3>
<h5 class="h5 mb-3 font-weight-bold color-error-message">{{ trans('visiosoft.theme.base::errors.404_message') }}</h5>
<div class="py-4">
<a class="error-btn-home rounded px-3 py-2" href="{{ url('/') }}"> {{ trans('visiosoft.theme.base::errors.home_page') }}</a>
</div>
{% if auth_check() %}
<a class="text-white bg-dark border rounded px-3 py-2" href="{{ url('/') }}">{{ trans('visiosoft.theme.base::field.logout.name') }}</a>
{% endif %}
<span class="small font-weight-bold mt-3 d-block text-muted">{{ setting_value('streams::domain', 'openclassify.com') }}</span>
</div>
{% endblock %}

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="nojs ms lt_ie7" lang="{{ config('app.locale') }}"><![endif]-->
<!--[if IE 7]>
<html class="nojs ms ie7" lang="{{ config('app.locale') }}"><![endif]-->
<!--[if IE 8]>
<html class="nojs ms ie8" lang="{{ config('app.locale') }}"><![endif]-->
<!--[if gt IE 8]>
<html class="nojs ms" lang="{{ config('app.locale') }}"><![endif]-->
<html lang="{{ config('app.locale') }}">
<head>
{% include "visiosoft.theme.base::partials/metadata" %}
{% block styles %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>

View File

@ -127,8 +127,7 @@ class BaseThemeServiceProvider extends AddonServiceProvider
* @type array|null
*/
protected $mobile = [
//'streams::errors/404' => 'module::mobile/errors/404',
//'streams::errors/500' => 'module::mobile/errors/500',
'streams::errors/404' => 'visiosoft.theme.base::errors/404',
'anomaly.module.users::login' => 'visiosoft.theme.base::addons/anomaly/users-module/login',
'anomaly.module.users::register' => 'visiosoft.theme.base::addons/anomaly/users-module/register',
'anomaly.module.users::password/forgot' => 'visiosoft.theme.base::addons/anomaly/users-module/password/forgot',