Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(portal): Improve 404 page #73

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 24 additions & 61 deletions portal/static/404-page.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,68 +4,31 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>404 Walrus Site Not Found</title>
<style>
body,
html {
height: 100%;
margin: 0;
font-family: "Inter", sans-serif;
background-color: #f5f5f5;
color: #333;
}
.container {
position: relative;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
}
.headline {
font-size: 5em;
line-height: 1.2;
font-weight: bolder;
margin: 0;
padding: 5px;
}
.error {
background-color: #e53e3e;
color: white;
}
.description {
font-size: 1.5em;
margin: 20px 0;
}
.button {
display: inline-block;
padding: 1em 2em;
margin-top: 20px;
border: 2px solid #e53e3e;
color: #333;
text-decoration: none;
font-size: 1em;
transition: all 0.3s ease;
}
.button:hover {
background-color: #e53e3e;
color: #fff;
}
@media (max-width: 600px) {
.headline {
font-size: 2.5em;
}
.description {
font-size: 1.5em;
}
}
</style>
</head>
<body>
<div class="container">
<p class="headline error">404</p>
<p class="description">${message}</p>
<button onclick="history.back()" href="/" class="button">Go Back</button>
</div>
<main>
<div class="main-div">
<div class="content-div">
<div class="center InterTightMedium" style="color: #696969;">
<div style="font-size: 88px; line-height: 160%;">🙅🏽</div>
<div style="font-size: 16px; line-height: 160%;">This page does not exist</div>
<a href="https://walrus.site/" style="color: #696969; font-size: 16px; line-height: 160%;">Open Walrus.site</a>
</div>
</div>
<footer class="InterTightBold">
<div>
Copyright 2024 © Mysten Labs, Inc.
</div>
<div class="terms-policies">
<div>
Terms of Service
</div>
<div>
Privacy Policy
</div>
</div>
</footer>
</div>
</main>
</body>
</html>