Add admin-editable About page
Mirrors the existing Bio singleton pattern: a new `about` table/model, admin CRUD at /admin/about, and a public page at /about linked from both the header nav and the admin homepage. Content is wrapped in .e-content so it lays out correctly within the site's CSS grid. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013bzYwaDD8p3XNDMYKvXKrs
This commit is contained in:
parent
9532aae37e
commit
9e9fbdc127
12 changed files with 252 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\AboutPageController;
|
||||
use App\Http\Controllers\Admin\AboutController;
|
||||
use App\Http\Controllers\Admin\ArticlesController as AdminArticlesController;
|
||||
use App\Http\Controllers\Admin\BioController;
|
||||
use App\Http\Controllers\Admin\ClientsController;
|
||||
|
|
@ -51,6 +53,9 @@ Route::view('projects', 'projects');
|
|||
// Static colophon page
|
||||
Route::view('colophon', 'colophon');
|
||||
|
||||
// About page
|
||||
Route::get('about', [AboutPageController::class, 'show']);
|
||||
|
||||
// The login routes to get auth’d for admin
|
||||
Route::get('login', [AuthController::class, 'showLogin'])->name('login');
|
||||
Route::post('login', [AuthController::class, 'login']);
|
||||
|
|
@ -167,6 +172,12 @@ Route::middleware(MyAuthMiddleware::class)->prefix('admin')->group(function () {
|
|||
Route::put('/', [SettingsController::class, 'update']);
|
||||
});
|
||||
|
||||
// About
|
||||
Route::prefix('about')->group(function () {
|
||||
Route::get('/', [AboutController::class, 'show'])->name('admin.about.show');
|
||||
Route::put('/', [AboutController::class, 'update']);
|
||||
});
|
||||
|
||||
// Passkeys
|
||||
Route::prefix('passkeys')->group(function () {
|
||||
Route::get('/', [PasskeysController::class, 'index']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue