This commit is contained in:
aichy126 2022-11-29 18:25:25 +08:00
parent 3c93f569cc
commit 77a6d2d16d
1 changed files with 59 additions and 0 deletions

59
ui/template/404.html Normal file
View File

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="manifest" href="/manifest.json"/>
<link href="{{.cssPath}}" rel="stylesheet" />
<!-- <script defer="defer" src="{{.scriptPath}}"></script> -->
</head>
<body><noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root">
<nav id="header" class="sticky-top navbar navbar-expand-lg navbar-dark">
<div class="d-flex align-items-center container">
<button aria-controls="navBarContent" id="navBarToggle" type="button" aria-label="Toggle navigation"
class="answer-navBar me-2 navbar-toggler collapsed">
<span class="navbar-toggler-icon"></span>
</button>
<div class="d-flex justify-content-between align-items-center nav-grow flex-nowrap">
<a class="lh-1 me-0 me-sm-3 navbar-brand" href="/"><img
class="d-none d-lg-block logo rounded-1 me-0"
src="https://answer.dev.segmentfault.com/uploads/branding/4Gud8KXBXA9.png" alt="" /><img
class="lg-none logo rounded-1 me-0"
src="https://answer.dev.segmentfault.com/uploads/branding/4GxqyBKy6hu.png" alt="" /></a>
</div>
<div class="me-auto navbar-collapse collapse" id="navBarContent">
<hr class="hr lg-none mb-2" style="margin-top: 12px" />
<div class="col-md-4">
<div class="navbar-nav">
<a class="nav-link" href="/questions">Questions</a><a class="nav-link" href="/tags">Tags</a>
</div>
</div>
<hr class="hr lg-none mt-2" />
</div>
</div>
</nav>
<div class="position-relative page-wrap">
<div class="d-flex flex-column justify-content-center align-items-center page-wrap container">
<div class="mb-4 text-secondary" style="font-size: 120px; line-height: 1.2;">(=x=)</div>
<div class="text-center mb-4">Unfortunately, this page doesn't exist.</div>
<div class="text-center"><a role="button" tabindex="0" href="/" class="btn btn-link">Back to
homepage</a></div>
</div>
</div>
<div class="d-flex justify-content-center"
style="position: fixed; top: 90px; left: 0px; right: 0px; margin: auto; z-index: 5;"></div>
<footer class="bg-light py-3">
<div class="container">
<p class="text-center mb-0 fs-14 text-secondary">Built on <a href="https://answer.dev/" target="_blank">
Answer </a>- the open-source software that power Q&amp;A communities<br>Made with love © 2022
Answer</p>
</div>
</footer>
</div>
</body>
</html>