diff --git a/app/View/Components/Layout.php b/app/View/Components/Layout.php index 216d272..ea5ea8c 100644 --- a/app/View/Components/Layout.php +++ b/app/View/Components/Layout.php @@ -21,6 +21,7 @@ public function render(): View|Closure|string { $event = ''; if ($this->isItChristmas()) $event = 'christmas'; if ($this->isItAprilFools()) $event = 'april-fools'; + if ($this->isItPrideMonth()) $event = 'pride'; if (isLegacy()) { return view('components.layout-legacy', [ 'event' => $event @@ -52,4 +53,12 @@ public function isItAprilFools() : bool { return $currentDate == $aprilFools; } + + public function isItPrideMonth() { + $tz = new DateTimeZone("Europe/London"); + $currentDate = new DateTime("now", $tz); + $currentDate->setTime(0, 0); + + return date_format($currentDate,"n") == 6; + } } diff --git a/config/app.php b/config/app.php index a67d1b4..a90e3bf 100644 --- a/config/app.php +++ b/config/app.php @@ -5,7 +5,7 @@ return [ 'name' => env('APP_NAME', 'wah.moe'), - 'version' => '2026.05.25', + 'version' => '2026.06.01', 'env' => env('APP_ENV', 'production'), 'debug' => (bool)env('APP_DEBUG', false), 'url' => env('APP_URL', 'http://localhost'), diff --git a/public/css/alternate/aprilfools.css b/public/css/alternate/rainbow.css similarity index 90% rename from public/css/alternate/aprilfools.css rename to public/css/alternate/rainbow.css index 6c6cc7c..e74305a 100644 --- a/public/css/alternate/aprilfools.css +++ b/public/css/alternate/rainbow.css @@ -17,7 +17,7 @@ table.music-top10, form button, form input, form textarea, -div.rosco-leko-gallery > div{ +div.pandamonium-gallery > div{ background-color: #FAF8F6; } @@ -32,7 +32,7 @@ table.music-top10 tr:first-child th { table.music-top10 tr:first-child th, table.music-top10 tr td:first-child { - background-color: rgba(250, 110, 210, 0.5); + background-color: rgba(250, 110, 210, 1); } hr, @@ -43,7 +43,7 @@ form input, form textarea, div.gb-entry, div.current-track img, -div.rosco-leko-gallery > div { +div.pandamonium-gallery > div { border: 5px solid transparent; border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%); border-image-slice: 1; diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 993b99a..ad9692e 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -12,7 +12,7 @@ @if ($event == 'christmas')@endif - @if ($event == 'april-fools')@endif + @if ($event == 'april-fools' || $event == 'pride')@endif