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

lwb-20 Implement hgroup sections component #36

Merged
merged 10 commits into from
Apr 5, 2024
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ testbench.yaml
vendor
node_modules
/create_issues.sh
/perform_sections.sh
/generate_section.sh
/replace_and_create.sh
3 changes: 3 additions & 0 deletions resources/views/sections/address.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<address {!! $globalAttributes !!}>
{{ $slot }}
</address>
4 changes: 2 additions & 2 deletions resources/views/sections/article.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div {!! $globalAttributes !!}>
<article {!! $globalAttributes !!}>
{{ $slot }}
</div>
</article>
3 changes: 3 additions & 0 deletions resources/views/sections/aside.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<aside {!! $globalAttributes !!}>
{{ $slot }}
</aside>
3 changes: 3 additions & 0 deletions resources/views/sections/footer.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<footer {!! $globalAttributes !!}>
{{ $slot }}
</footer>
3 changes: 3 additions & 0 deletions resources/views/sections/h1.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1 {!! $globalAttributes !!}>
{{ $slot }}
</h1>
3 changes: 3 additions & 0 deletions resources/views/sections/h2.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h2 {!! $globalAttributes !!}>
{{ $slot }}
</h2>
3 changes: 3 additions & 0 deletions resources/views/sections/h3.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h3 {!! $globalAttributes !!}>
{{ $slot }}
</h3>
3 changes: 3 additions & 0 deletions resources/views/sections/h4.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h4 {!! $globalAttributes !!}>
{{ $slot }}
</h4>
3 changes: 3 additions & 0 deletions resources/views/sections/h5.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h5 {!! $globalAttributes !!}>
{{ $slot }}
</h5>
3 changes: 3 additions & 0 deletions resources/views/sections/h6.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h6 {!! $globalAttributes !!}>
{{ $slot }}
</h6>
3 changes: 3 additions & 0 deletions resources/views/sections/header.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<header {!! $globalAttributes !!}>
{{ $slot }}
</header>
3 changes: 3 additions & 0 deletions resources/views/sections/hgroup.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<hgroup {!! $globalAttributes !!}>
{{ $slot }}
</hgroup>
41 changes: 41 additions & 0 deletions src/Components/Sections/Address.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace T73biz\LwBits\Components\Sections;

use Illuminate\Contracts\Foundation\Application as ContractedApplication;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View as ContractedView;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
use Livewire\Component;
use T73biz\LwBits\Components\GlobalAttributesTrait;

/**
* Class Address
*/
class Address extends Component
{
use GlobalAttributesTrait;

/**
* Standard mount function
*/
public function mount(): void
{
$this->setGlobalAttributes();
}

/**
* Standard render function
*/
public function render(): Application|ContractedApplication|ContractedView|Factory|View
{
return view(
'lw-bits::sections.address',
[
'globalAttributes' => $this->getGlobalAttributes(),
'slot' => '',
]
);
}
}
41 changes: 41 additions & 0 deletions src/Components/Sections/Aside.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace T73biz\LwBits\Components\Sections;

use Illuminate\Contracts\Foundation\Application as ContractedApplication;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View as ContractedView;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
use Livewire\Component;
use T73biz\LwBits\Components\GlobalAttributesTrait;

/**
* Class Aside
*/
class Aside extends Component
{
use GlobalAttributesTrait;

/**
* Standard mount function
*/
public function mount(): void
{
$this->setGlobalAttributes();
}

/**
* Standard render function
*/
public function render(): Application|ContractedApplication|ContractedView|Factory|View
{
return view(
'lw-bits::sections.aside',
[
'globalAttributes' => $this->getGlobalAttributes(),
'slot' => '',
]
);
}
}
41 changes: 41 additions & 0 deletions src/Components/Sections/Footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace T73biz\LwBits\Components\Sections;

use Illuminate\Contracts\Foundation\Application as ContractedApplication;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View as ContractedView;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
use Livewire\Component;
use T73biz\LwBits\Components\GlobalAttributesTrait;

