From 2113f568229cef125a676c7f4dbbe8bfd2304e69 Mon Sep 17 00:00:00 2001
From: Freya Murphy <freya@freyacat.org>
Date: Fri, 7 Feb 2025 20:04:05 -0500
Subject: [PATCH] add copyright

---
 index.php            | 7 ++++++-
 public/css/main.css  | 8 ++++++++
 web/parts/footer.php | 5 ++++-
 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>