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();
|
$data = $response->json();
|
||||||
if ($data == null) return "";
|
if ($data == null) return "";
|
||||||
$path = parse_url("https://api.tinyfox.dev" . $data["loc"], PHP_URL_PATH);
|
$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) {
|
} catch (Exception $ex) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => env('APP_NAME', 'wah.moe'),
|
'name' => env('APP_NAME', 'wah.moe'),
|
||||||
'version' => '2025.08.30-patch2',
|
'version' => '2026.01.09',
|
||||||
'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'),
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,11 @@
|
||||||
<p>Unable to retrieve image</p>
|
<p>Unable to retrieve image</p>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</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
|
@endif
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,16 @@
|
||||||
<x-layout>
|
<x-layout>
|
||||||
<x-slot:title>Home</x-slot:title>
|
<x-slot:title>Home</x-slot:title>
|
||||||
|
|
||||||
|
@if(!isLegacy())
|
||||||
<x-wah></x-wah>
|
<x-wah></x-wah>
|
||||||
|
@endif
|
||||||
<p>Hi! This is my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide
|
<p>Hi! This is my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide
|
||||||
<strong>W</strong>eb.
|
<strong>W</strong>eb.
|
||||||
</p>
|
</p>
|
||||||
@if(!isLegacy())
|
@if(!isLegacy())
|
||||||
<br>
|
<br>
|
||||||
@endif
|
@endif
|
||||||
<p>Some quick facts about me:</p>
|
<h3>Some quick facts about me:</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>{{ $age }} y/o, he/him, British</li>
|
<li>{{ $age }} y/o, he/him, British</li>
|
||||||
<li>Theatre Technician and "Web Developer"</li>
|
<li>Theatre Technician and "Web Developer"</li>
|
||||||
|
|
@ -21,7 +23,7 @@
|
||||||
@if(!isLegacy())
|
@if(!isLegacy())
|
||||||
<br>
|
<br>
|
||||||
@endif
|
@endif
|
||||||
<p>Interests:</p>
|
<h3>Interests:</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>Tech Theatre</strong> - Lighting, Stage Management, etc.</li>
|
<li><strong>Tech Theatre</strong> - Lighting, Stage Management, etc.</li>
|
||||||
<li><strong>Programming</strong> - HTML, CSS, JavaScript, C#, Java, PHP, Ruby, Python (<a
|
<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><strong>Gaming</strong> - <a href="https://steamcommunity.com/id/RoscoeDaWah/"><font color="#000000">Steam Profile</font></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@if(isLegacy())
|
||||||
|
<x-wah></x-wah>
|
||||||
|
@endif
|
||||||
</x-layout>
|
</x-layout>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue