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

Feature: Update error pages to match modern TOP styling #3872

Merged
merged 3 commits into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
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
26 changes: 0 additions & 26 deletions public/400.html

This file was deleted.

100 changes: 78 additions & 22 deletions public/422.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,82 @@
<!DOCTYPE html>
<html>
<head>
<title>The change you wanted was rejected (422)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>
<head>
<title>Unprocessable entity | The Odin Project</title>
<style type="text/css">
html {
height: 100%;
}
body {
text-align: center;
font-family: Arial, Helvetica, sans-serif;
height: 100%;
margin: 0;
}
main {
display: grid;
place-items: center;
padding: 0rem 3rem;
min-height: 100%;
}
h1 {
margin-top: 1rem;
font-size: 3rem;
color: #111827;
line-height: 2.25rem;
font-weight: 700;
}
p {
font-size: 1rem;
}
.description {
line-height: 1.75rem;
margin-top: 1.5rem;
color: rgb(75, 85, 99);
}
.highlight {
color: rgb(169 121 43);
}
.button {
border-radius: 0.375rem;
background-color: rgb(15 118 110);
padding: 0.875rem 0.625rem;
color: white;
outline-style: solid;
}
.button:hover {
background-color: rgb(17 94 89);
}
.button:focus-visible {
outline-style: solid;
outline-width: 2px;
outline-offset: 2px;
outline-color: rgb(17 94 89);
}
div.container {
margin-top: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
column-gap: 1.5rem;
}
a {
text-decoration: none;
}
</style>
</head>

<body>
<!-- This file lives in public/422.html -->
<div class="dialog">
<h1>The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p>
</div>
</body>
<body>
<!-- This file lives in public/422.html -->
<main>
<div>
<p class="highlight">422</p>
<h1>Unprocessable entity</h1>
<p class="description">The change you wanted was rejected. Maybe you tried to change something you didn't have access to?</p>
<div class="container">
<a href="/home" class="button">Go back home</a>
<a href="https://github.com/TheOdinProject/theodinproject/issues/new/choose" class="highlight">Report an issue on GitHub <span aria-hidden="true">&rarr;</span></a>
</div>
</div>
</main>
</body>
</html>
99 changes: 78 additions & 21 deletions public/500.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,82 @@
<!DOCTYPE html>
<html>
<head>
<title>We're sorry, but something went wrong (500)</title>
<style type="text/css">
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
</style>
</head>
<head>
<title>Server error (500) | The Odin Project</title>
<style type="text/css">
Asartea marked this conversation as resolved.
Show resolved Hide resolved
html {
height: 100%;
}
body {
text-align: center;
font-family: Arial, Helvetica, sans-serif;
height: 100%;
margin: 0;
}
main {
display: grid;
place-items: center;
padding: 0rem 3rem;
min-height: 100%;
}
h1 {
margin-top: 1rem;
font-size: 3rem;
color: #111827;
line-height: 2.25rem;
font-weight: 700;
}
p {
font-size: 1rem;
}
.description {
line-height: 1.75rem;
margin-top: 1.5rem;
color: rgb(75, 85, 99);
}
.highlight {
color: rgb(169 121 43);
}
.button {
border-radius: 0.375rem;
background-color: rgb(15 118 110);
padding: 0.875rem 0.625rem;
color: white;
outline-style: solid;
}
.button:hover {
background-color: rgb(17 94 89);
}
.button:focus-visible {
outline-style: solid;
outline-width: 2px;
outline-offset: 2px;
outline-color: rgb(17 94 89);
}
div.container {
margin-top: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
column-gap: 1.5rem;
}
a {
text-decoration: none;
}
</style>
</head>

<body>
<!-- This file lives in public/500.html -->
<div class="dialog">
<h1>We're sorry, but something went wrong.</h1>
</div>
</body>
<body>
<!-- This file lives in public/500.html -->
<main>
<div>
<p class="highlight">500</p>
<h1 >Server error</h1>
<p class="description">We're sorry, but something went wrong.</p>
<div class="container">
<a href="/home" class="button">Go back home</a>
<a href="https://github.com/TheOdinProject/theodinproject/issues/new/choose" class="highlight">Report an issue on GitHub <span aria-hidden="true">&rarr;</span></a>
Asartea marked this conversation as resolved.
Show resolved Hide resolved
</div>
</div>
</main>
</body>
</html>