/**
* Class Footer
*/
class Footer extends Component
{
use GlobalAttributesTrait;

/**
* Standard mount function
*/
public function mount(): void
{
$this->setGlobalAttributes();
}

/**
* Standard render function
*/
public function render(): Application|ContractedApplication|ContractedView|Factory|View
{
return view(
'lw-bits::sections.footer',
[
'globalAttributes' => $this->getGlobalAttributes(),
'slot' => '',
]
);
}
}
41 changes: 41 additions & 0 deletions src/Components/Sections/H1.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace T73biz\LwBits\Components\Sections;

use Illuminate\Contracts\Foundation\Application as ContractedApplication;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View as ContractedView;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
use Livewire\Component;
use T73biz\LwBits\Components\GlobalAttributesTrait;

/**
* Class H1
*/
class H1 extends Component
{
use GlobalAttributesTrait;

/**
* Standard mount function
*/
public function mount(): void
{
$this->setGlobalAttributes();
}

/**
* Standard render function
*/
public function render(): Application|ContractedApplication|ContractedView|Factory|View
{
return view(
'lw-bits::sections.h1',
[
'globalAttributes' => $this->getGlobalAttributes(),
'slot' => '',
]
);
}
}
41 changes: 41 additions & 0 deletions src/Components/Sections/H2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace T73biz\LwBits\Components\Sections;

use Illuminate\Contracts\Foundation\Application as ContractedApplication;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View as ContractedView;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
use Livewire\Component;
use T73biz\LwBits\Components\GlobalAttributesTrait;

/**
* Class H2
*/
class H2 extends Component
{
use GlobalAttributesTrait;

/**
* Standard mount function
*/
public function mount(): void
{
$this->setGlobalAttributes();
}

/**
* Standard render function
*/
public function render(): Application|ContractedApplication|ContractedView|Factory|View
{
return view(
'lw-bits::sections.h2',
[
'globalAttributes' => $this->getGlobalAttributes(),
'slot' => '',
]
);
}
}
41 changes: 41 additions & 0 deletions src/Components/Sections/H3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace T73biz\LwBits\Components\Sections;

use Illuminate\Contracts\Foundation\Application as ContractedApplication;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View as ContractedView;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
use Livewire\Component;
use T73biz\LwBits\Components\GlobalAttributesTrait;

/**
* Class H3
*/
class H3 extends Component
{
use GlobalAttributesTrait;

/**
* Standard mount function
*/
public function mount(): void
{
$this->setGlobalAttributes();
}

/**
* Standard render function
*/
public function render(): Application|ContractedApplication|ContractedView|Factory|View
{
return view(
'lw-bits::sections.h3',
[
'globalAttributes' => $this->getGlobalAttributes(),
'slot' => '',
]
);
}
}
41 changes: 41 additions & 0 deletions src/Components/Sections/H4.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace T73biz\LwBits\Components\Sections;

use Illuminate\Contracts\Foundation\Application as ContractedApplication;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View as ContractedView;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
use Livewire\Component;
use T73biz\LwBits\Components\GlobalAttributesTrait;

/**
* Class H4
*/
class H4 extends Component
{
use GlobalAttributesTrait;

/**
* Standard mount function
*/
public function mount(): void
{
$this->setGlobalAttributes();
}

/**
* Standard render function
*/
public function render(): Application|ContractedApplication|ContractedView|Factory|View
{
return view(
'lw-bits::sections.h4',
[
'globalAttributes' => $this->getGlobalAttributes(),
'slot' => '',
]
);
}
}
41 changes: 41 additions & 0 deletions src/Components/Sections/H5.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

namespace T73biz\LwBits\Components\Sections;

use Illuminate\Contracts\Foundation\Application as ContractedApplication;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View as ContractedView;
use Illuminate\Foundation\Application;
use Illuminate\View\View;
use Livewire\Component;
use T73biz\LwBits\Components\GlobalAttributesTrait;

/**
* Class H5
*/
class H5 extends Component
{
use GlobalAttributesTrait;

/**
* Standard mount function
*/
public function mount(): void
{
$this->setGlobalAttributes();
}

/**
* Standard render function
*/
public function render(): Application|ContractedApplication|ContractedView|Factory|View
{
return view(
'lw-bits::sections.h5',
[
'globalAttributes' => $this->getGlobalAttributes(),
'slot' => '',
]
);
}
}
Loading
Loading