Small changes
This commit is contained in:
@ -5,6 +5,7 @@ global $GITEA_TOKEN;
|
||||
if ($_SERVER['PHP_AUTH_USER'] !== 'elwig' || $_SERVER['PHP_AUTH_PW'] !== 'ganzGeheim123!') {
|
||||
header('Status: 401');
|
||||
header('WWW-Authenticate: Basic realm="Elwig"');
|
||||
header('Content-Type: text/plain');
|
||||
exit("401 Unauthorized :(\n");
|
||||
}
|
||||
|
||||
|
@ -126,8 +126,8 @@ if ($format === 'json') {
|
||||
<table>
|
||||
<thead><tr><th>Name</th><th>Größe</th><th>Änderungsdatum</th></tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($entities as $name => [$prod, $vers, $url, $size, $mtime, $ctime, $mod, $cre]) {
|
||||
echo " <tr><td><a href='files/$name'>$name</a></td><td>" . number_format($size / 1024 / 1024, 1) . " MB</td><td>" . date('d.m.Y, H:i', $mtime) . "</td></tr>\n";
|
||||
<?php foreach (array_reverse($entities) as $name => [$prod, $vers, $url, $size, $mtime, $ctime, $mod, $cre]) {
|
||||
echo " <tr><td><a href='/files/$name'>$name</a></td><td>" . number_format($size / 1024 / 1024, 1) . " MB</td><td>" . date('d.m.Y, H:i', $mtime) . "</td></tr>\n";
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<link rel="stylesheet" href="/res/style.css"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
</head>
|
||||
<body>
|
||||
<body style="margin-top: 3em;">
|
||||
<header>
|
||||
<nav>
|
||||
<div>
|
||||
@ -15,7 +15,7 @@
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="/#">Start</a></li>
|
||||
<li><a href="/#über">Über</a></li>
|
||||
<li><a href="/#about">Über</a></li>
|
||||
<li><a href="/#genossenschaften">Genossenschaften</a></li>
|
||||
<li><a href="/files/">Downloads</a></li>
|
||||
<li><a href="https://git.necronda.net/winzer/">Quellcode</a></li>
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
<main>
|
||||
<section class="home background">
|
||||
<a href="#über">
|
||||
<a href="#about">
|
||||
<div>
|
||||
<img src="/res/elwig.png" alt="Elwig"/>
|
||||
<div style="max-width: 16em;">
|
||||
@ -38,7 +38,7 @@
|
||||
</section>
|
||||
|
||||
<section class="about">
|
||||
<span id="über"/>
|
||||
<span id="about"/>
|
||||
<h3>Elwig</h3>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore etdolore magna aliquyam erat, sed diam voluptua.
|
||||
|
@ -6,10 +6,11 @@
|
||||
:root {
|
||||
font-family: 'Arial', sans-serif;
|
||||
scroll-behavior: smooth;
|
||||
--main-color: #A040C0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 3em 0 0 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
header {
|
||||
@ -55,7 +56,7 @@ nav li a {
|
||||
}
|
||||
|
||||
nav li a:hover {
|
||||
color: #A040C0;
|
||||
color: var(--main-color);
|
||||
}
|
||||
|
||||
main span[id] {
|
||||
@ -63,8 +64,9 @@ main span[id] {
|
||||
top: -8em;
|
||||
}
|
||||
|
||||
p a {
|
||||
color: #A040C0;
|
||||
p a,
|
||||
table a {
|
||||
color: var(--main-color);
|
||||
}
|
||||
|
||||
main .home {
|
||||
|
Reference in New Issue
Block a user