Changes:
1. integrates pico minimal responsive css framework for light/dark
themes and overall better looks.
2. adds a not-found page for bad url queries.
3. catches axum/serde deserialization errors of user input and routes
them to the not-found page with a helpful hint (parse error msg)
37 lines
760 B
HTML
37 lines
760 B
HTML
<html>
|
|
|
|
<head>
|
|
<title>Neptune Block Explorer: Not Found</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" type="text/css" href="/css/pico.min.css" media="screen" />
|
|
<link rel="stylesheet" type="text/css" href="/css/styles.css" media="screen" />
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main class="container">
|
|
|
|
<article>
|
|
<header class="center-text"><h3>Not found</h3></header>
|
|
<section>
|
|
These are not the droids you're looking for.
|
|
</section>
|
|
|
|
%% if self.error_msg.len() > 0 {
|
|
<section>
|
|
Hint: {{self.error_msg}}
|
|
</section>
|
|
%% }
|
|
</article>
|
|
|
|
<article>
|
|
<p>
|
|
<a href="/">Home</a>
|
|
| <a href='/block/genesis'>Genesis</a>
|
|
| <a href='/block/tip'>Tip</a>
|
|
</p>
|
|
</article>
|
|
|
|
</main>
|
|
</body>
|
|
</html> |