Add Wah images to legacy website
This commit is contained in:
parent
fdb0ee20b7
commit
adcc910c28
4 changed files with 16 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ public function getWah(): string {
|
|||
$data = $response->json();
|
||||
if ($data == null) return "";
|
||||
$path = parse_url("https://api.tinyfox.dev" . $data["loc"], PHP_URL_PATH);
|
||||
return "//".request()->getHttpHost()."/proxy/wah/".basename($path);
|
||||
return "http://".request()->getHttpHost()."/proxy/wah/".basename($path);
|
||||
} catch (Exception $ex) {
|
||||
return "";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
return [
|
||||
'name' => env('APP_NAME', 'wah.moe'),
|
||||
'version' => '2025.08.30-patch2',
|
||||
'version' => '2026.01.09',
|
||||
'env' => env('APP_ENV', 'production'),
|
||||
'debug' => (bool) env('APP_DEBUG', false),
|
||||
'url' => env('APP_URL', 'http://localhost'),
|
||||
|
|
|
|||
|
|
@ -9,4 +9,11 @@
|
|||
<p>Unable to retrieve image</p>
|
||||
@endif
|
||||
</div>
|
||||
@else
|
||||
<h3>Random Wah!</h3>
|
||||
@if ($wah !== "")
|
||||
<img src="{{ $wah }}" alt="Random image featuring a red panda" width="200">
|
||||
@else
|
||||
<p>Unable to retrieve image</p>
|
||||
@endif
|
||||
@endif
|
||||
|
|
|
|||
|
|
@ -1,14 +1,16 @@
|
|||
<x-layout>
|
||||
<x-slot:title>Home</x-slot:title>
|
||||
|
||||
@if(!isLegacy())
|
||||
<x-wah></x-wah>
|
||||
@endif
|
||||
<p>Hi! This is my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide
|
||||
<strong>W</strong>eb.
|
||||
</p>
|
||||
@if(!isLegacy())
|
||||
<br>
|
||||
@endif
|
||||
<p>Some quick facts about me:</p>
|
||||
<h3>Some quick facts about me:</h3>
|
||||
<ul>
|
||||
<li>{{ $age }} y/o, he/him, British</li>
|
||||
<li>Theatre Technician and "Web Developer"</li>
|
||||
|
|
@ -21,7 +23,7 @@
|
|||
@if(!isLegacy())
|
||||
<br>
|
||||
@endif
|
||||
<p>Interests:</p>
|
||||
<h3>Interests:</h3>
|
||||
<ul>
|
||||
<li><strong>Tech Theatre</strong> - Lighting, Stage Management, etc.</li>
|
||||
<li><strong>Programming</strong> - HTML, CSS, JavaScript, C#, Java, PHP, Ruby, Python (<a
|
||||
|
|
@ -30,4 +32,7 @@
|
|||
<li><strong>Gaming</strong> - <a href="https://steamcommunity.com/id/RoscoeDaWah/"><font color="#000000">Steam Profile</font></a>
|
||||
</li>
|
||||
</ul>
|
||||
@if(isLegacy())
|
||||
<x-wah></x-wah>
|
||||
@endif
|
||||
</x-layout>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue