Small changes

This commit is contained in:
2024-05-14 19:13:01 +02:00
parent ddcc746744
commit d4fb95f93f
4 changed files with 13 additions and 10 deletions

View File

@ -5,6 +5,7 @@ global $GITEA_TOKEN;
if ($_SERVER['PHP_AUTH_USER'] !== 'elwig' || $_SERVER['PHP_AUTH_PW'] !== 'ganzGeheim123!') { if ($_SERVER['PHP_AUTH_USER'] !== 'elwig' || $_SERVER['PHP_AUTH_PW'] !== 'ganzGeheim123!') {
header('Status: 401'); header('Status: 401');
header('WWW-Authenticate: Basic realm="Elwig"'); header('WWW-Authenticate: Basic realm="Elwig"');
header('Content-Type: text/plain');
exit("401 Unauthorized :(\n"); exit("401 Unauthorized :(\n");
} }

View File

@ -126,8 +126,8 @@ if ($format === 'json') {
<table> <table>
<thead><tr><th>Name</th><th>Größe</th><th>Änderungsdatum</th></tr></thead> <thead><tr><th>Name</th><th>Größe</th><th>Änderungsdatum</th></tr></thead>
<tbody> <tbody>
<?php foreach ($entities as $name => [$prod, $vers, $url, $size, $mtime, $ctime, $mod, $cre]) { <?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"; 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> </tbody>
</table> </table>

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="/res/style.css"/> <link rel="stylesheet" href="/res/style.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head> </head>
<body> <body style="margin-top: 3em;">
<header> <header>
<nav> <nav>
<div> <div>
@ -15,7 +15,7 @@
</div> </div>
<ul> <ul>
<li><a href="/#">Start</a></li> <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="/#genossenschaften">Genossenschaften</a></li>
<li><a href="/files/">Downloads</a></li> <li><a href="/files/">Downloads</a></li>
<li><a href="https://git.necronda.net/winzer/">Quellcode</a></li> <li><a href="https://git.necronda.net/winzer/">Quellcode</a></li>
@ -26,7 +26,7 @@
<main> <main>
<section class="home background"> <section class="home background">
<a href="#über"> <a href="#about">
<div> <div>
<img src="/res/elwig.png" alt="Elwig"/> <img src="/res/elwig.png" alt="Elwig"/>
<div style="max-width: 16em;"> <div style="max-width: 16em;">
@ -38,7 +38,7 @@
</section> </section>
<section class="about"> <section class="about">
<span id="über"/> <span id="about"/>
<h3>Elwig</h3> <h3>Elwig</h3>
<p> <p>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore etdolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore etdolore magna aliquyam erat, sed diam voluptua.

View File

@ -6,10 +6,11 @@
:root { :root {
font-family: 'Arial', sans-serif; font-family: 'Arial', sans-serif;
scroll-behavior: smooth; scroll-behavior: smooth;
--main-color: #A040C0;
} }
body { body {
margin: 3em 0 0 0; margin: 0;
} }
header { header {
@ -55,7 +56,7 @@ nav li a {
} }
nav li a:hover { nav li a:hover {
color: #A040C0; color: var(--main-color);
} }
main span[id] { main span[id] {
@ -63,8 +64,9 @@ main span[id] {
top: -8em; top: -8em;
} }
p a { p a,
color: #A040C0; table a {
color: var(--main-color);
} }
main .home { main .home {