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 @extends('stylist-theme-saasland::layouts.app')
title="Blog"
description="Ideas, guides and updates from our team." @php
eyebrow="Insights" $title = 'Blog';
:breadcrumbs="['Blog' => null]" $description = 'Ideas, guides and updates from our team.';
> $eyebrow = 'Insights';
$breadcrumbs = ['Blog' => null];
@endphp
@section('content')
<section class="content-section"> <section class="content-section">
<div class="wrap"> <div class="wrap">
<div class="content-grid"> <div class="content-grid">
@@ -24,4 +28,4 @@
<div class="theme-pagination">{{ $records->links() }}</div> <div class="theme-pagination">{{ $records->links() }}</div>
</div> </div>
</section> </section>
</x-stylist-theme-saasland::layouts.app> @endsection
@@ -1,9 +1,13 @@
<x-stylist-theme-saasland::layouts.app @extends('stylist-theme-saasland::layouts.app')
:title="$record->title"
:description="$record->excerpt" @php
eyebrow="Blog" $title = $record->title;
:breadcrumbs="['Blog' => route('blog.public.index'), $record->title => null]" $description = $record->excerpt;
> $eyebrow = 'Blog';
$breadcrumbs = ['Blog' => route('blog.public.index'), $record->title => null];
@endphp
@section('content')
<section class="content-section"> <section class="content-section">
<div class="wrap content-layout"> <div class="wrap content-layout">
<article class="content-card prose-content"> <article class="content-card prose-content">
@@ -16,4 +20,4 @@
</article> </article>
</div> </div>
</section> </section>
</x-stylist-theme-saasland::layouts.app> @endsection
@@ -1,9 +1,13 @@
<x-stylist-theme-saasland::layouts.app @extends('stylist-theme-saasland::layouts.app')
title="News"
description="The latest announcements, releases and company updates." @php
eyebrow="Updates" $title = 'News';
:breadcrumbs="['News' => null]" $description = 'The latest announcements, releases and company updates.';
> $eyebrow = 'Updates';
$breadcrumbs = ['News' => null];
@endphp
@section('content')
<section class="content-section"> <section class="content-section">
<div class="wrap"> <div class="wrap">
<div class="content-grid"> <div class="content-grid">
@@ -24,4 +28,4 @@
<div class="theme-pagination">{{ $records->links() }}</div> <div class="theme-pagination">{{ $records->links() }}</div>
</div> </div>
</section> </section>
</x-stylist-theme-saasland::layouts.app> @endsection
@@ -1,9 +1,13 @@
<x-stylist-theme-saasland::layouts.app @extends('stylist-theme-saasland::layouts.app')
:title="$record->title"
:description="$record->excerpt" @php
eyebrow="News" $title = $record->title;
:breadcrumbs="['News' => route('news.public.index'), $record->title => null]" $description = $record->excerpt;
> $eyebrow = 'News';
$breadcrumbs = ['News' => route('news.public.index'), $record->title => null];
@endphp
@section('content')
<section class="content-section"> <section class="content-section">
<div class="wrap content-layout"> <div class="wrap content-layout">
<article class="content-card prose-content"> <article class="content-card prose-content">
@@ -16,4 +20,4 @@
</article> </article>
</div> </div>
</section> </section>
</x-stylist-theme-saasland::layouts.app> @endsection
@@ -1,9 +1,13 @@
<x-stylist-theme-saasland::layouts.app @extends('stylist-theme-saasland::layouts.app')
:title="$page->title"
:description="$page->summary" @php
eyebrow="Page" $title = $page->title;
:breadcrumbs="[$page->title => null]" $description = $page->summary;
> $eyebrow = 'Page';
$breadcrumbs = [$page->title => null];
@endphp
@section('content')
<section class="content-section"> <section class="content-section">
<div class="wrap content-layout"> <div class="wrap content-layout">
<article class="content-card prose-content"> <article class="content-card prose-content">
@@ -15,4 +19,4 @@
</article> </article>
</div> </div>
</section> </section>
</x-stylist-theme-saasland::layouts.app> @endsection
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Modules\Stylist\Services; namespace Modules\Stylist\Services;
use Illuminate\Database\Eloquent\Collection; use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
use Modules\Blog\Models\Blog; use Modules\Blog\Models\Blog;
use Modules\Faq\Models\Faq; use Modules\Faq\Models\Faq;
@@ -6,15 +6,15 @@ use Tests\TestCase;
final class WelcomeThemeViewTest extends 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('/') $this->get('/')
->assertOk() ->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') @extends('stylist-theme-saasland::layouts.app')
@php($title = $siteTitle)
@php($description = $siteDescription)
@php($hero = true)
@section('content')
@php @php
$title = $siteTitle;
$description = $siteDescription;
$hero = true;
$enabled = fn (string $key, bool $default = true) => filter_var($themeSettings[$key] ?? $default, FILTER_VALIDATE_BOOL); $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'; $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.'; $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 @endphp
@section('content')
<section class="hero"> <section class="hero">
<div class="glow one"></div><div class="glow two"></div> <div class="glow one"></div><div class="glow two"></div>
<div class="wrap hero-inner"> <div class="wrap hero-inner">
@@ -1,11 +1,10 @@
@props([ @php
'title' => null, $title = $title ?? null;
'description' => null, $description = $description ?? null;
'eyebrow' => null, $eyebrow = $eyebrow ?? null;
'hero' => false, $hero = $hero ?? false;
'breadcrumbs' => [], $breadcrumbs = $breadcrumbs ?? [];
]) @endphp
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" id="top"> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}" id="top">
<head> <head>
@@ -50,7 +49,7 @@
@endunless @endunless
<main class="{{ $hero ? 'marketing-main' : 'page-main' }}"> <main class="{{ $hero ? 'marketing-main' : 'page-main' }}">
{{ $slot }} @yield('content')
</main> </main>
@include('stylist-theme-saasland::partials.footer') @include('stylist-theme-saasland::partials.footer')