diff --git a/app/View/Components/Layout.php b/app/View/Components/Layout.php index 440f2fc..282f7ae 100644 --- a/app/View/Components/Layout.php +++ b/app/View/Components/Layout.php @@ -17,13 +17,16 @@ public function __construct() {} * Get the view / contents that represent the component. */ public function render(): View|Closure|string { + $event = ''; + if ($this->isItChristmas()) $event = 'christmas'; + if ($this->isItAprilFools()) $event = 'april-fools'; if (isLegacy()) { return view('components.layout-legacy', [ - 'isChristmas' => $this->isItChristmas() + 'event' => $event ]); } else { return view('components.layout', [ - 'isChristmas' => $this->isItChristmas() + 'event' => $event ]); } } @@ -37,4 +40,15 @@ public function isItChristmas() : bool { return $currentDate >= $startDate && $currentDate < $endDate; } + + public function isItAprilFools() : bool { + $currentDate = new DateTime(); + $currentDate->setTime(0, 0); + $currentYear = intval($currentDate->format('Y')); + + $aprilFools = new DateTime("$currentYear-04-01"); + + return $currentDate == $aprilFools; + } + } diff --git a/config/app.php b/config/app.php index 2809204..551f521 100644 --- a/config/app.php +++ b/config/app.php @@ -5,7 +5,7 @@ return [ 'name' => env('APP_NAME', 'wah.moe'), - 'version' => '2026.02.24-patch0', + 'version' => '2026.03.31', '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/aprilfools.css new file mode 100644 index 0000000..6c6cc7c --- /dev/null +++ b/public/css/alternate/aprilfools.css @@ -0,0 +1,61 @@ +* { + font-family: "Comic Sans MS", cursive ; +} + +body { + background: url('/images/roscoe_tile_rainbow.jpg'); +} + +button:hover, +footer img:hover { + animation: rotater 2s linear infinite; +} + +div.page-container, +div.wah, +table.music-top10, +form button, +form input, +form textarea, +div.rosco-leko-gallery > div{ + background-color: #FAF8F6; +} + +table.music-top10, +table.music-top10 tr td { + border: rgb(250, 122, 110); +} +table.music-top10 tr:first-child th { + border-right: rgb(250, 122, 110); + border-bottom: rgb(250, 122, 110); +} + +table.music-top10 tr:first-child th, +table.music-top10 tr td:first-child { + background-color: rgba(250, 110, 210, 0.5); +} + +hr, +div.page-container, +div.wah, +form button, +form input, +form textarea, +div.gb-entry, +div.current-track img, +div.rosco-leko-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; +} + +hr { + border-bottom: none; + border-right: none; + border-left: none; +} + +@keyframes rotater { + 0% { transform: rotate(0deg) } + 100% { transform: rotate(360deg) } +} diff --git a/public/images/logo-rainbow.gif b/public/images/logo-rainbow.gif new file mode 100644 index 0000000..680fa56 Binary files /dev/null and b/public/images/logo-rainbow.gif differ diff --git a/public/images/logo-rainbow.png b/public/images/logo-rainbow.png new file mode 100644 index 0000000..60e453d Binary files /dev/null and b/public/images/logo-rainbow.png differ diff --git a/public/images/logo-v2-rainbow.gif b/public/images/logo-v2-rainbow.gif new file mode 100644 index 0000000..14fcfeb Binary files /dev/null and b/public/images/logo-v2-rainbow.gif differ diff --git a/public/images/roscoe_tile_rainbow.jpg b/public/images/roscoe_tile_rainbow.jpg new file mode 100644 index 0000000..c695c51 Binary files /dev/null and b/public/images/roscoe_tile_rainbow.jpg differ diff --git a/resources/views/components/layout-legacy.blade.php b/resources/views/components/layout-legacy.blade.php index 56379f9..76d50fb 100644 --- a/resources/views/components/layout-legacy.blade.php +++ b/resources/views/components/layout-legacy.blade.php @@ -6,15 +6,16 @@ wah! (dot moe) - {{ $title }} - - +@if($event === 'april-fools') + +
+ - + @@ -63,21 +64,21 @@ - + - + @@ -99,4 +100,99 @@
- + wah! (dot moe)
@@ -27,21 +28,21 @@ -
 
 
- +
- - + - +
  +     
 
 
 
 
- +
- - + - +
  +     
 
 
+ @else + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + wah! (dot moe)
+ "i mean it looks alright, but then you realise its all tables" ~ alice +
+
 
+ + + + + + +
  + +  
+
 
 
+ + + + + + +
  + {{ $slot }} +  
+
 
 
+ + + + + + +
  + +  
+
 
 
+ + + + + + +
  + © RoscoeDaWah 2021-2025 +  
+
 
+ +@endif diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 36a4add..f59705f 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -11,8 +11,8 @@ - @if ($isChristmas)@endif - + @if ($event == 'christmas')@endif + @if ($event == 'april-fools')@endif @@ -26,7 +26,8 @@
- A pixel art depiction of a paw, in three alternating shades of blue. + @if($event == 'april-fools')A pixel art depiction of a paw, in rainbow colours. + @else A pixel art depiction of a paw, in three alternating shades of blue.@endif

wah!

@@ -74,7 +75,7 @@ < the basename ring >
- v{{ config('app.version') }}, served by {{ gethostname() }} + v{{ config('app.version') }}