fix formatting

This commit is contained in:
Ashley //// 2024-02-25 06:49:57 +00:00
parent dc6295306d
commit b27f39a726

View file

@ -1,37 +1,22 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<title>PokeTube</title> <title>Poke - <%=error%> !!!</title>
<meta content="#111111" name="theme-color"> <meta content="#111111" name="theme-color" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no, viewport-fit=cover"> <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no, viewport-fit=cover" />
<meta name="darkreader-lock"> <meta name="darkreader-lock" />
<link href="/css/yt-ukraine.svg?v=3" rel=icon> <link href="/css/yt-ukraine.svg?v=3" rel="icon" />
<link rel="manifest" href="/manifest.json"> <link rel="manifest" href="/manifest.json" />
</head> <style>
<body> body {
<p id="abstract"><%=error%></p>
<div class="error">
<h2><%=error%></h2>
<p><%=description%></p>
</div>
<div class="error-footer">
<a href="https://poketube.fun/game-hub">Games</a>
<a href="https://codeberg.org/ashley/poke/">Source Code</a>
<a href="https://status.poketube.fun/">Status</a>
</div>
</body>
</html>
<style>
body {
margin: auto; margin: auto;
background: #111111; background: #111111;
color: white; color: white;
font-family: arial; font-family: arial;
max-width: 600px; max-width: 600px;
} }
body::before { body::before {
background: linear-gradient(0deg, rgba(115, 32, 67, 1.0), rgba(17, 17, 17, 1.0)); background: linear-gradient(0deg, rgba(115, 32, 67, 1), rgba(17, 17, 17, 1));
background-repeat: no-repeat; background-repeat: no-repeat;
content: ""; content: "";
position: fixed; position: fixed;
@ -42,13 +27,13 @@ body::before {
z-index: -1; z-index: -1;
pointer-events: none; pointer-events: none;
transition: 1s height; transition: 1s height;
} }
h2 { h2 {
font-size: 42px; font-size: 42px;
} }
p#abstract { p#abstract {
position: fixed; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
@ -59,13 +44,15 @@ p#abstract {
opacity: 0.005; opacity: 0.005;
pointer-events: none; pointer-events: none;
transition: 1s transform; transition: 1s transform;
} }
@media only screen and (max-width: 790px) { @media only screen and (max-width: 790px) {
p#abstract {transform: translate(-50%, -50%) rotate(90deg) !important} p#abstract {
} transform: translate(-50%, -50%) rotate(90deg) !important;
}
}
.error { .error {
position: fixed; position: fixed;
top: 50%; top: 50%;
left: 50%; left: 50%;
@ -74,21 +61,35 @@ p#abstract {
cursor: default; cursor: default;
max-width: 600px; max-width: 600px;
width: 100%; width: 100%;
} }
.error-footer { .error-footer {
position: fixed; position: fixed;
bottom: 24px; bottom: 24px;
width: 100%; width: 100%;
max-width: 600px; max-width: 600px;
text-align: center; text-align: center;
} }
.error-footer a { .error-footer a {
color: #AC8FA5; color: #ac8fa5;
text-decoration: none; text-decoration: none;
margin: 0px 12px; margin: 0px 12px;
} }
.error-footer a:hover { .error-footer a:hover {
color: #d69cc8; color: #d69cc8;
} }
</style> </style>
</head>
<body>
<p id="abstract"><%=error%></p>
<div class="error">
<h2><%=error%></h2>
<p><%=description%></p>
</div>
<div class="error-footer">
<a href="/game-hub">Games</a>
<a href="https://codeberg.org/ashley/poke/">Source Code</a>
<a href="https://status.poketube.fun/">Status</a>
</div>
</body>
</html>