Give the UI an indigo look with cards, status badges and empty states
- Dark indigo header and tinted page background; the mobile main menu gets its own row, in the same order as the keyboard reaches it. - Page titles with an icon chip (x-page-title, x-page, x-page-header) and card sections (x-panel, the card utility); x-table styled as a card with an indigo header row in AppServiceProvider::styleTables(). - Job and task statuses, late work, unapproved hours and stock states as badges with icon and text (x-status-badge, x-jobs.status, x-jobs.task-status), never colour alone. - Empty lists as x-empty-state; dashboard quick link tiles, week hour bars and trend arrows; Kanban columns and task cards edged by status; calendar today column and bar accents; quick sale, reports and machine console restyled; signed-out pages show the app name. - Focus rings use the primary colour in both themes (white in the header). - Document the components in CLAUDE.md; test the status badges. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -57,7 +57,7 @@ new #[Layout('layouts.console')] class extends Component
|
||||
@endif
|
||||
|
||||
<div class="grid gap-6 md:grid-cols-2">
|
||||
<section aria-labelledby="console-login-pin" class="space-y-4 rounded-lg border border-zinc-300 p-4 dark:border-zinc-600">
|
||||
<section aria-labelledby="console-login-pin" class="card space-y-4">
|
||||
<h2 id="console-login-pin" class="text-xl font-semibold">{{ __('users.console_login.with_pin') }}</h2>
|
||||
@if ($this->pinUsers === [])
|
||||
<p>{{ __('users.pin_switch.no_users') }}</p>
|
||||
@@ -69,7 +69,7 @@ new #[Layout('layouts.console')] class extends Component
|
||||
@endif
|
||||
</section>
|
||||
|
||||
<section aria-labelledby="console-login-password" class="space-y-4 rounded-lg border border-zinc-300 p-4 dark:border-zinc-600">
|
||||
<section aria-labelledby="console-login-password" class="card space-y-4">
|
||||
<h2 id="console-login-password" class="text-xl font-semibold">{{ __('users.console_login.with_password') }}</h2>
|
||||
<form wire:submit="loginWithPassword" class="space-y-4" novalidate>
|
||||
<x-input id="console-login-email" wire:model="email" type="email" :label="__('auth.email')" autocomplete="username" required />
|
||||
|
||||
@@ -50,7 +50,9 @@ new class extends Component
|
||||
?>
|
||||
|
||||
<div class="mx-auto max-w-md space-y-6 p-4 sm:p-6 sm:pt-16">
|
||||
<h1 class="text-2xl font-semibold">{{ __('auth.forgot_title') }}</h1>
|
||||
@include('partials.guest-brand')
|
||||
|
||||
<h1 class=\"text-2xl font-semibold\">{{ __('auth.forgot_title') }}</h1>
|
||||
|
||||
<div role="status" aria-live="polite">
|
||||
@if ($linkRequested)
|
||||
@@ -60,7 +62,7 @@ new class extends Component
|
||||
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('auth.forgot_intro') }}</p>
|
||||
|
||||
<form wire:submit="sendLink" class="space-y-6" novalidate>
|
||||
<form wire:submit="sendLink" class="card space-y-6" novalidate>
|
||||
<x-input wire:model="email" type="email" :label="__('auth.email')" autocomplete="username" required />
|
||||
|
||||
<div class="flex flex-wrap items-center justify-between gap-4">
|
||||
|
||||
@@ -123,11 +123,11 @@ new class extends Component
|
||||
?>
|
||||
|
||||
<div class="mx-auto max-w-2xl space-y-6 p-4 sm:p-6">
|
||||
<h1 class="text-2xl font-semibold">
|
||||
<x-page-title icon="user">
|
||||
{{ __($userId === null ? 'users.create_title' : 'users.edit_title') }}
|
||||
</h1>
|
||||
</x-page-title>
|
||||
|
||||
<form wire:submit="save" class="space-y-6" novalidate>
|
||||
<form wire:submit="save" class="card space-y-6" novalidate>
|
||||
<x-input wire:model="form.name" :label="__('users.fields.name')" autocomplete="off" required />
|
||||
|
||||
<x-input wire:model="form.email" type="email" :label="__('users.fields.email')" autocomplete="off" required />
|
||||
|
||||
@@ -83,7 +83,7 @@ new class extends Component
|
||||
|
||||
<div class="mx-auto max-w-5xl space-y-6 p-4 sm:p-6">
|
||||
<div class="flex flex-wrap items-center justify-between gap-4">
|
||||
<h1 class="text-2xl font-semibold">{{ __('users.title') }}</h1>
|
||||
<x-page-title icon="users">{{ __('users.title') }}</x-page-title>
|
||||
|
||||
<x-button :href="route('users.create')" wire:navigate icon="plus" :text="__('users.new')" />
|
||||
</div>
|
||||
@@ -105,7 +105,7 @@ new class extends Component
|
||||
</p>
|
||||
|
||||
@if ($this->users->total() === 0)
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('users.empty') }}</p>
|
||||
<x-empty-state icon="users">{{ __('users.empty') }}</x-empty-state>
|
||||
@else
|
||||
<x-table :headers="$this->headers()" :rows="$this->users" paginate>
|
||||
@interact('column_name', $user)
|
||||
|
||||
@@ -37,7 +37,9 @@ new class extends Component
|
||||
?>
|
||||
|
||||
<div class="mx-auto max-w-md space-y-6 p-4 sm:p-6 sm:pt-16">
|
||||
<h1 class="text-2xl font-semibold">{{ __('auth.login_title') }}</h1>
|
||||
@include('partials.guest-brand')
|
||||
|
||||
<h1 class=\"text-2xl font-semibold\">{{ __('auth.login_title') }}</h1>
|
||||
|
||||
@if ($accessEnded)
|
||||
<x-alert role="status" color="yellow" light icon="exclamation-triangle" :text="__('auth.account_disabled')" />
|
||||
@@ -45,7 +47,7 @@ new class extends Component
|
||||
<x-alert role="status" color="green" light icon="information-circle" :text="session('status')" />
|
||||
@endif
|
||||
|
||||
<form wire:submit="login" class="space-y-6" novalidate>
|
||||
<form wire:submit="login" class="card space-y-6" novalidate>
|
||||
<x-input
|
||||
wire:model="email"
|
||||
type="email"
|
||||
|
||||
@@ -45,7 +45,7 @@ new class extends Component
|
||||
?>
|
||||
|
||||
@php
|
||||
$touch = 'inline-flex min-h-11 min-w-11 items-center justify-center gap-2 rounded-lg px-4 py-2 font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:focus-visible:outline-blue-400';
|
||||
$touch = 'inline-flex min-h-11 min-w-11 items-center justify-center gap-2 rounded-lg px-4 py-2 font-medium focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300';
|
||||
@endphp
|
||||
|
||||
<div>
|
||||
@@ -71,7 +71,7 @@ new class extends Component
|
||||
<form method="POST" action="{{ route('console.logout') }}" class="mt-4 border-t border-zinc-300 pt-3 dark:border-zinc-600">
|
||||
@csrf
|
||||
<input type="hidden" name="return_to" value="{{ $returnTo }}">
|
||||
<button type="submit" class="text-sm font-medium text-primary-700 underline hover:no-underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-700 dark:text-primary-300">{{ __('users.pin_switch.with_password') }}</button>
|
||||
<button type="submit" class="text-sm font-medium text-primary-700 underline hover:no-underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:focus-visible:outline-primary-300 dark:text-primary-300">{{ __('users.pin_switch.with_password') }}</button>
|
||||
</form>
|
||||
|
||||
<x-slot:actions>
|
||||
|
||||
@@ -116,7 +116,7 @@ new class extends Component
|
||||
?>
|
||||
|
||||
<div class="mx-auto max-w-md space-y-6 p-4 sm:p-6">
|
||||
<h1 class="text-2xl font-semibold">{{ __('users.pin.title') }}</h1>
|
||||
<x-page-title icon="key">{{ __('users.pin.title') }}</x-page-title>
|
||||
|
||||
<p class="text-sm">{{ __('users.pin.intro') }}</p>
|
||||
|
||||
@@ -124,7 +124,7 @@ new class extends Component
|
||||
{{ $message !== '' ? $message : (app(LoginPins::class)->has((int) auth()->id()) ? __('users.pin.is_set') : __('users.pin.not_set')) }}
|
||||
</p>
|
||||
|
||||
<form wire:submit="save" class="space-y-4" novalidate>
|
||||
<form wire:submit="save" class="card space-y-4" novalidate>
|
||||
<x-password-field id="current-password" wire:model="currentPassword" :label="__('users.pin.current_password')" autocomplete="current-password" />
|
||||
<x-input id="pin" wire:model="pin" type="password" inputmode="numeric" maxlength="6" :label="__('users.pin.pin')" :hint="__('users.pin.pin_hint')" autocomplete="off" />
|
||||
<x-input id="pin-confirmation" wire:model="pinConfirmation" type="password" inputmode="numeric" maxlength="6" :label="__('users.pin.pin_confirmation')" autocomplete="off" />
|
||||
|
||||
@@ -94,11 +94,13 @@ new class extends Component
|
||||
?>
|
||||
|
||||
<div class="mx-auto max-w-md space-y-6 p-4 sm:p-6 sm:pt-16">
|
||||
<h1 class="text-2xl font-semibold">{{ __('auth.reset_title') }}</h1>
|
||||
@include('partials.guest-brand')
|
||||
|
||||
<h1 class=\"text-2xl font-semibold\">{{ __('auth.reset_title') }}</h1>
|
||||
|
||||
<p class="text-sm text-zinc-600 dark:text-zinc-300">{{ __('auth.reset_intro') }}</p>
|
||||
|
||||
<form wire:submit="resetPassword" class="space-y-6" novalidate>
|
||||
<form wire:submit="resetPassword" class="card space-y-6" novalidate>
|
||||
<x-input wire:model="email" type="email" :label="__('auth.email')" autocomplete="username" required />
|
||||
|
||||
<x-password-field
|
||||
|
||||
Reference in New Issue
Block a user