]> git.ardis.lu - minimal-routing/commitdiff
Add styling
authorArdis Lu <ardisglu@gmail.com>
Fri, 30 Sep 2022 04:20:27 +0000 (21:20 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 30 Sep 2022 04:20:27 +0000 (21:20 -0700)
errors/404.html

index 51f054ea2bfe5ed85ec1802b5b9d5f8312f47440..73c2ae2118ac946d65131fc72bb7d2a7bbd6e64b 100644 (file)
@@ -6,11 +6,41 @@
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <link rel="icon" href="data:,">
   <title>404 Not Found</title>
+  <style>
+    body {
+      font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
+      background: hsl(275deg 10% 90%);
+      color: hsl(275deg 90% 10%);
+      display: flex;
+      flex-direction: column;
+      align-items: center;
+    }
+
+    a {
+      color: hsl(275deg 50% 50%);
+      text-decoration: none;
+      font-weight: 700;
+      border-radius: 4px;
+      transition: background-color 400ms;
+    }
+
+    a:hover,
+    a:focus {
+      text-decoration: underline;
+      background: hsl(275deg 20% 85%);
+      transition: background-color 150ms;
+    }
+  </style>
 </head>
 
 <body>
-  <h1>404 Not Found</h1>
-  <p>The requested page does not exist.</p>
+  <header>
+    <h1>404 Not Found</h1>
+  </header>
+
+  <main>
+    <p>The requested page does not exist. <a href="/">Click here</a> to return to the homepage.</p>
+  </main>
 </body>
 
 </html>
\ No newline at end of file
This page took 0.085005 seconds and 4 git commands to generate.