mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
feat(404): update 404.html style
This commit is contained in:
parent
517b734347
commit
17bbe91c6f
5 changed files with 10 additions and 13 deletions
|
@ -22,9 +22,3 @@
|
|||
line-height: 1.5rem;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
|
||||
.notfound {
|
||||
font-size: 2rem;
|
||||
transform: translateY(35vh);
|
||||
text-align: center;
|
||||
}
|
||||
|
|
6
assets/css/_page/_404.scss
Normal file
6
assets/css/_page/_404.scss
Normal file
|
@ -0,0 +1,6 @@
|
|||
.notfound {
|
||||
font-size: 1.8rem;
|
||||
line-height: 3rem;
|
||||
transform: translateY(30vh);
|
||||
text-align: center;
|
||||
}
|
|
@ -1,4 +1,5 @@
|
|||
@import "_home";
|
||||
@import "_404";
|
||||
|
||||
.page {
|
||||
position: relative;
|
||||
|
|
|
@ -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" -}}
|
||||
<a href="{{ .Site.BaseURL }}" title="{{ T "backToHome" }}">↩︎</a>
|
||||
</p>
|
||||
</div>
|
||||
<script>
|
||||
|
|
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue