Compare commits

...

3 commits

Author SHA1 Message Date
c3ea5447e7
Fix timezone 2026-04-01 00:14:44 +01:00
e37c663c43
Add april fools stuff 2026-03-31 23:15:31 +01:00
e1778fcd59
Update gitignore 2026-03-14 15:05:30 +00:00
10 changed files with 203 additions and 26 deletions

12
.gitignore vendored
View file

@ -11,14 +11,18 @@
.phpunit.result.cache
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
/.fleet
/.idea
/.vscode
**/.DS_Store
/log
/storage
/tmp
# IDE Config Files
/.fleet
/.idea
/.vscode
/.nova
# Project-specific
/public/pub

View file

@ -4,6 +4,7 @@
use Closure;
use DateTime;
use DateTimeZone;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
@ -17,13 +18,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 +41,15 @@ public function isItChristmas() : bool {
return $currentDate >= $startDate && $currentDate < $endDate;
}
public function isItAprilFools() : bool {
$tz = new DateTimeZone("Europe/London");
$currentDate = new DateTime("now", $tz);
$currentDate->setTime(0, 0);
$currentYear = intval($currentDate->format('Y'));
$aprilFools = new DateTime("$currentYear-04-01", $tz);
return $currentDate == $aprilFools;
}
}

View file

@ -5,7 +5,7 @@
return [
'name' => env('APP_NAME', 'wah.moe'),
'version' => '2026.02.24-patch0',
'version' => '2026.03.31-patch0',
'env' => env('APP_ENV', 'production'),
'debug' => (bool)env('APP_DEBUG', false),
'url' => env('APP_URL', 'http://localhost'),

View 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) }
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View file

