75 lines
2.9 KiB
PHP
75 lines
2.9 KiB
PHP
@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>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<title>{{ $title && $title !== $siteTitle ? $title.' — '.$siteTitle : $siteTitle }}</title>
|
|
<meta name="description" content="{{ $description ?: $siteDescription }}">
|
|
|
|
<link rel="icon" href="/favicon.ico" sizes="any">
|
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
|
|
<link rel="stylesheet" href="{{ route('stylist.theme.asset', ['theme' => 'saasland', 'path' => 'css/theme.css']) }}">
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
@stack('theme-head')
|
|
</head>
|
|
<body>
|
|
<div class="saasland-theme" x-data="{ menuOpen: false, openFaq: null }">
|
|
@php
|
|
$compositionRenderer = app(\Modules\Content\Services\PageRenderer::class);
|
|
$compositionPageKey = $pageKey ?? null;
|
|
$hasPageComposition = $compositionPageKey && $compositionRenderer->hasComposition($compositionPageKey);
|
|
@endphp
|
|
@if($hasPageComposition)
|
|
{!! $compositionRenderer->renderRegion($compositionPageKey, 'header') !!}
|
|
@else
|
|
@include('stylist-theme-saasland::partials.header')
|
|
@endif
|
|
|
|
@unless($hero)
|
|
<section class="page-hero">
|
|
<div class="page-orb page-orb-one"></div>
|
|
<div class="page-orb page-orb-two"></div>
|
|
<div class="wrap page-hero-inner">
|
|
@if ($breadcrumbs)
|
|
<nav class="breadcrumbs" aria-label="Breadcrumb">
|
|
<a href="{{ url('/') }}">Home</a>
|
|
@foreach ($breadcrumbs as $label => $url)
|
|
<span aria-hidden="true">/</span>
|
|
@if ($url)<a href="{{ $url }}">{{ $label }}</a>@else<span aria-current="page">{{ $label }}</span>@endif
|
|
@endforeach
|
|
</nav>
|
|
@endif
|
|
@if ($eyebrow)<span class="eyebrow">{{ $eyebrow }}</span>@endif
|
|
<h1>{{ $title }}</h1>
|
|
@if ($description)<p>{{ $description }}</p>@endif
|
|
</div>
|
|
</section>
|
|
@endunless
|
|
|
|
<main class="{{ $hero ? 'marketing-main' : 'page-main' }}">
|
|
@yield('content')
|
|
</main>
|
|
|
|
@if($hasPageComposition)
|
|
{!! $compositionRenderer->renderRegion($compositionPageKey, 'footer') !!}
|
|
@else
|
|
@include('stylist-theme-saasland::partials.footer')
|
|
@endif
|
|
</div>
|
|
|
|
<script src="{{ route('stylist.theme.asset', ['theme' => 'saasland', 'path' => 'js/app.js']) }}" defer></script>
|
|
@stack('theme-scripts')
|
|
</body>
|
|
</html>
|