Wire admin studio SSR and search infrastructure
This commit is contained in:
51
resources/views/layouts/story-editor.blade.php
Normal file
51
resources/views/layouts/story-editor.blade.php
Normal file
@@ -0,0 +1,51 @@
|
||||
{{--
|
||||
Story Editor Layout — full-viewport, no site chrome.
|
||||
Loads the same Nova assets (CSS + nova.js) but strips the topbar,
|
||||
toolbar, and footer so the React editor owns the entire viewport.
|
||||
--}}
|
||||
@php
|
||||
$skinbaseSessionSkipped = request()->attributes->get('skinbase.session_skipped') === true;
|
||||
$skinbaseCanUseSession = request()->hasSession() && ! $skinbaseSessionSkipped;
|
||||
@endphp
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
@if($skinbaseCanUseSession)
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
@endif
|
||||
|
||||
<title>{{ $page_title ?? 'Story Editor' }} — Skinbase</title>
|
||||
|
||||
<link rel="icon" type="image/png" href="/favicon/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon/favicon.svg" />
|
||||
<link rel="shortcut icon" href="/favicon/favicon.ico" />
|
||||
|
||||
<link rel="preconnect" href="https://cdnjs.cloudflare.com" crossorigin>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" crossorigin>
|
||||
|
||||
@vite([
|
||||
'resources/css/app.css',
|
||||
'resources/css/nova-grid.css',
|
||||
'resources/scss/nova.scss',
|
||||
'resources/js/nova.js',
|
||||
])
|
||||
|
||||
<style>
|
||||
html, body { margin: 0; padding: 0; }
|
||||
#story-editor-wrap { min-height: 100vh; }
|
||||
</style>
|
||||
|
||||
@stack('head')
|
||||
</head>
|
||||
|
||||
<body class="bg-nova-900 text-white" style="background-color: rgb(14,18,27);">
|
||||
|
||||
<div id="story-editor-wrap">
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
@stack('scripts')
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user