diff options
| author | Ahmed <git@gumx.cc> | 2026-06-18 01:24:47 +0300 |
|---|---|---|
| committer | Ahmed <git@gumx.cc> | 2026-06-18 01:24:47 +0300 |
| commit | 3bff7cbc085a5061a4d1db4d56b5948c96b473e0 (patch) | |
| tree | f02b9a8c9fefbd5dc67138436af997cb956e47f9 | |
| parent | d35f4e8113a2b20eb80133b106c10f9f1ef089cd (diff) | |
fix: 404 page in hook
| -rw-r--r-- | hooks/post-receive | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/hooks/post-receive b/hooks/post-receive index f1f49d0..d8a4bf1 100644 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -14,25 +14,30 @@ cat > /var/www/ubergeek.gumx.cc/404.html <<'HTMLEOF' <style> @font-face { font-family: "Kawkab Mono"; src: url(/fonts/KawkabMono-Regular.woff2); font-weight: normal; } @font-face { font-family: "Kawkab Mono"; src: url(/fonts/KawkabMono-Bold.woff2); font-weight: bold; } -* { unicode-bidi: plaintext; box-sizing: border-box; } +@font-face { font-family: "Kawkab Mono"; src: url(/fonts/KawkabMono-Light.woff2); font-weight: light; } +* { unicode-bidi: plaintext; } html { color: black; background-color: white; } body { font-family: "Kawkab Mono"; font-size: 16px; line-height: 1.4; margin: 0; padding: 4rem 0; min-height: 100%; overflow-wrap: break-word; } -main, header, footer { max-width: 800px; margin-inline: auto; padding: 0 2rem; } h1, header, footer { text-align: center; } +nav { text-align: start; } +main { text-align: justify; } +main, header, footer { max-width: 800px; margin-inline: auto; padding: 0 2rem; } +p, h2, h3, h4 { margin: 1em 0 0 0; } hr { border: none; border-top: thin solid; margin: 1.25rem 0; } header { margin-bottom: 1em; } footer { margin-top: 3em; } -a { color: inherit; } -@media (max-width: 600px) { body { font-size: 0.9em; } } +@media (max-width: 600px) { body { font-size: 0.9em; } h1 { font-size: 1.8em; } } +@media (max-width: 400px) { body { font-size: 0.8em; } h1 { font-size: 1.6em; } } @media (prefers-color-scheme: dark) { html { filter: invert(1); } img { filter: invert(1); } } </style> </head> <body> <header> -<h1><a href="https://gumx.cc">gumx</a></h1> +<nav><strong><a href="https://gumx.cc">gumx</a></strong></nav> </header> <main> -<p>404 not found.</p> +<h1>404</h1> +<p>not found.</p> </main> <footer> <hr> |
