-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flowbite implementation and dashboard layout
- Loading branch information
Showing
13 changed files
with
433 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
<x-app-layout> | ||
<x-slot name="header"> | ||
<h2 class="font-semibold text-xl text-gray-800 leading-tight"> | ||
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-300 leading-tight"> | ||
{{ __('Dashboard') }} | ||
</h2> | ||
</x-slot> | ||
|
||
<div class="py-12"> | ||
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> | ||
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg"> | ||
<x-jet-welcome /> | ||
{{-- <x-jet-welcome />--}} | ||
</div> | ||
|
||
</div> | ||
</div> | ||
</x-app-layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,62 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="csrf-token" content="{{ csrf_token() }}"> | ||
|
||
<title>{{ config('app.name', 'Laravel') }}</title> | ||
|
||
<!-- Fonts --> | ||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" | ||
x-data="{ | ||
darkMode: localStorage.getItem('dark') === 'true' | ||
}" | ||
x-init="$watch('darkMode', function(val){ | ||
localStorage.setItem('dark', val); | ||
console.log(darkMode); | ||
})" | ||
x-bind:class="{ 'dark': darkMode }" | ||
|
||
> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="csrf-token" content="{{ csrf_token() }}"> | ||
|
||
<title>{{ config('app.name', 'OMJ task Manager') }}</title> | ||
|
||
<!-- Fonts --> | ||
{{-- <link rel="stylesheet" href="https://fonts.bunny.net/css2?family=Nunito:wght@400;600;700&display=swap">--}} | ||
|
||
<!-- Scripts --> | ||
@vite(['resources/css/app.css', 'resources/js/app.js']) | ||
|
||
<!-- Styles --> | ||
@livewireStyles | ||
</head> | ||
<body class="font-sans antialiased"> | ||
<x-jet-banner /> | ||
|
||
<div class="min-h-screen bg-gray-100"> | ||
@livewire('navigation-menu') | ||
|
||
<!-- Page Heading --> | ||
@if (isset($header)) | ||
<header class="bg-white shadow"> | ||
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"> | ||
{{ $header }} | ||
</div> | ||
</header> | ||
@endif | ||
|
||
<!-- Page Content --> | ||
<main> | ||
{{ $slot }} | ||
</main> | ||
</div> | ||
|
||
@stack('modals') | ||
|
||
@livewireScripts | ||
</body> | ||
<!-- Scripts --> | ||
@vite(['resources/css/app.css', 'resources/js/app.js']) | ||
|
||
<!-- Styles --> | ||
@livewireStyles | ||
</head> | ||
<body class="font-sans antialiased"> | ||
<x-jet-banner/> | ||
|
||
<div class="flex flex-col min-h-screen bg-gray-100 dark:bg-oblue-600"> | ||
@livewire('navigation-menu') | ||
|
||
<!-- Page Heading --> | ||
@if (isset($header)) | ||
<header class="bg-white shadow dark:bg-oblue-400 "> | ||
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8"> | ||
{{ $header }} | ||
</div> | ||
</header> | ||
@endif | ||
|
||
<!-- Page Content --> | ||
<main class="h-full"> | ||
{{ $slot }} | ||
</main> | ||
|
||
<footer class="p-4 mt-auto justify-between bg-white shadow md:px-6 md:py-8 dark:bg-oblue-700"> | ||
<span class="block xs:text-xs md:text-sm text-gray-500 text-center dark:text-olblue-600 sm:text-center dark:text-gray-400">© 2022 <a | ||
href="https://www.omjournal.org" | ||
class="hover:underline">Oman Medical Journal™</a>. All Rights Reserved. | ||
</span> | ||
</footer> | ||
</div> | ||
|
||
@stack('modals') | ||
<script src="https://unpkg.com/[email protected]/dist/flowbite.js" defer></script> | ||
@livewireScripts | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,5 @@ | |
{{ $slot }} | ||
</div> | ||
</body> | ||
<script src="https://unpkg.com/[email protected]/dist/flowbite.js" defer></script> | ||
</html> |
Oops, something went wrong.