Skip to content

Commit

Permalink
feat: Add 404.html
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewscwei committed Sep 19, 2024
1 parent f84a7cd commit 14690fe
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- name: Deploy to GitHub pages
uses: andrewscwei/actions/gh-pages-deploy@v2
with:
cname: ${{ vars.CNAME }}
deploy-path: public
notify:
name: Notify
Expand Down
23 changes: 23 additions & 0 deletions src/static/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en" style="width:100%;height:100%;background:#b7b7b7;">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0;url=/">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,viewport-fit=cover">
<title>404</title>
</head>
<body style="display:flex;flex-direction:column;width:100%;height:100%;justify-content:center;align-items:center;margin:0;padding:0;color:#222222;">
<h1 style="display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;font-family:monospace;white-space:pre;">
<span>⢀⣴⣶⣶⡄⠀⢀⣴⣶⣶⣄⠀⠀⣤⣶⣶⣤⠀⠀⠀⠀⠀⠀⠀⠀⢠⣶⣶⣦⡀</span>
<span>⢺⣿⣿⣿⣿⠀⢸⣿⣿⣿⣿⠀⠸⣿⣿⣿⣿⠇⠀⠀⠀⠀⠀⠀⠀⢿⣿⣿⣿⡿</span>
<span>⠈⠙⠻⠛⠁⠀⠀⠙⠛⠛⠁⠀⠀⠙⠛⠟⠋⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⠟⠛⠁</span>
<span>⢀⣤⣶⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣶⣄⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣶⣤⡀</span>
<span>⢺⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠰⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣿⡷</span>
<span>⠈⠛⠿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⠟⠋⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⠿⠛⠁</span>
<span>⢀⣠⣤⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣤⣄⠀⠀⢀⣤⣤⣄⠀⠀⢀⣤⣤⣤⡀</span>
<span>⢼⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⡆⠀⣿⣿⣿⣿⡇⠀⣾⣿⣿⣿⣷</span>
<span>⠈⠻⠿⠿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠛⠿⠿⠛⠀⠀⠙⠿⠿⠟⠁⠀⠘⠻⠿⠟⠃</span>
</h1>
<p style="margin-top:24px;line-height:24px;font-size:12px;max-width:80%;font-family:monospace;text-align:center;">If you're not redirected automatically, <a href="/" style="color:#222222">click here</a>.</p>
</body>
</html>
1 change: 0 additions & 1 deletion src/static/_redirects

This file was deleted.

0 comments on commit 14690fe

Please sign in to comment.