siwwy :3 #3
					 5 changed files with 52 additions and 14 deletions
				
			
		we ball
				commit
				
					
					
						b8b36c50d0
					
				
			
		| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
 | 
			
		||||
return [
 | 
			
		||||
    'name' => env('APP_NAME', 'diskfloppy.me'),
 | 
			
		||||
    'version' => '5.5.0',
 | 
			
		||||
    'version' => '6.0',
 | 
			
		||||
    'env' => env('APP_ENV', 'production'),
 | 
			
		||||
    'debug' => (bool) env('APP_DEBUG', false),
 | 
			
		||||
    'url' => env('APP_URL', 'http://localhost'),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,6 +8,7 @@ body {
 | 
			
		|||
    margin: 0;
 | 
			
		||||
    color: var(--foreground);
 | 
			
		||||
    background-color: var(--background);
 | 
			
		||||
    text-align: left;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
html {
 | 
			
		||||
| 
						 | 
				
			
			@ -436,3 +437,12 @@ table.infotable tr td small {
 | 
			
		|||
.hljs {
 | 
			
		||||
    background: none !important;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.me img {
 | 
			
		||||
    float: right;
 | 
			
		||||
    margin: 5px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.me p {
 | 
			
		||||
    text-align: justify;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,5 +13,5 @@
 | 
			
		|||
        alt="Valid HTML 4.01!"><br>
 | 
			
		||||
    This site is best viewed at 1024x768 with 16-bit color or better<br>
 | 
			
		||||
    © floppydisk 2021-{{ date('Y') }}, Site Version {{ config('app.version') }}, <a
 | 
			
		||||
        href="https://github.com/floppydisk05/diskfloppy.me">GitHub</a><br>
 | 
			
		||||
        href="https://github.com/floppydisk05/diskfloppy.me">Source</a><br>
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,8 +2,36 @@
 | 
			
		|||
@section('title', 'Home')
 | 
			
		||||
@section('description', 'This is the personal homepage of floppydisk.')
 | 
			
		||||
@section('content')
 | 
			
		||||
    <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.
 | 
			
		||||
    </p>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <table class="infotable">
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td>
 | 
			
		||||
                <h1>Fun Facts</h1>
 | 
			
		||||
            </td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td>
 | 
			
		||||
                <hr>
 | 
			
		||||
            </td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td>◆ I am (unfortunately) British</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td>◆ I watched the entirety of The Owl House (~18 hours) in under 48 hours.</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td>◆ I spend way too much time on my computer.</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td>◆ Some people say I suck at PHP, but that's clearly wrong :P</td>
 | 
			
		||||
        </tr>
 | 
			
		||||
    </table>
 | 
			
		||||
    <br>
 | 
			
		||||
 | 
			
		||||
    <table class="infotable">
 | 
			
		||||
        <tr>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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">
 | 
			
		||||
        <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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue