Browse Source

调整404页面风格及图标

pull/168/head^2
OpenIhu 3 years ago
parent
commit
6385826c65
2 changed files with 8 additions and 8 deletions
  1. BIN
      custom/public/img/icon-404@2x.png
  2. +8
    -8
      templates/status/404.tmpl

BIN
custom/public/img/icon-404@2x.png View File

Before After
Width: 548  |  Height: 452  |  Size: 55 kB

+ 8
- 8
templates/status/404.tmpl View File

@@ -1,12 +1,12 @@
{{template "base/head" .}}
{{if .IsRepo}}<div class="repository">{{template "repo/header" .}}</div>{{end}}
<div class="ui container center" style="background:url({{StaticUrlPrefix}}/img/404.png) no-repeat center center fixed;margin-bottom:-80px;height: 100%;width:100%;overflow: hidden;background-size: cover;margin:0!important">
<div style="height:100%;color:white">
<div style="padding-top: 50vh">
<div class="ui divider"></div>
<br>
<p>{{.i18n.Tr "error404" | Safe}}
{{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
</div>

<div class="ui container center" style="min-height: 70%;">
<img class="ui centered medium image" src="{{StaticUrlPrefix}}/img/icon-404@2x.png">
<div class="ui basic segment">
<h2>您的访问受限!</h2>
<p>{{.i18n.Tr "error404" | Safe}}</p>
</div>
</div>

{{template "base/footer" .}}

Loading…
Cancel
Save