summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-02-07 20:04:05 -0500
committerFreya Murphy <freya@freyacat.org>2025-02-07 20:04:05 -0500
commit2113f568229cef125a676c7f4dbbe8bfd2304e69 (patch)
treed9afa085c179fd42ba112b306b61a16cf75836e5
parentremove base elem (diff)
downloadrit.wtf-main.tar.gz
rit.wtf-main.tar.bz2
rit.wtf-main.zip
add copyrightHEADmain
-rw-r--r--index.php7
-rw-r--r--public/css/main.css8
-rw-r--r--web/parts/footer.php5
3 files changed, 18 insertions, 2 deletions
diff --git a/index.php b/index.php
index 447b300..78da4de 100644
--- a/index.php
+++ b/index.php
@@ -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;
diff --git a/public/css/main.css b/public/css/main.css
index c2cba8b..da18fe7 100644
--- a/public/css/main.css
+++ b/public/css/main.css
@@ -133,6 +133,14 @@ footer#footer {
border: none;
background: white;
}
+
+ #copyright {
+ width: fit-content;
+ margin: 5px auto;
+ padding: 10px;
+ background: black;
+ color: white;
+ }
}
/* dither */
diff --git a/web/parts/footer.php b/web/parts/footer.php
index 921d5e8..193cdb9 100644
--- a/web/parts/footer.php
+++ b/web/parts/footer.php
@@ -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>