feat(404): update 404.html style

This commit is contained in:
Dillon 2020-02-02 18:18:06 +08:00
parent 517b734347
commit 17bbe91c6f
5 changed files with 10 additions and 13 deletions

View file

@ -22,9 +22,3 @@
line-height: 1.5rem;
padding-top: 2rem;
}
.notfound {
font-size: 2rem;
transform: translateY(35vh);
text-align: center;
}

View file

@ -0,0 +1,6 @@
.notfound {
font-size: 1.8rem;
line-height: 3rem;
transform: translateY(30vh);
text-align: center;
}

View file

@ -1,4 +1,5 @@
@import "_home";
@import "_404";
.page {
position: relative;

View file

@ -6,12 +6,8 @@
<div class="notfound">
<h1 class="error-emoji"></h1>
<p class="error-text">
{{- T "pageNotFoundText" -}}
</p>
<p class="error-link">
<a href="{{ .Site.BaseURL }}">
{{- T "backToHome" | printf "← %s" -}}
</a>
{{- T "pageNotFoundText" -}}&nbsp;
<a href="{{ .Site.BaseURL }}" title="{{ T "backToHome" }}">↩︎</a>
</p>
</div>
<script>

View file

@ -8,7 +8,7 @@
{{- if $avatar -}}
<div class="home-avatar">
<a href="/posts">
<img src={{ $avatar | relURL }} alt="avatar">
<img src={{ $avatar | relURL }} alt="avatar" title="{{ T "home" }}">
</a>
</div>
{{- end -}}