two of them

This commit is contained in:
Roscoe 2025-01-16 19:54:20 +00:00
parent cebb14f59c
commit 3821e58e10
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
13 changed files with 18 additions and 19 deletions

View file

@ -5,10 +5,10 @@
use Illuminate\Support\Facades\File;
use Illuminate\View\View;
class RoscoController extends Controller {
class RoscoLekoController extends Controller {
public function getImages(): array {
$images = [];
foreach (File::glob(public_path('images/rosco').'/*') as $path) {
foreach (File::glob(public_path('images/rosco-leko').'/*') as $path) {
$image_data = [];
try {
$exif = exif_read_data($path);
@ -41,7 +41,7 @@ public function getImages(): array {
* @return View
*/
public function show(): View {
return view('rosco', [
return view('rosco-leko', [
'images' => $this->getImages(),
]);
}

View file

@ -5,7 +5,7 @@
return [
'name' => env('APP_NAME', 'diskfloppy.me'),
'version' => '2025.01.01',
'version' => '2025.01.16',
'env' => env('APP_ENV', 'production'),
'debug' => (bool) env('APP_DEBUG', false),
'url' => env('APP_URL', 'http://localhost'),

View file

@ -98,7 +98,7 @@ div#header {
grid-template-columns: 66px 1fr;
grid-template-rows: 1fr;
grid-column-gap: 15px;
grid-row-gap: 0px;
grid-row-gap: 0;
align-items: center;
}
@ -132,8 +132,8 @@ div#footer {
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: 1fr;
grid-column-gap: 0px;
grid-row-gap: 0px;
grid-column-gap: 0;
grid-row-gap: 0;
align-items: center;
}
@ -274,14 +274,14 @@ div.bookmark-category:first-child h2 {
}
/** Rosco **/
div.rosco-gallery {
/** Rosco & Leko **/
div.rosco-leko-gallery {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
}
div.rosco {
div.rosco-leko-gallery > div {
border: var(--border);
padding: 5px;
filter: var(--shadow-small);
@ -290,7 +290,7 @@ div.rosco {
height: auto;
}
div.rosco,
div.rosco img {
div.rosco-leko-gallery > div,
div.rosco-leko-gallery > div img {
max-width: 220px;
}

View file

Before

Width:  |  Height:  |  Size: 538 KiB

After

Width:  |  Height:  |  Size: 538 KiB

View file

Before

Width:  |  Height:  |  Size: 587 KiB

After

Width:  |  Height:  |  Size: 587 KiB

View file

Before

Width:  |  Height:  |  Size: 746 KiB

After

Width:  |  Height:  |  Size: 746 KiB

View file

Before

Width:  |  Height:  |  Size: 6.6 MiB

After

Width:  |  Height:  |  Size: 6.6 MiB

View file

Before

Width:  |  Height:  |  Size: 422 KiB

After

Width:  |  Height:  |  Size: 422 KiB

View file

Before

Width:  |  Height:  |  Size: 2 MiB

After

Width:  |  Height:  |  Size: 2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 MiB

View file

@ -7,5 +7,5 @@
<a href="/bookmarks">bookmarks</a> |
<a href="/guestbook">guestbook</a> |
<a href="/music">music</a> |
<a href="/rosco">rosco</a>
<a href="/rosco-leko">rosco &amp; leko</a>
</nav>

View file

@ -1,8 +1,8 @@
<x-layout>
<x-slot:title>Rosco</x-slot:title>
<div class="rosco-gallery">
<x-slot:title>Rosco and Leko</x-slot:title>
<div class="rosco-leko-gallery">
@foreach($images as $image)
<div class="rosco">
<div>
<img src="{{ $image["path"] }}" @if(isset($image["description"])) alt="{{ $image["description"] }}" @endif>
@if(isset($image["description"]))
<p>{{$image["description"]}}</p>

View file

@ -4,8 +4,7 @@
use App\Http\Controllers\GuestbookController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\MusicController;
use App\Http\Controllers\PrivacyController;
use App\Http\Controllers\RoscoController;
use App\Http\Controllers\RoscoLekoController;
use Illuminate\Support\Facades\Route;
/*
@ -23,7 +22,7 @@
Route::get('/bookmarks', [BookmarksController::class, 'show']);
Route::get('/guestbook', [GuestbookController::class, 'show']);
Route::get('/music', [MusicController::class, 'show']);
Route::get('/rosco', [RoscoController::class, 'show']);
Route::get('/rosco-leko', [RoscoLekoController::class, 'show']);
Route::post('/guestbook', [GuestbookController::class, 'addEntry'])
->middleware('validator')
->middleware('rate_limit');