add copyright

This commit is contained in:
Murphy 2025-02-07 20:04:05 -05:00
parent 1d197ecfe4
commit 2113f56822
Signed by: freya
GPG key ID: 9FBC6FFD6D2DBF17
3 changed files with 18 additions and 2 deletions
index.php
public/css
web/parts

View file

@ -95,13 +95,18 @@ function __make_assets(): object {
),
);
define('REVS', array(
'main.css' => 2,
));
function update_paths(&$data, $path) {
foreach ($data as $key => $value) {
if (is_array($value)) {
update_paths($value, "$path/$key");
$data[$key] = $value;
} else {
$data[$key] = "$path/$value?rev=1";
$rev = REVS[$value] ?? 1;
$data[$key] = "{$path}/{$value}?rev={$rev}";
}
}
$data = (object) $data;

View file

@ -133,6 +133,14 @@ footer#footer {
border: none;
background: white;
}
#copyright {
width: fit-content;
margin: 5px auto;
padding: 10px;
background: black;
color: white;
}
}
/* dither */

View file

@ -17,5 +17,8 @@
id="john"
sandbox="allow-scripts"
src="https://john.citrons.xyz/embed?ref=rit.wtf"
></iframe>
></iframe>
<div id="copyright">
Freya Murphy © <?=date("Y")?> | <a href="https://freya.cat">freya.cat</a>
</div>
</footer>