From b8b36c50d09b1b1ea59b02601a9f7c5f4bca894b Mon Sep 17 00:00:00 2001 From: Frankie B Date: Mon, 14 Aug 2023 23:45:31 +0100 Subject: we ball --- resources/views/includes/footer.blade.php | 2 +- resources/views/pages/home.blade.php | 32 +++++++++++++++++++++++++++++-- resources/views/pages/music.blade.php | 20 +++++++++---------- 3 files changed, 41 insertions(+), 13 deletions(-) (limited to 'resources') diff --git a/resources/views/includes/footer.blade.php b/resources/views/includes/footer.blade.php index 6fce8ba..19d5597 100644 --- a/resources/views/includes/footer.blade.php +++ b/resources/views/includes/footer.blade.php @@ -13,5 +13,5 @@ alt="Valid HTML 4.01!">
This site is best viewed at 1024x768 with 16-bit color or better
© floppydisk 2021-{{ date('Y') }}, Site Version {{ config('app.version') }}, GitHub
+ href="https://github.com/floppydisk05/diskfloppy.me">Source
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') -

Hi! This my personal homepage on the World Wide Web. -

+
+ Me +

Hi! This my personal homepage on the World Wide Web. +

+ + + + + + + + + + + + + + + + + + + + +
+

Fun Facts

+
+
+
◆ I am (unfortunately) British
◆ I watched the entirety of The Owl House (~18 hours) in under 48 hours.
◆ I spend way too much time on my computer.
◆ Some people say I suck at PHP, but that's clearly wrong :P
+
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
@@ -32,24 +32,24 @@

Top {{ $cfg['toptracks'] }} Tracks (Last 7 days)

- - - - - + + + + + - @foreach ($toptracks as $track) + @foreach ($top_tracks as $track) @php $count++ @endphp - @if ($count >= $cfg['toptracks']) + @if ($count >= $cfg['toptracks']+1) @break @endif - + @endforeach
#TrackArtistPlays
#TrackArtistPlays
{{ $count+1 }}{{ $count }} {{ $track->name }} {{ $track->artist }} {{ $track->plays }}
-
@stop -- cgit v1.2.3-54-g00ecf