Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added footer & small improvments #246

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
4587fa6
Added footer and return to client in Nav bar
Poseidon281 May 17, 2024
e71e2bc
Merge remote-tracking branch 'upstream/main' into Admin-Side-Updates
Poseidon281 May 17, 2024
747907f
Added image to Footer & changed icons
Poseidon281 May 17, 2024
1649e15
Pint Fixes
Poseidon281 May 17, 2024
3cd7e0b
Changed Footer to get the current year
Poseidon281 May 17, 2024
d217c2a
Change link from Github to the site
Poseidon281 May 17, 2024
dced09e
Made changes that Lance requested
Poseidon281 May 17, 2024
2a8a0c8
Pint Fixes
Poseidon281 May 17, 2024
aa75be4
Change label from Return to Client to Exit Admin
Poseidon281 May 18, 2024
2662bab
Made changes that Charles requested
Poseidon281 May 18, 2024
918de79
Merge remote-tracking branch 'upstream/main' into Admin-Side-Updates
Poseidon281 May 18, 2024
0775b4a
Change footer location to body end and not nav bar footer
Poseidon281 May 19, 2024
6946cb6
Update 5
Poseidon281 May 19, 2024
74cca19
footer moved a bit up and made sidebar collapsible
Poseidon281 May 19, 2024
ab6e64f
change back to return
Poseidon281 May 19, 2024
49a5a7d
Merge remote-tracking branch 'upstream/main' into Admin-Side-Updates
Poseidon281 May 19, 2024
9158108
Comment this for now because it does not work
Poseidon281 May 20, 2024
225e595
Always sort at the bottom
Poseidon281 May 20, 2024
54f673d
Revert
lancepioch May 20, 2024
aed5a2a
Revert
lancepioch May 20, 2024
708dd7f
Changes that Lance wanted
Poseidon281 May 20, 2024
119ae5d
Added TODO
Poseidon281 May 20, 2024
483c2fe
Merge remote-tracking branch 'upstream/main' into Admin-Side-Updates
Poseidon281 May 27, 2024
b463502
Deleted unnecessary comment
Poseidon281 May 27, 2024
feaea04
Merge remote-tracking branch 'upstream/main' into Admin-Side-Updates
Poseidon281 May 30, 2024
f451fe2
Added suggested changes from Lance
Poseidon281 May 30, 2024
cdae7c9
Pint Fixes
Poseidon281 May 30, 2024
d1a86d8
Merge remote-tracking branch 'upstream/main' into Admin-Side-Updates
Poseidon281 Jun 1, 2024
2d63ca5
Merge remote-tracking branch 'upstream/main' into Admin-Side-Updates
Poseidon281 Jun 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
use Filament\Navigation\NavigationItem;
use Filament\View\PanelsRenderHook;

class AdminPanelProvider extends PanelProvider
{
Expand Down Expand Up @@ -52,6 +54,14 @@ public function panel(Panel $panel): Panel
'warning' => Color::Amber,
'blurple' => Color::hex('#5865F2'),
])
->renderHook(PanelsRenderHook::SIDEBAR_FOOTER, fn () => view('filament.footer')) // TODO make the footer also work with topNavigation
->navigationItems([
NavigationItem::make('client')
->label('Exit Admin')
->url('/')
->icon('tabler-arrow-back')
->sort(12),
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
->discoverClusters(in: app_path('Filament/Clusters'), for: 'App\\Filament\\Clusters')
Expand Down
30 changes: 30 additions & 0 deletions resources/views/filament/footer.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<footer class="fixed bottom-4 left-0 z-20 w-full dark:border-gray-600" style="padding: 0; background: none; height: auto;">
<div class="flex items-center justify-center w-full py-1">
<img src="{{ asset('pelican.ico') }}" alt="Pelican Logo" class="w-6 h-6 mr-2">
<span class="text-sm text-gray-500 sm:text-center dark:text-gray-400">© 2024
<a href="https://pelican.dev" class="hover:underline">Pelican</a>
</span>
</div>
</footer>

<style>
footer {
padding: 0;
margin: 0;
height: auto;
background: none;
bottom: 8px;
}
footer .flex {
padding: 0.25rem 0;
margin: 0;
}
footer img {
margin-right: 8px;
}
footer span {
padding: 0;
margin: 0;
}
</style>

Loading