Add the touch-screen machine console

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-11-26 16:57:56 +02:00
co-authored by Claude Sonnet 5.5
parent 3e1c671949
commit 920fecdeb2
12 changed files with 1078 additions and 3 deletions
+54
View File
@@ -0,0 +1,54 @@
<!DOCTYPE html>
{{--
Full-screen layout of the machine console (spec 19.6) for the tablet or
touch screen next to a machine: no main menu, large text. The page's own
header has the machine's name, the user, Refresh, Change user and the
way back. The theme follows the stored choice like the main layout.
--}}
<html
lang="{{ str_replace('_', '-', app()->getLocale()) }}"
x-data="tallstackui_darkTheme({ default: 'system' })"
x-bind:class="{ 'dark': darkTheme }"
>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ $title ?? config('app.name') }}</title>
<script>
(() => {
const applyStoredTheme = () => {
const stored = localStorage.getItem('dark-theme');
const dark = stored === 'dark' || stored === 'true'
|| (stored !== 'light' && stored !== 'false' && window.matchMedia('(prefers-color-scheme: dark)').matches);
document.documentElement.classList.toggle('dark', dark);
};
applyStoredTheme();
document.addEventListener('livewire:navigating', (event) => event.detail.onSwap(applyStoredTheme));
})();
</script>
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=inter:400,500,600&display=swap" rel="stylesheet" />
@include('partials.tallstackui-script')
@livewireStyles
@vite(['resources/css/app.css', 'resources/js/app.js'])
</head>
<body class="min-h-screen bg-zinc-100 text-lg text-zinc-900 antialiased dark:bg-zinc-800 dark:text-zinc-100">
<a
href="#main-content"
class="sr-only focus:not-sr-only focus:fixed focus:start-4 focus:top-4 focus:z-50 focus:rounded-md focus:bg-white focus:px-4 focus:py-2 focus:text-zinc-900 focus:shadow-lg focus:outline-2 focus:outline-offset-2 focus:outline-blue-700"
>
{{ __('layout.skip_to_content') }}
</a>
<main id="main-content" tabindex="-1" class="focus:outline-none">
{{ $slot }}
</main>
@livewireScripts
</body>
</html>