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,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')