Skip to content

Commit

Permalink
refactor(ui): 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
lotusk08 committed May 18, 2024
1 parent ab09f3b commit 39a8fd2
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ timezone: Asia/Saigon

title: Steve Hoang # the main title

tagline: A blog from my life, my story, my journey. # it will display as the sub-title
tagline: A blog from my life, my story, and my journey. # it will display as the sub-title

description: >- # used by seo meta and the atom feed
Life's too short to sweat the small stuff. Enjoy yourself, fall in love, and embrace every moment without regrets. Don't let anyone dim your shine. Live the life you've always dreamed of!
Expand Down
16 changes: 14 additions & 2 deletions assets/404.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: page
title: "404: Page not found"
title: "404 - Page not found"
permalink: /404.html

redirect_from:
Expand All @@ -11,4 +11,16 @@

{% include lang.html %}

<p class="lead">{{ site.data.locales[lang].not_found.statment }}</p>
<div class="wrapper">
<main aria-label="Content">
<div class="not-found">
<div class="container">
<div class="title">404</div>
<p>😕 Hmm... Seems you lost from my journey.</p>
<a href="{{ site.url }}">back home ➔</a>
</div>
</div>
</main>
</div>
</body>
</html>
28 changes: 28 additions & 0 deletions assets/css/jekyll-theme-chirpy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,31 @@
';

/* append your custom style below */

/* 404 CSS */
/* Wrapper */
.wrapper {
max-width: -webkit-calc(100% - (20px * 2));
max-width: calc(100% - (20px * 2));
position: relative;
margin-right: auto;
margin-left: auto;
padding-right: 20px;
padding-left: 20px;
}

/* Not Found */
.not-found {
text-align: center;
display: flex;
justify-content: center;
flex-direction: column;
height: 65vh;
}

.not-found .title {
font-size: 5em;
font-weight: bold;
line-height: 1.1;
text-shadow: 1px 0px 0px var(--sidebar-active-color);
}

0 comments on commit 39a8fd2

Please sign in to comment.