Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Apr 24, 2024
1 parent baef4c2 commit bf9478e
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 35 deletions.
3 changes: 3 additions & 0 deletions resources/views/livewire/dashboard/content/tags.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
Tags
</div>
3 changes: 3 additions & 0 deletions resources/views/livewire/dashboard/content/videos.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div>
Videos
</div>
5 changes: 2 additions & 3 deletions resources/views/livewire/dashboard/pages/content.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<x-wireuse::layout-page>
<x-wireuse::navigation-tabs
:$navigation
class="px-3 gap-5 border-b border-secondary-500/50 w-full"
class:tab="py-3 border-b text-sm font-medium"
class:tabs="flex items-center overflow-x-auto gap-x-5 px-3 border-b border-secondary-500/50"
class:item="py-3 border-b text-sm font-medium"
class:active="border-primary-400 text-primary-400"
class:inactive="border-secondary-400 text-secondary-400"

/>
</x-wireuse::layout-page>
8 changes: 4 additions & 4 deletions resources/views/livewire/dashboard/ui/footer.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<footer class="border-t border-secondary-800/80">
<x-wireuse::layout-container class="flex items-center justify-center py-1.5 gap-6 sm:gap-9 overflow-x-auto">
<footer class="py-1.5 px-3 border-t border-secondary-800/80">
<x-wireuse::layout-container class="flex items-center justify-center">
<x-wireuse::navigation-tabs
:$navigation
class="gap-x-6"
class:tab="flex-col gap-0.5 justify-stretch max-w-16 line-clamp text-xs font-medium"
class:tabs="flex items-center overflow-x-auto gap-x-6"
class:item="flex-col gap-0.5 justify-stretch max-w-16 line-clamp text-xs font-medium"
class:icon="size-6 sm:size-7"
/>
</x-wireuse::layout-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace App\Dashboard\Http\Controllers;

use App\Livewire\Dashboard\Content\Tags;
use App\Livewire\Dashboard\Content\Videos;
use Foxws\WireUse\Navigation\Support\Navigation;
use Foxws\WireUse\Navigation\Support\NavigationItem;
use Foxws\WireUse\Views\Support\Page;
Expand Down Expand Up @@ -33,12 +35,14 @@ protected function tabs(): Navigation
return Navigation::make()
->active($this->tab)
->add('videos', fn (NavigationItem $item) => $item
->label(__('Videos'))
->wireModel('tab')
->label(__('Videos'))
->livewire(Videos::class)
)
->add('tags', fn (NavigationItem $item) => $item
->label(__('Tags'))
->wireModel('tab')
->label(__('Tags'))
->livewire(Tags::class)
);
}
}
15 changes: 15 additions & 0 deletions src/App/Livewire/Dashboard/Content/Tags.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace App\Livewire\Dashboard\Content;

use Livewire\Component;

class Tags extends Component
{
public function render()
{
return view('livewire.dashboard.content.tags')->with([
//
]);
}
}
15 changes: 15 additions & 0 deletions src/App/Livewire/Dashboard/Content/Videos.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace App\Livewire\Dashboard\Content;

use Livewire\Component;

class Videos extends Component
{
public function render()
{
return view('livewire.dashboard.content.videos')->with([
//
]);
}
}
26 changes: 0 additions & 26 deletions src/App/Livewire/Dashboard/States/DashboardFooterState.php

This file was deleted.

0 comments on commit bf9478e

Please sign in to comment.