updated headerbar with headeraction option

This commit is contained in:
2025-03-10 16:14:49 +01:00
parent df43c77f87
commit 9fd01ee43a
5 changed files with 30 additions and 12 deletions
@@ -0,0 +1,5 @@
<div class="py-6 px-4 sm:px-6 lg:px-8">
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
{{ $slot }}
</h2>
</div>
@@ -0,0 +1,5 @@
<div class="py-6 px-4 sm:px-6 lg:px-8">
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
{{ $slot }}
</h2>
</div>
+2 -2
View File
@@ -1,4 +1,4 @@
<div class="p-6 lg:p-8 bg-white dark:bg-gray-800 dark:bg-linear-to-bl dark:from-gray-700/50 dark:via-transparent border-b border-gray-200 dark:border-gray-700"> <div class="p-6 lg:p-8 bg-white dark:bg-zinc-700 dark:bg-linear-to-bl dark:from-gray-700/50 dark:via-transparent border-b border-gray-200 dark:border-gray-700">
<x-application-logo class="block h-12 w-auto" /> <x-application-logo class="block h-12 w-auto" />
<h1 class="mt-8 text-2xl font-medium text-gray-900 dark:text-white"> <h1 class="mt-8 text-2xl font-medium text-gray-900 dark:text-white">
@@ -13,7 +13,7 @@
</p> </p>
</div> </div>
<div class="bg-gray-200 dark:bg-gray-800 bg-opacity-25 grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8 p-6 lg:p-8"> <div class="bg-gray-200 dark:bg-zinc-700 bg-opacity-25 grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8 p-6 lg:p-8">
<div> <div>
<div class="flex items-center"> <div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" class="size-6 stroke-gray-400"> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" class="size-6 stroke-gray-400">
+1 -3
View File
@@ -1,13 +1,11 @@
<x-app-layout> <x-app-layout>
<x-slot name="header"> <x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
{{ __('Dashboard') }} {{ __('Dashboard') }}
</h2>
</x-slot> </x-slot>
<div class="py-12"> <div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white dark:bg-gray-800 overflow-hidden shadow-xl sm:rounded-lg"> <div class="bg-white dark:bg-zinc-800 overflow-hidden shadow-xl sm:rounded-lg">
<x-welcome /> <x-welcome />
</div> </div>
</div> </div>
+14 -4
View File
@@ -23,15 +23,25 @@
<x-banner /> <x-banner />
<div> <div>
<x-navbar></x-navbar> <x-navbar />
<!-- Page Heading --> <!-- Page Heading -->
@if (isset($header) || isset($headeraction))
<div class="bg-white dark:bg-zinc-700 shadow-sm ">
<div class="flex justify-between max-w-7xl mx-auto">
@if (isset($header)) @if (isset($header))
<header class="bg-white dark:bg-gray-800 shadow-sm"> <x-header>
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
{{ $header }} {{ $header }}
</x-header>
@endif
@if (isset($headeraction))
<x-headeraction>
{{ $headeraction }}
</x-headeraction>
@endif
</div>
</div> </div>
</header>
@endif @endif
<!-- Page Content --> <!-- Page Content -->