Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat(404): update 404.html style
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq committed Feb 2, 2020
1 parent 517b734 commit 17bbe91
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
6 changes: 0 additions & 6 deletions assets/css/_core/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,3 @@
line-height: 1.5rem;
padding-top: 2rem;
}

.notfound {
font-size: 2rem;
transform: translateY(35vh);
text-align: center;
}
6 changes: 6 additions & 0 deletions assets/css/_page/_404.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.notfound {
font-size: 1.8rem;
line-height: 3rem;
transform: translateY(30vh);
text-align: center;
}
1 change: 1 addition & 0 deletions assets/css/_page/_index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "_home";
@import "_404";

.page {
position: relative;
Expand Down
8 changes: 2 additions & 6 deletions layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/home/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit 17bbe91

Please sign in to comment.