kummerkasten-php/failed.php
Lukas Drescher 6e163c05b8
Restyle error and success pages
- also increase line height in infoboxes
- slight changes to texts
- slight color changes
2024-07-11 00:04:11 +02:00

44 lines
No EOL
1.6 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<?php
$lang = $_GET['lang'] ?? $lang = "de";
$text = json_decode(file_get_contents("languages/$lang.json"), true);
$title = $text["title"];
$about = $text["error"];
$go_back = $text["go_back"];
$lang = $_GET['lang'];
?>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title id="page_title"><?php echo $title; ?></title>
<link rel="shortcut icon" href="favicon.svg" />
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="index.css">
</head>
<body>
<header class="header">
<nav class="header-inner">
<div class="header-top">
<a class="header-element" href="https://www.fs-infmath.uni-kiel.de/wiki/Hauptseite">
<img src="logo.svg">
</a>
<a class="header-element" href="https://www.fs-infmath.uni-kiel.de/kummerkasten/">
<h1 id="title"><?php echo $title; ?></h1>
</a>
</div>
</nav>
</header>
<p id="about" class="infobox error">
<span><!-- Adding this wrapper element so that links are displayed inline and because I am too lazy to change the CSS for that. -->
<?php echo str_replace("{support_mail}", "<a href=\"mailto:technik@fs-infmath.uni-kiel.de\">technik@fs-infmath.uni-kiel.de</a>", $about); ?>
</span>
</p>
<p><a href="https://www.fs-infmath.uni-kiel.de/wiki/Hauptseite" id="go_back"
class="link-button"><?php echo $go_back; ?></a></p>
</body>
</html>