pride month

This commit is contained in:
Roscoe 2026-06-02 00:39:53 +01:00
commit 35a520becc
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
4 changed files with 14 additions and 5 deletions

View file

@ -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;
}
}

View file

@ -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'),

View file

@ -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;

View file

@ -12,7 +12,7 @@
<link rel="icon" type="image/png" href="{{ asset('/favicon-32x32.png') }}" sizes="32x32"/>
<link rel="icon" type="image/png" href="{{ asset('/favicon-16x16.png') }}" sizes="16x16"/>
@if ($event == 'christmas')<script src="{{ asset('/js/christmas/snowstorm.js') }}"></script>@endif
@if ($event == 'april-fools')<link rel="stylesheet" href="{{ asset('/css/alternate/aprilfools.css') }}">@endif
@if ($event == 'april-fools' || $event == 'pride')<link rel="stylesheet" href="{{ asset('/css/alternate/rainbow.css') }}">@endif
<!-- Page-specific -->
<meta property="og:title" content="wah! (dot moe) - {{ $title }}">