Add april fools stuff
This commit is contained in:
parent
e1778fcd59
commit
e37c663c43
9 changed files with 194 additions and 22 deletions
|
|
@ -17,13 +17,16 @@ public function __construct() {}
|
||||||
* Get the view / contents that represent the component.
|
* Get the view / contents that represent the component.
|
||||||
*/
|
*/
|
||||||
public function render(): View|Closure|string {
|
public function render(): View|Closure|string {
|
||||||
|
$event = '';
|
||||||
|
if ($this->isItChristmas()) $event = 'christmas';
|
||||||
|
if ($this->isItAprilFools()) $event = 'april-fools';
|
||||||
if (isLegacy()) {
|
if (isLegacy()) {
|
||||||
return view('components.layout-legacy', [
|
return view('components.layout-legacy', [
|
||||||
'isChristmas' => $this->isItChristmas()
|
'event' => $event
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
return view('components.layout', [
|
return view('components.layout', [
|
||||||
'isChristmas' => $this->isItChristmas()
|
'event' => $event
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -37,4 +40,15 @@ public function isItChristmas() : bool {
|
||||||
|
|
||||||
return $currentDate >= $startDate && $currentDate < $endDate;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => env('APP_NAME', 'wah.moe'),
|
'name' => env('APP_NAME', 'wah.moe'),
|
||||||
'version' => '2026.02.24-patch0',
|
'version' => '2026.03.31',
|
||||||
'env' => env('APP_ENV', 'production'),
|
'env' => env('APP_ENV', 'production'),
|
||||||
'debug' => (bool)env('APP_DEBUG', false),
|
'debug' => (bool)env('APP_DEBUG', false),
|
||||||
'url' => env('APP_URL', 'http://localhost'),
|
'url' => env('APP_URL', 'http://localhost'),
|
||||||
|
|
|
||||||
61
public/css/alternate/aprilfools.css
Normal file
61
public/css/alternate/aprilfools.css
Normal file
|
|
@ -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) }
|
||||||
|
}
|
||||||
BIN
public/images/logo-rainbow.gif
Normal file
BIN
public/images/logo-rainbow.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 314 B |
BIN
public/images/logo-rainbow.png
Normal file
BIN
public/images/logo-rainbow.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
BIN
public/images/logo-v2-rainbow.gif
Normal file
BIN
public/images/logo-v2-rainbow.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 823 B |
BIN
public/images/roscoe_tile_rainbow.jpg
Normal file
BIN
public/images/roscoe_tile_rainbow.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
|
|
@ -6,8 +6,103 @@
|
||||||
<title>wah! (dot moe) - {{ $title }}</title>
|
<title>wah! (dot moe) - {{ $title }}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body background="/images/roscoe_tile.jpg" bgcolor="#6595fb" text="#000000" link="#FFFFFF" alink="#999999" vlink="#FFFFFF">
|
@if($event === 'april-fools')
|
||||||
<table bgcolor="#6595fb" width="850px" cellpadding="0" cellspacing="0" border="0">
|
<body background="/images/roscoe_tile_rainbow.jpg" bgcolor="#6595fb" text="#000000" link="#FFFFFF" alink="#999999" vlink="#FFFFFF">
|
||||||
|
<table bgcolor="#9365FB" width="850px" cellpadding="0" cellspacing="0" border="0">
|
||||||
|
<!-- HEADER -->
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0" class="nopad">
|
||||||
|
<tr>
|
||||||
|
<td width="90px">
|
||||||
|
<img src="/images/logo-v2-rainbow.gif">
|
||||||
|
</td>
|
||||||
|
<td valign="middle"><font color="#FFFFFF" face="sans-serif">
|
||||||
|
<font size="+10"><b><i>wah! (dot moe)</i></b></font><br>
|
||||||
|
<i>"i mean it looks alright, but then you realise its all tables" ~ <a href="https://nve.wtf/~alice/">alice</a></i>
|
||||||
|
</font></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<!-- HEADER END -->
|
||||||
|
|
||||||
|
<!-- TOP NAV -->
|
||||||
|
<tr><td height="5px" bgcolor="#a183f2"><font size="-2"> </font></td></tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table bgcolor="#a183f2" border="0" class="nopad" cellpadding="0" cellspacing="0">
|
||||||
|
<tr>
|
||||||
|
<td width="10px" bgcolor="#a183f2"> </td>
|
||||||
|
<td bgcolor="#a183f2" width="100%"><font face="sans-serif" color="#FFFFFF">
|
||||||
|
<x-navigation></x-navigation>
|
||||||
|
</font></td>
|
||||||
|
<td width="5px" bgcolor="#a183f2" > </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td height="5px" bgcolor="#a183f2"><font size="-2"> </font></td></tr>
|
||||||
|
<!-- TOP NAV END -->
|
||||||
|
|
||||||
|
<!-- CONTENT -->
|
||||||
|
<tr><td height="5px" bgcolor="#FFFFFF"><font size="-2"> </font></td></tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table bgcolor="#FFFFFF" border="0" class="nopad" cellpadding="0" cellspacing="0">
|
||||||
|
<tr>
|
||||||
|
<td width="10px" bgcolor="#FFFFFF"> </td>
|
||||||
|
<td bgcolor="#ffffff" width="100%"><font face="sans-serif">
|
||||||
|
{{ $slot }}
|
||||||
|
</font></td>
|
||||||
|
<td width="5px" bgcolor="#FFFFFF" > </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td height="5px" bgcolor="#FFFFFF"><font size="-2"> </font></td></tr>
|
||||||
|
<!-- CONTENT END -->
|
||||||
|
|
||||||
|
<!-- BOTTOM NAV -->
|
||||||
|
<tr><td height="5px" bgcolor="#a183f2"><font size="-2"> </font></td></tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table bgcolor="#a183f2" border="0" class="nopad" cellpadding="0" cellspacing="0">
|
||||||
|
<tr>
|
||||||
|
<td width="10px" bgcolor="#a183f2"> </td>
|
||||||
|
<td bgcolor="#a183f2" width="100%"><font face="sans-serif" color="#FFFFFF">
|
||||||
|
<x-navigation></x-navigation>
|
||||||
|
</font></td>
|
||||||
|
<td width="5px" bgcolor="#a183f2" > </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td height="5px" bgcolor="#a183f2"><font size="-2"> </font></td></tr>
|
||||||
|
<!-- BOTTOM NAV END -->
|
||||||
|
|
||||||
|
<!-- FOOTER -->
|
||||||
|
<tr><td height="5px"><font size="-2"> </font></td></tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table border="0" class="nopad" cellpadding="0" cellspacing="0">
|
||||||
|
<tr>
|
||||||
|
<td width="10px"> </td>
|
||||||
|
<td width="100%"><font face="sans-serif" color="#FFFFFF">
|
||||||
|
© RoscoeDaWah 2021-2025
|
||||||
|
</font></td>
|
||||||
|
<td width="5px"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td height="5px"><font size="-2"> </font></td></tr>
|
||||||
|
<!-- FOOTER END -->
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
@else
|
||||||
|
<body background="/images/roscoe_tile.jpg" bgcolor="#6595fb" text="#000000" link="#FFFFFF" alink="#999999" vlink="#FFFFFF">
|
||||||
|
<table bgcolor="#6595fb" width="850px" cellpadding="0" cellspacing="0" border="0">
|
||||||
<!-- HEADER -->
|
<!-- HEADER -->
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
@ -97,6 +192,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td height="5px"><font size="-2"> </font></td></tr>
|
<tr><td height="5px"><font size="-2"> </font></td></tr>
|
||||||
<!-- FOOTER END -->
|
<!-- FOOTER END -->
|
||||||
</table>
|
</table>
|
||||||
</body>
|
</body>
|
||||||
|
@endif
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@
|
||||||
<link rel="stylesheet" href="{{ asset('/css/master.css') }}"/>
|
<link rel="stylesheet" href="{{ asset('/css/master.css') }}"/>
|
||||||
<link rel="icon" type="image/png" href="{{ asset('/favicon-32x32.png') }}" sizes="32x32"/>
|
<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"/>
|
<link rel="icon" type="image/png" href="{{ asset('/favicon-16x16.png') }}" sizes="16x16"/>
|
||||||
@if ($isChristmas)<script src="{{ asset('/js/christmas/snowstorm.js') }}"></script>@endif
|
@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
|
||||||
|
|
||||||
<!-- Page-specific -->
|
<!-- Page-specific -->
|
||||||
<meta property="og:title" content="wah! (dot moe) - {{ $title }}">
|
<meta property="og:title" content="wah! (dot moe) - {{ $title }}">
|
||||||
|
|
@ -26,7 +26,8 @@
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<header>
|
<header>
|
||||||
<div>
|
<div>
|
||||||
<img class="logo_paw" src="{{ asset('/images/logo-v2.png') }}" width="84" alt="A pixel art depiction of a paw, in three alternating shades of blue.">
|
@if($event == 'april-fools')<img src="{{ asset('/images/logo-rainbow.png') }}" width="84" alt="A pixel art depiction of a paw, in rainbow colours.">
|
||||||
|
@else <img class="logo_paw" src="{{ asset('/images/logo-v2.png') }}" width="84" alt="A pixel art depiction of a paw, in three alternating shades of blue.">@endif
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h1>wah!</h1>
|
<h1>wah!</h1>
|
||||||
|
|
@ -74,7 +75,7 @@
|
||||||
<a href="https://webring.julimiro.eu/api/previous/wah.moe"><</a> <a href="https://webring.julimiro.eu/">the basename ring</a> <a href="https://webring.julimiro.eu/api/next/wah.moe">></a>
|
<a href="https://webring.julimiro.eu/api/previous/wah.moe"><</a> <a href="https://webring.julimiro.eu/">the basename ring</a> <a href="https://webring.julimiro.eu/api/next/wah.moe">></a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://git.frzn.dev/RoscoeDaWah/wah.moe/releases/tag/v{{ config('app.version') }}">v{{ config('app.version') }}</a>, served by {{ gethostname() }}
|
<a href="https://git.frzn.dev/RoscoeDaWah/wah.moe/releases/tag/v{{ config('app.version') }}">v{{ config('app.version') }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue