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:
@@ -39,23 +39,26 @@
|
||||
@livewireStyles
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
</head>
|
||||
<body class="min-h-screen bg-zinc-100 text-zinc-900 antialiased dark:bg-zinc-800 dark:text-zinc-100">
|
||||
<body class="relative min-h-screen bg-canvas text-zinc-900 antialiased dark:bg-canvas-dark 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"
|
||||
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-primary-600"
|
||||
>
|
||||
{{ __('layout.skip_to_content') }}
|
||||
</a>
|
||||
|
||||
@auth
|
||||
{{-- Sticky from md up; on narrow screens (and 400 % zoom) the wrapped header would take too much of the view. --}}
|
||||
<header id="app-header" class="dark border-b border-zinc-700 bg-zinc-800 text-zinc-100 md:sticky md:top-0 md:z-30">
|
||||
<div class="mx-auto flex max-w-5xl flex-wrap items-center gap-x-6 gap-y-2 px-4 py-3 sm:px-6">
|
||||
<a href="{{ route('home') }}" wire:navigate class="rounded font-semibold text-zinc-200 hover:text-white focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400">
|
||||
<header id="app-header" class="dark border-b-2 border-primary-400 bg-primary-950 text-zinc-100 shadow-md md:sticky md:top-0 md:z-30">
|
||||
<div class="mx-auto flex max-w-[120rem] flex-wrap items-center gap-x-6 gap-y-2 px-4 py-3 sm:px-6">
|
||||
<a href="{{ route('home') }}" wire:navigate class="flex items-center gap-2 rounded-md font-semibold text-white hover:text-primary-100 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white">
|
||||
<span class="flex size-8 items-center justify-center rounded-lg bg-primary-500 shadow-inner" aria-hidden="true">
|
||||
<x-icon name="squares-2x2" class="size-5 text-white" />
|
||||
</span>
|
||||
{{ app(\App\Modules\Shared\Application\UseCases\CompanyDetailsStore::class)->menuName() }}
|
||||
</a>
|
||||
|
||||
<nav aria-label="{{ __('layout.main_menu') }}" class="flex flex-1 flex-wrap items-center gap-1">
|
||||
<nav aria-label="{{ __('layout.main_menu') }}" class="flex basis-full flex-wrap items-center gap-1 md:basis-auto md:flex-1">
|
||||
@foreach (app(\App\View\MainMenu::class)->groups(auth()->user()) as $group)
|
||||
<x-nav-group :group="$group" />
|
||||
@endforeach
|
||||
@@ -68,6 +71,7 @@
|
||||
</div>
|
||||
</header>
|
||||
@else
|
||||
<div class="pointer-events-none absolute inset-x-0 top-0 -z-10 h-80 bg-linear-to-b from-primary-100 to-transparent dark:from-primary-950/70" aria-hidden="true"></div>
|
||||
<header class="flex items-center justify-end gap-3 px-4 pt-3 sm:px-6">
|
||||
@include('partials.locale-switch')
|
||||
@include('partials.theme-toggle')
|
||||
|
||||
Reference in New Issue
Block a user