Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Apr 22, 2024
1 parent b446829 commit 13f8a76
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 22 deletions.
3 changes: 2 additions & 1 deletion resources/views/layout/container.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div {{ $attributes
->cssClass([
'layer' => 'container mx-auto w-full',
'base' => 'px-6 max-w-4xl xl:max-w-5xl',
'padding' => 'px-6',
'width' => 'max-w-4xl xl:max-w-5xl',
])
->classMerge();
}}>
Expand Down
3 changes: 3 additions & 0 deletions resources/views/layout/page.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<x-wireuse::layout-container>
{{ $slot }}
</x-wireuse::layout-container>
15 changes: 15 additions & 0 deletions src/Layout/Components/Container.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Foxws\WireUse\Layout\Components;

use Closure;
use Foxws\WireUse\Views\Support\Component;
use Illuminate\View\View;

class Container extends Component
{
public function render(): View|Closure|string
{
return view('wireuse::layout.container');
}
}
20 changes: 20 additions & 0 deletions src/Layout/Components/Join.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

namespace Foxws\WireUse\Layout\Components;

use Closure;
use Foxws\WireUse\Views\Support\Component;
use Illuminate\View\View;

class Join extends Component
{
public function __construct(
public bool $vertical = false,
) {
}

public function render(): View|Closure|string
{
return view('wireuse::layout.join');
}
}
15 changes: 15 additions & 0 deletions src/Layout/Components/Page.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Foxws\WireUse\Layout\Components;

use Closure;
use Foxws\WireUse\Views\Support\Component;
use Illuminate\View\View;

class Page extends Component
{
public function render(): View|Closure|string
{
return view('wireuse::layout.page');
}
}
20 changes: 0 additions & 20 deletions src/Pages/Components/Page.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Pages/Support/Page.php → src/Views/Support/Page.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Foxws\WireUse\Pages\Support;
namespace Foxws\WireUse\Views\Support;

use Foxws\WireUse\Auth\Concerns\WithAuthentication;
use Foxws\WireUse\Auth\Concerns\WithAuthorization;
Expand Down

0 comments on commit 13f8a76

Please sign in to comment.