diff --git a/app/View/Components/Layout/Admin.php b/app/View/Components/Layout/Admin.php new file mode 100644 index 0000000..4f2f5f9 --- /dev/null +++ b/app/View/Components/Layout/Admin.php @@ -0,0 +1,37 @@ +menuItems = [ + [ + 'name' => 'Site Home', + 'link' => route('welcome'), + ], + [ + 'name' => 'Dashboard', + 'link' => route('admin.dashboard'), + ], + ]; + } + + /** + * Get the view / contents that represent the component. + */ + public function render(): View|Closure|string + { + return view('components.layout.admin'); + } +} diff --git a/package-lock.json b/package-lock.json index 3948281..065eab3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,6 +4,9 @@ "requires": true, "packages": { "": { + "dependencies": { + "@tailwindplus/elements": "^1.0.20" + }, "devDependencies": { "@tailwindcss/vite": "^4.0.0", "axios": "^1.11.0", @@ -1085,6 +1088,12 @@ "vite": "^5.2.0 || ^6 || ^7" } }, + "node_modules/@tailwindplus/elements": { + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/@tailwindplus/elements/-/elements-1.0.20.tgz", + "integrity": "sha512-ka/4LlqzXmKjcoyRsKu8eBotl3KaDrMhdTr2+YDpjLj5Sy21FTIgg0gniDBPYTVZMFj6L82Cw4aNh2BJkjuRoQ==", + "license": "SEE LICENSE IN LICENSE.md" + }, "node_modules/@types/estree": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", diff --git a/package.json b/package.json index 7686b29..303bb82 100644 --- a/package.json +++ b/package.json @@ -13,5 +13,8 @@ "laravel-vite-plugin": "^2.0.0", "tailwindcss": "^4.0.0", "vite": "^7.0.7" + }, + "dependencies": { + "@tailwindplus/elements": "^1.0.20" } } diff --git a/resources/js/app.js b/resources/js/app.js index e59d6a0..d9180f8 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -1 +1,2 @@ import './bootstrap'; +import '@tailwindplus/elements'; diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index 18ae52a..9369178 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -1 +1,3 @@ -Hello {{ auth()->getUser()->name }} + + Hello {{ auth()->getUser()->name }} + diff --git a/resources/views/components/layout/admin.blade.php b/resources/views/components/layout/admin.blade.php new file mode 100644 index 0000000..d030a45 --- /dev/null +++ b/resources/views/components/layout/admin.blade.php @@ -0,0 +1,113 @@ + + + + + + Mideast Oklahoma Band Directors Association + @vite(['resources/css/app.css', 'resources/js/app.js']) + + + + + + + + + + + + +
+ +
+ +
+ + +
+
+ MEOBDA +
+ +
+
+
+
+
+ + + + +
+ +
Dashboard
+ +
+ +
+
+ {{ $slot }} +
+
+ + + + diff --git a/resources/views/components/layout/app.blade.php b/resources/views/components/layout/app.blade.php index ca47cdb..90c6dea 100644 --- a/resources/views/components/layout/app.blade.php +++ b/resources/views/components/layout/app.blade.php @@ -8,14 +8,25 @@
-