feat(cosmetics): updated background for home and error page, updated title

This commit is contained in:
2022-08-02 19:33:15 +01:00
parent f843c196df
commit 06ef22a8bc
5 changed files with 58 additions and 8 deletions

View File

@@ -1,11 +1,15 @@
{{ define "extrabodyclass" }}
class="toxicGlow"
{{ end }}
{{ define "main" }}
<div id="spotlight" class="http-error animated fadeIn">
<div id="home-center">
<div class="banner-error">
<h1>STATUSCODE</h1>
<p>STATUSMSG</p>
<br>
<p class="btn-http-error">
<a href="{{.Site.BaseURL}}"><img class="feather" width="24" height="24" alt="home" src="{{"home.svg" | relURL}}"> {{ i18n "home" }}</a>
<a href="{{.Site.BaseURL}}"><img class="feather" width="48" height="48" alt="home" src="{{"arrow-left.svg" | relURL}}"> {{ i18n "home" }}</a>
</p>
</div>
</div>

View File

@@ -26,7 +26,7 @@
{{- end }}
</head>
<body id="page">
<body id="page" {{ block "extrabodyclass" . -}}{{ end -}}>
{{ block "header" . -}}{{ end -}}
{{ block "main" . -}}{{ end -}}
{{ block "footer" . -}}{{ end }}

View File

@@ -8,13 +8,17 @@
{{- end -}}
{{ end }}
{{ define "extrabodyclass" }}
class="toxicGlow"
{{ end }}
{{ define "main" }}
{{ if (or .Site.Params.images .Site.Params.bgImg) }}
<div class="bg-img"></div>
{{ end }}
<div id="spotlight" class="animated fadeIn">
<div id="home-center">
<h1 id="home-title">{{ .Site.Title }}</h1>
<h1 id="home-title">{{ .Site.Title }}:/ <span id="usrid">#</span><span id="caret">_</span></h1>
<hr>
{{ range .Site.Params.homeSubtitle }}
<p id="home-subtitle">{{ . }}</p>