From c97750a79c6276b6e7ca40a387578d867fae25bc Mon Sep 17 00:00:00 2001 From: www-data Date: Mon, 17 Feb 2025 14:06:38 +0100 Subject: [PATCH] Add spacestate CSS generator --- spacestate.php | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 spacestate.php diff --git a/spacestate.php b/spacestate.php new file mode 100644 index 00000000000..dde043bc2e1 --- /dev/null +++ b/spacestate.php @@ -0,0 +1,60 @@ +open ?? false; + + apcu_store(CACHE_KEY, $is_open, CACHE_TTL); + + return $is_open; +} + +$spaceState = getSpaceState(); + +?> +#p-navigation:before { + content: " "; + white-space: pre; +} + + +#p-logo:after { + content: "OPEN" ; + border-radius: 3px; + background: green; + color: white; + margin-left: 51px; + padding: 3px 7px; +} + +#p-logo:after { + content: "CLOSED" ; + border-radius: 3px; + background: red; + color: white; + margin-left: 43px; + padding: 3px 7px; +} +