diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index 2ed41aa..75293a8 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -39,6 +39,8 @@ public function panel(Panel $panel): Panel ->sidebarCollapsibleOnDesktop() ->maxContentWidth(MaxWidth::Full) ->viteTheme('resources/css/filament/common/theme.css') + ->brandLogo(fn () => view('filament.brand')) + ->brandLogoHeight('3rem') ->discoverResources( in: app_path('Filament/Admin/Resources'), for: 'App\\Filament\\Admin\\Resources', diff --git a/app/Providers/Filament/ShelterPanelProvider.php b/app/Providers/Filament/ShelterPanelProvider.php index 4b59fb6..27a8e41 100644 --- a/app/Providers/Filament/ShelterPanelProvider.php +++ b/app/Providers/Filament/ShelterPanelProvider.php @@ -42,6 +42,8 @@ public function panel(Panel $panel): Panel ->sidebarCollapsibleOnDesktop() ->maxContentWidth(MaxWidth::Full) ->viteTheme('resources/css/filament/common/theme.css') + ->brandLogo(fn () => view('filament.brand')) + ->brandLogoHeight('3rem') ->discoverResources( in: app_path('Filament/Shelter/Resources'), for: 'App\\Filament\\Shelter\\Resources', diff --git a/app/Providers/FilamentServiceProvider.php b/app/Providers/FilamentServiceProvider.php index a86d6ab..dbb0e14 100644 --- a/app/Providers/FilamentServiceProvider.php +++ b/app/Providers/FilamentServiceProvider.php @@ -189,6 +189,11 @@ protected function configurePages(): void protected function renderHooks(): void { + FilamentView::registerRenderHook( + PanelsRenderHook::HEAD_START, + fn () => view('filament.favicons') + ); + FilamentView::registerRenderHook( PanelsRenderHook::FOOTER, fn () => view('filament.version', [ @@ -196,6 +201,11 @@ protected function renderHooks(): void ]), ); + FilamentView::registerRenderHook( + PanelsRenderHook::SIDEBAR_NAV_END, + fn () => view('filament.sidebar-footer') + ); + FilamentView::registerRenderHook( PanelsRenderHook::USER_MENU_PROFILE_AFTER, fn () => view('components.locale-switcher.panel', [ diff --git a/config/blade-icons.php b/config/blade-icons.php new file mode 100644 index 0000000..24c85fe --- /dev/null +++ b/config/blade-icons.php @@ -0,0 +1,185 @@ + [ + + 'default' => [ + + /* + |----------------------------------------------------------------- + | Icons Path + |----------------------------------------------------------------- + | + | Provide the relative path from your app root to your SVG icons + | directory. Icons are loaded recursively so there's no need to + | list every sub-directory. + | + | Relative to the disk root when the disk option is set. + | + */ + + 'path' => 'resources/svg', + + /* + |----------------------------------------------------------------- + | Filesystem Disk + |----------------------------------------------------------------- + | + | Optionally, provide a specific filesystem disk to read + | icons from. When defining a disk, the "path" option + | starts relatively from the disk root. + | + */ + + 'disk' => '', + + /* + |----------------------------------------------------------------- + | Default Prefix + |----------------------------------------------------------------- + | + | This config option allows you to define a default prefix for + | your icons. The dash separator will be applied automatically + | to every icon name. It's required and needs to be unique. + | + */ + + 'prefix' => 'icon', + + /* + |----------------------------------------------------------------- + | Fallback Icon + |----------------------------------------------------------------- + | + | This config option allows you to define a fallback + | icon when an icon in this set cannot be found. + | + */ + + 'fallback' => '', + + /* + |----------------------------------------------------------------- + | Default Set Classes + |----------------------------------------------------------------- + | + | This config option allows you to define some classes which + | will be applied by default to all icons within this set. + | + */ + + 'class' => '', + + /* + |----------------------------------------------------------------- + | Default Set Attributes + |----------------------------------------------------------------- + | + | This config option allows you to define some attributes which + | will be applied by default to all icons within this set. + | + */ + + 'attributes' => [ + // 'width' => 50, + // 'height' => 50, + ], + + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Global Default Classes + |-------------------------------------------------------------------------- + | + | This config option allows you to define some classes which + | will be applied by default to all icons. + | + */ + + 'class' => '', + + /* + |-------------------------------------------------------------------------- + | Global Default Attributes + |-------------------------------------------------------------------------- + | + | This config option allows you to define some attributes which + | will be applied by default to all icons. + | + */ + + 'attributes' => [ + // 'width' => 50, + // 'height' => 50, + ], + + /* + |-------------------------------------------------------------------------- + | Global Fallback Icon + |-------------------------------------------------------------------------- + | + | This config option allows you to define a global fallback + | icon when an icon in any set cannot be found. It can + | reference any icon from any configured set. + | + */ + + 'fallback' => '', + + /* + |-------------------------------------------------------------------------- + | Components + |-------------------------------------------------------------------------- + | + | These config options allow you to define some + | settings related to Blade Components. + | + */ + + 'components' => [ + + /* + |---------------------------------------------------------------------- + | Disable Components + |---------------------------------------------------------------------- + | + | This config option allows you to disable Blade components + | completely. It's useful to avoid performance problems + | when working with large icon libraries. + | + */ + + 'disabled' => false, + + /* + |---------------------------------------------------------------------- + | Default Icon Component Name + |---------------------------------------------------------------------- + | + | This config option allows you to define the name + | for the default Icon class component. + | + */ + + 'default' => 'icon', + + ], + +]; diff --git a/lang/en/app.php b/lang/en/app.php index 91f1aa3..c153961 100644 --- a/lang/en/app.php +++ b/lang/en/app.php @@ -9,6 +9,7 @@ 'shelter_configuration' => 'Shelter configuration', 'manual' => 'Manual', ], + 'developed_by' => 'Developed by', 'yes' => 'Yes', 'no' => 'No', 'submit' => 'Submit', diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100755 index 0000000..d0ca4be Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/favicon/apple-touch-icon.png b/public/favicon/apple-touch-icon.png new file mode 100755 index 0000000..6ea9546 Binary files /dev/null and b/public/favicon/apple-touch-icon.png differ diff --git a/public/favicon/favicon-96x96.png b/public/favicon/favicon-96x96.png new file mode 100755 index 0000000..3f9b5c7 Binary files /dev/null and b/public/favicon/favicon-96x96.png differ diff --git a/public/favicon/favicon.svg b/public/favicon/favicon.svg new file mode 100755 index 0000000..3c48e51 --- /dev/null +++ b/public/favicon/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/resources/css/filament/common/theme.css b/resources/css/filament/common/theme.css index 9f6ac94..e458340 100644 --- a/resources/css/filament/common/theme.css +++ b/resources/css/filament/common/theme.css @@ -2,3 +2,7 @@ @import '/vendor/awcodes/filament-table-repeater/resources/css/plugin.css'; @config 'tailwind.config.js'; + +.fi-logo { + @apply justify-center w-full; +} diff --git a/resources/svg/commitglobal.svg b/resources/svg/commitglobal.svg new file mode 100644 index 0000000..7c75fc1 --- /dev/null +++ b/resources/svg/commitglobal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/svg/logo.svg b/resources/svg/logo.svg new file mode 100644 index 0000000..39c04f1 --- /dev/null +++ b/resources/svg/logo.svg @@ -0,0 +1 @@ + diff --git a/resources/views/filament/brand.blade.php b/resources/views/filament/brand.blade.php new file mode 100644 index 0000000..e955fa5 --- /dev/null +++ b/resources/views/filament/brand.blade.php @@ -0,0 +1,8 @@ +
+ + + + {{ config('app.name') }} + +
diff --git a/resources/views/filament/favicons.blade.php b/resources/views/filament/favicons.blade.php new file mode 100644 index 0000000..447c55c --- /dev/null +++ b/resources/views/filament/favicons.blade.php @@ -0,0 +1,4 @@ + + + + diff --git a/resources/views/filament/sidebar-footer.blade.php b/resources/views/filament/sidebar-footer.blade.php new file mode 100644 index 0000000..709f72d --- /dev/null +++ b/resources/views/filament/sidebar-footer.blade.php @@ -0,0 +1,16 @@ +