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');
});
}
}
};
@@ -1,13 +1,15 @@
@extends('stylist-theme-saasland::layouts.app')
@php($title = $siteTitle)
@php($description = $siteDescription)
@php($hero = true)
@section('content')
@php
$title = $siteTitle;
$description = $siteDescription;
$hero = true;
$enabled = fn (string $key, bool $default = true) => filter_var($themeSettings[$key] ?? $default, FILTER_VALIDATE_BOOL);
$heroTitle = filled($themeSettings['hero_title'] ?? null) ? $themeSettings['hero_title'] : 'Transform Your Business With Our SaaS Solution';
$heroText = filled($themeSettings['hero_description'] ?? null) ? $themeSettings['hero_description'] : 'Streamline operations, boost productivity, and improve customer satisfaction with one connected platform built for modern teams.';
@endphp
@section('content')
<section class="hero">
<div class="glow one"></div><div class="glow two"></div>
<div class="wrap hero-inner">
@@ -1,11 +1,10 @@
@props([
'title' => null,
'description' => null,
'eyebrow' => null,
'hero' => false,
'breadcrumbs' => [],
])
@php
$title = $title ?? null;
$description = $description ?? null;
$eyebrow = $eyebrow ?? null;
$hero = $hero ?? false;
$breadcrumbs = $breadcrumbs ?? [];
@endphp
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" id="top">
<head>
@@ -50,7 +49,7 @@
@endunless
<main class="{{ $hero ? 'marketing-main' : 'page-main' }}">
{{ $slot }}
@yield('content')
</main>
@include('stylist-theme-saasland::partials.footer')