aboutsummaryrefslogtreecommitdiff
path: root/resources/views/pages
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-08-14 23:45:31 +0100
committerFrankie B <git@diskfloppy.me>2023-08-14 23:45:31 +0100
commitb8b36c50d09b1b1ea59b02601a9f7c5f4bca894b (patch)
treec41a3f421a2c364c40e24177928718d91f94d626 /resources/views/pages
parente7d58f3185b798df4e020f0c2b7ab36d1d1656dc (diff)
we ball
Diffstat (limited to 'resources/views/pages')
-rw-r--r--resources/views/pages/home.blade.php32
-rw-r--r--resources/views/pages/music.blade.php20
2 files changed, 40 insertions, 12 deletions
diff --git a/resources/views/pages/home.blade.php b/resources/views/pages/home.blade.php
index 9a2a85b..f390b0f 100644
--- a/resources/views/pages/home.blade.php
+++ b/resources/views/pages/home.blade.php
@@ -2,8 +2,36 @@
@section('title', 'Home')
@section('description', 'This is the personal homepage of floppydisk.')
@section('content')
- <p>Hi! This my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide <strong>W</strong>eb.
- </p>
+ <div class="me">
+ <img src="{{ URL::asset('images/me_200x200.jpg') }}" alt="Me">
+ <p>Hi! This my personal homepage on the <strong>W</strong>orld <strong>W</strong>ide <strong>W</strong>eb.
+ </div>
+
+ <table class="infotable">
+ <tr>
+ <td>
+ <h1>Fun Facts</h1>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <hr>
+ </td>
+ </tr>
+ <tr>
+ <td>&#9670; I am (unfortunately) British</td>
+ </tr>
+ <tr>
+ <td>&#9670; I watched the entirety of The Owl House (~18 hours) in under 48 hours.</td>
+ </tr>
+ <tr>
+ <td>&#9670; I spend way too much time on my computer.</td>
+ </tr>
+ <tr>
+ <td>&#9670; Some people say I suck at PHP, but that's clearly wrong :P</td>
+ </tr>
+ </table>
+ <br>
<table class="infotable">
<tr>
diff --git a/resources/views/pages/music.blade.php b/resources/views/pages/music.blade.php
index cba45c2..e24f88c 100644
--- a/resources/views/pages/music.blade.php
+++ b/resources/views/pages/music.blade.php
@@ -8,7 +8,7 @@
$api_root = app('config')->get('app')['api_root'];
$current_track = json_decode(file_get_contents($api_root . '/lastfm/current'));
- $toptracks = json_decode(file_get_contents($api_root . '/lastfm/top'));
+ $top_tracks = json_decode(file_get_contents($api_root . '/lastfm/top'));
$count = 0;
@endphp
<table class="infotable">
@@ -32,24 +32,24 @@
<h2>Top {{ $cfg['toptracks'] }} Tracks (Last 7 days)</h2>
</td>
</tr>
- <tr">
- <td style="text-align: right"><b>#</b></td>
- <td><b>Track</b></td>
- <td><b>Artist</b></td>
- <td><b>Plays</b></td>
+ <tr
+ ">
+ <td style="text-align: right"><b>#</b></td>
+ <td><b>Track</b></td>
+ <td><b>Artist</b></td>
+ <td><b>Plays</b></td>
</tr>
- @foreach ($toptracks as $track)
+ @foreach ($top_tracks as $track)
@php $count++ @endphp
- @if ($count >= $cfg['toptracks'])
+ @if ($count >= $cfg['toptracks']+1)
@break
@endif
<tr>
- <td style="text-align: right">{{ $count+1 }}</td>
+ <td style="text-align: right">{{ $count }}</td>
<td>{{ $track->name }}</td>
<td>{{ $track->artist }}</td>
<td>{{ $track->plays }}</td>
</tr>
@endforeach
</table>
- <hr>
@stop