front end fixes

This commit is contained in:
Mark Gregory
2026-07-27 07:41:54 +01:00
parent 108f95dbfa
commit 09cad63280
10 changed files with 100 additions and 53 deletions
@@ -1,9 +1,13 @@
<x-stylist-theme-saasland::layouts.app
title="Blog"
description="Ideas, guides and updates from our team."
eyebrow="Insights"
:breadcrumbs="['Blog' => null]"
>
@extends('stylist-theme-saasland::layouts.app')
@php
$title = 'Blog';
$description = 'Ideas, guides and updates from our team.';
$eyebrow = 'Insights';
$breadcrumbs = ['Blog' => null];
@endphp
@section('content')
<section class="content-section">
<div class="wrap">
<div class="content-grid">
@@ -24,4 +28,4 @@
<div class="theme-pagination">{{ $records->links() }}</div>
</div>
</section>
</x-stylist-theme-saasland::layouts.app>
@endsection
@@ -1,9 +1,13 @@
<x-stylist-theme-saasland::layouts.app
:title="$record->title"
:description="$record->excerpt"
eyebrow="Blog"
:breadcrumbs="['Blog' => route('blog.public.index'), $record->title => null]"
>
@extends('stylist-theme-saasland::layouts.app')
@php
$title = $record->title;
$description = $record->excerpt;
$eyebrow = 'Blog';
$breadcrumbs = ['Blog' => route('blog.public.index'), $record->title => null];
@endphp
@section('content')
<section class="content-section">
<div class="wrap content-layout">
<article class="content-card prose-content">
@@ -16,4 +20,4 @@
</article>
</div>
</section>
</x-stylist-theme-saasland::layouts.app>
@endsection
@@ -1,9 +1,13 @@
<x-stylist-theme-saasland::layouts.app
title="News"
description="The latest announcements, releases and company updates."
eyebrow="Updates"
:breadcrumbs="['News' => null]"
>
@extends('stylist-theme-saasland::layouts.app')
@php
$title = 'News';
$description = 'The latest announcements, releases and company updates.';
$eyebrow = 'Updates';
$breadcrumbs = ['News' => null];
@endphp
@section('content')
<section class="content-section">
<div class="wrap">
<div class="content-grid">
@@ -24,4 +28,4 @@
<div class="theme-pagination">{{ $records->links() }}</div>
</div>
</section>
</x-stylist-theme-saasland::layouts.app>
@endsection
@@ -1,9 +1,13 @@
<x-stylist-theme-saasland::layouts.app
:title="$record->title"
:description="$record->excerpt"
eyebrow="News"
:breadcrumbs="['News' => route('news.public.index'), $record->title => null]"
>
@extends('stylist-theme-saasland::layouts.app')
@php
$title = $record->title;
$description = $record->excerpt;
$eyebrow = 'News';
$breadcrumbs = ['News' => route('news.public.index'), $record->title => null];
@endphp
@section('content')
<section class="content-section">
<div class="wrap content-layout">
<article class="content-card prose-content">
@@ -16,4 +20,4 @@
</article>
</div>
</section>
</x-stylist-theme-saasland::layouts.app>
@endsection
@@ -1,9 +1,13 @@
<x-stylist-theme-saasland::layouts.app
:title="$page->title"
:description="$page->summary"
eyebrow="Page"
:breadcrumbs="[$page->title => null]"
>
@extends('stylist-theme-saasland::layouts.app')
@php
$title = $page->title;
$description = $page->summary;
$eyebrow = 'Page';
$breadcrumbs = [$page->title => null];
@endphp
@section('content')
<section class="content-section">
<div class="wrap content-layout">
<article class="content-card prose-content">
@@ -15,4 +19,4 @@
</article>
</div>
</section>
</x-stylist-theme-saasland::layouts.app>
@endsection
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Modules\Stylist\Services;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Schema;
use Modules\Blog\Models\Blog;
use Modules\Faq\Models\Faq;
@@ -6,15 +6,15 @@ use Tests\TestCase;
final class WelcomeThemeViewTest extends TestCase
{
public function test_bundled_welcome_theme_view_namespace_is_registered(): void
public function test_bundled_saasland_theme_view_namespace_is_registered(): void
{
$this->assertTrue(view()->exists('stylist-theme-welcome::welcome'));
$this->assertTrue(view()->exists('stylist-theme-saasland::home'));
}
public function test_home_route_renders_the_welcome_theme(): void
public function test_home_route_renders_the_saasland_theme(): void
{
$this->get('/')
->assertOk()
->assertViewIs('stylist-theme-welcome::welcome');
->assertViewIs('stylist-theme-saasland::home');
}
}
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('testimonials') && ! Schema::hasColumn('testimonials', 'content')) {
Schema::table('testimonials', function (Blueprint $table): void {
$table->text('content')->nullable()->after('company');
});
}
}
public function down(): void
{
if (Schema::hasTable('testimonials') && Schema::hasColumn('testimonials', 'content')) {
Schema::table('testimonials', function (Blueprint $table): void {
$table->dropColumn('content');
});
}
}
};