diff --git a/app/routes.py b/app/routes.py index eade35d..6d01e34 100644 --- a/app/routes.py +++ b/app/routes.py @@ -55,3 +55,8 @@ def list_ads(): if f.lower().endswith(".png") ] return jsonify(files) + + +@main.app_errorhandler(404) +def page_not_found(e): + return render_template("404.html"), 404 diff --git a/app/static/style.css b/app/static/style.css index 1efa6cf..27ba52e 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -547,3 +547,71 @@ a.non-link:hover { height: 180px; } } + +/* 404 Error */ +.error-container { + max-width: 800px; + margin: 0 auto; + padding: 4rem 2rem; + text-align: center; + color: #e0e0e0; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; +} + +.glitch-title { + font-size: 6rem; + font-weight: 900; + color: #ff0066; + text-shadow: 2px 2px #00ffff, -2px -2px #ff00ff; + animation: glitch 1s infinite; +} + +@keyframes glitch { + 0% { text-shadow: 2px 2px #00ffff, -2px -2px #ff00ff; } + 20% { text-shadow: -2px -2px #00ffff, 2px 2px #ff00ff; } + 40% { text-shadow: 2px -2px #00ffff, -2px 2px #ff00ff; } + 60% { text-shadow: -2px 2px #00ffff, 2px -2px #ff00ff; } + 80% { text-shadow: 2px 2px #00ffff, -2px -2px #ff00ff; } + 100% { text-shadow: -2px -2px #00ffff, 2px 2px #ff00ff; } +} + +.error-message { + font-size: 1.5rem; + margin-bottom: 2rem; +} + +.references-list { + list-style: none; + padding: 0; + margin: 0 auto 3rem; + max-width: 600px; + text-align: left; +} + +.references-list li { + margin: 1rem 0; + font-size: 1.1rem; + line-height: 1.5; + transition: transform 0.2s; +} + +.references-list li:hover { + transform: translateX(10px); +} + +.back-button { + display: inline-block; + padding: 0.75rem 1.5rem; + background-color: #222; + color: #fff; + border: 2px solid #fff; + border-radius: 8px; + text-decoration: none; + font-weight: bold; + transition: background-color 0.3s, color 0.3s; +} + +.back-button:hover { + background-color: #fff; + color: #000; +} \ No newline at end of file diff --git a/app/templates/404.html b/app/templates/404.html new file mode 100644 index 0000000..2d31aeb --- /dev/null +++ b/app/templates/404.html @@ -0,0 +1,26 @@ +{% extends "layout.html" %} +{% block title %}404 - Zgubiłeś się w multiversum{% endblock %} +{% block content %} +