@ -6,15 +6,16 @@
<title>wah! (dot moe) - {{ $title }}</title>
</head>
<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">
@if($event === 'april-fools')
<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.gif">
<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>
@ -27,21 +28,21 @@
<!-- HEADER END -->
<!-- TOP NAV -->
<tr><td height="5px" bgcolor="#3366FF"><font size="-2">&nbsp;</font></td></tr>
<tr><td height="5px" bgcolor="#a183f2"><font size="-2">&nbsp;</font></td></tr>
<tr>
<td>
<table bgcolor="#3366FF" border="0" class="nopad" cellpadding="0" cellspacing="0">
<table bgcolor="#a183f2" border="0" class="nopad" cellpadding="0" cellspacing="0">
<tr>
<td width="10px" bgcolor="#3366FF">&nbsp;</td>
<td bgcolor="#3366FF" width="100%"><font face="sans-serif" color="#FFFFFF">
<td width="10px" bgcolor="#a183f2">&nbsp;</td>
<td bgcolor="#a183f2" width="100%"><font face="sans-serif" color="#FFFFFF">
<x-navigation></x-navigation>
</font></td>
<td width="5px" bgcolor="#3366FF" >&nbsp;</td>
<td width="5px" bgcolor="#a183f2" >&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td height="5px" bgcolor="#3366FF"><font size="-2">&nbsp;</font></td></tr>
<tr><td height="5px" bgcolor="#a183f2"><font size="-2">&nbsp;</font></td></tr>
<!-- TOP NAV END -->
<!-- CONTENT -->
@ -63,21 +64,21 @@
<!-- CONTENT END -->
<!-- BOTTOM NAV -->
<tr><td height="5px" bgcolor="#3366FF"><font size="-2">&nbsp;</font></td></tr>
<tr><td height="5px" bgcolor="#a183f2"><font size="-2">&nbsp;</font></td></tr>
<tr>
<td>
<table bgcolor="#3366FF" border="0" class="nopad" cellpadding="0" cellspacing="0">
<table bgcolor="#a183f2" border="0" class="nopad" cellpadding="0" cellspacing="0">
<tr>
<td width="10px" bgcolor="#3366FF">&nbsp;</td>
<td bgcolor="#3366FF" width="100%"><font face="sans-serif" color="#FFFFFF">
<td width="10px" bgcolor="#a183f2">&nbsp;</td>
<td bgcolor="#a183f2" width="100%"><font face="sans-serif" color="#FFFFFF">
<x-navigation></x-navigation>
</font></td>
<td width="5px" bgcolor="#3366FF" >&nbsp;</td>
<td width="5px" bgcolor="#a183f2" >&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td height="5px" bgcolor="#3366FF"><font size="-2">&nbsp;</font></td></tr>
<tr><td height="5px" bgcolor="#a183f2"><font size="-2">&nbsp;</font></td></tr>
<!-- BOTTOM NAV END -->
<!-- FOOTER -->
@ -99,4 +100,99 @@
<!-- 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 -->
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" class="nopad">
<tr>
<td width="90px">
<img src="/images/logo-v2.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="#3366FF"><font size="-2">&nbsp;</font></td></tr>
<tr>
<td>
<table bgcolor="#3366FF" border="0" class="nopad" cellpadding="0" cellspacing="0">
<tr>
<td width="10px" bgcolor="#3366FF">&nbsp;</td>
<td bgcolor="#3366FF" width="100%"><font face="sans-serif" color="#FFFFFF">
<x-navigation></x-navigation>
</font></td>
<td width="5px" bgcolor="#3366FF" >&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td height="5px" bgcolor="#3366FF"><font size="-2">&nbsp;</font></td></tr>
<!-- TOP NAV END -->
<!-- CONTENT -->
<tr><td height="5px" bgcolor="#FFFFFF"><font size="-2">&nbsp;</font></td></tr>
<tr>
<td>
<table bgcolor="#FFFFFF" border="0" class="nopad" cellpadding="0" cellspacing="0">
<tr>
<td width="10px" bgcolor="#FFFFFF">&nbsp;</td>
<td bgcolor="#ffffff" width="100%"><font face="sans-serif">
{{ $slot }}
</font></td>
<td width="5px" bgcolor="#FFFFFF" >&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td height="5px" bgcolor="#FFFFFF"><font size="-2">&nbsp;</font></td></tr>
<!-- CONTENT END -->
<!-- BOTTOM NAV -->
<tr><td height="5px" bgcolor="#3366FF"><font size="-2">&nbsp;</font></td></tr>
<tr>
<td>
<table bgcolor="#3366FF" border="0" class="nopad" cellpadding="0" cellspacing="0">
<tr>
<td width="10px" bgcolor="#3366FF">&nbsp;</td>
<td bgcolor="#3366FF" width="100%"><font face="sans-serif" color="#FFFFFF">
<x-navigation></x-navigation>
</font></td>
<td width="5px" bgcolor="#3366FF" >&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td height="5px" bgcolor="#3366FF"><font size="-2">&nbsp;</font></td></tr>
<!-- BOTTOM NAV END -->
<!-- FOOTER -->
<tr><td height="5px"><font size="-2">&nbsp;</font></td></tr>
<tr>
<td>
<table border="0" class="nopad" cellpadding="0" cellspacing="0">
<tr>
<td width="10px">&nbsp;</td>
<td width="100%"><font face="sans-serif" color="#FFFFFF">
&copy; RoscoeDaWah 2021-2025
</font></td>
<td width="5px">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td height="5px"><font size="-2">&nbsp;</font></td></tr>
<!-- FOOTER END -->
</table>
</body>
@endif
</html>

View file

@ -11,8 +11,8 @@
<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-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 -->
<meta property="og:title" content="wah! (dot moe) - {{ $title }}">
@ -26,7 +26,8 @@
<div class="page-container">
<header>
<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>
<h1>wah!</h1>
@ -74,7 +75,7 @@
<a href="https://webring.julimiro.eu/api/previous/wah.moe">&lt;</a> <a href="https://webring.julimiro.eu/">the basename ring</a> <a href="https://webring.julimiro.eu/api/next/wah.moe">&gt;</a>
</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>