Skip to content

Commit 045bfc7

Browse files
example themes
1 parent 7869d81 commit 045bfc7

File tree

15 files changed

+857
-0
lines changed

15 files changed

+857
-0
lines changed

.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,9 @@ FORGOT_PASSWORD=true
115115
REGISTRATION=false
116116
ENABLE_MFA=false
117117
IP_WHITELIST=""
118+
119+
120+
# Moox Template - Controll
121+
APP_TEMPLATE=TemplateMinimal
122+
#APP_TEMPLATE=TemplatePro
123+
APP_THEME=default
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "moox/template-minimal",
3+
"autoload": {
4+
"psr-4": {
5+
"Moox\\TemplateMinimal\\": "src/"
6+
}
7+
},
8+
"authors": [
9+
{
10+
"name": "Moox Developer",
11+
"email": "[email protected]",
12+
"role": "Developer"
13+
}
14+
],
15+
"minimum-stability": "dev",
16+
"require": {},
17+
"extra": {
18+
"laravel": {
19+
"providers": [
20+
"Moox\\TemplateMinimal\\TemplateServiceProvider"
21+
]
22+
}
23+
}
24+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@if ($item)
2+
<!--template minimal card-->
3+
<x-moox-card
4+
class="overflow-hidden bg-white rounded-md shadow-sm dark:bg-slate-800 hover:bg-slate-100 dark:hover:bg-slate-700">
5+
<a class="w-full md:flex" href="#">
6+
<figure class="w-full md:w-64">
7+
<img src="{{ $item['image'] ?? 'https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp' }}"
8+
alt="Image" />
9+
</figure>
10+
<x-moox-card-body>
11+
<div class="pb-5">
12+
<p class="mb-3 text-xs text-gray-500">{{ $item['datum'] ?? '' }}</p>
13+
<x-moox-card-title class="text-primary-500">{{ $item['title'] ?? '' }}</x-moox-card-title>
14+
<p>{{ $item['description'] ?? '' }}</p>
15+
</div>
16+
</x-moox-card-body>
17+
</a>
18+
</x-moox-card>
19+
<!--template minimal card end-->
20+
@endif
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<div>
2+
<!--hero card -->
3+
<x-moox-card class="overflow-hidden bg-green-500 rounded-md shadow-sm">
4+
<a class="relative w-full" href="#">
5+
<figure class="w-full">
6+
<img src="{{ $item['image'] ?? 'https://img.daisyui.com/images/stock/photo-1606107557195-0e29a4b5b4aa.webp' }}"
7+
alt="Image" class="object-cover w-full h-full" />
8+
</figure>
9+
<x-moox-card-body
10+
class="bottom-0 left-0 right-0 z-10 bg-white md:absolute dark:bg-slate-800 hover:bg-slate-100 dark:hover:bg-slate-700">
11+
<div class="pb-5">
12+
<p class="mb-3 text-xs text-gray-500">12. November 2025</p>
13+
<x-moox-card-title class="text-primary-500">
14+
Fake Title 1
15+
</x-moox-card-title>
16+
<p>Dies ist eine gefälschte Beschreibung für Artikel 1.</p>
17+
</div>
18+
</x-moox-card-body>
19+
</a>
20+
</x-moox-card>
21+
<!--hero card end-->
22+
</div>

packages/template-minimal/resources/views/layouts/app.blade.php

Lines changed: 400 additions & 0 deletions
Large diffs are not rendered by default.

packages/template-minimal/resources/views/pages/blog/index.blade.php

Whitespace-only changes.

packages/template-minimal/resources/views/pages/blog/show.blade.php

Whitespace-only changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<div>
2+
<h1 class="mb-5 text-2xl font-bold">Template Minimal</h1>
3+
4+
<div class="mb-10">
5+
<x-moox-hero-card />
6+
</div>
7+
8+
<div x-data="{}" class="grid grid-cols-1 gap-5">
9+
@foreach ($data as $item)
10+
<x-moox-default-card :item="$item" />
11+
@endforeach
12+
</div>
13+
14+
<div>
15+
<h2 class="text-2xl font-bold mb-10">News</h2>
16+
17+
<div x-data="{}" class="grid grid-cols-1 gap-5">
18+
<div class="flex gap-7">
19+
<div>
20+
<p>November 17, 2025 <br />erstellt von: John Doe</p>
21+
22+
</div>
23+
<div>
24+
<h3 class="text-lg font-bold"><a href="">blog post Title</a></h3>
25+
<p>News Description</p>
26+
</div>
27+
</div>
28+
</div>
29+
</div>
30+
31+
<div class="flex justify-center mt-10">
32+
<a href="#" class="text-white btn bg-primary-500 hover:bg-primary-600">Mehr News</a>
33+
</div>
34+
</div>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace Moox\TemplateMinimal\Components;
4+
5+
use Closure;
6+
use Illuminate\Contracts\View\View;
7+
use Illuminate\View\Component;
8+
9+
class DefaultCard extends Component
10+
{
11+
public ?array $item = null;
12+
/**
13+
* Create a new component instance.
14+
*/
15+
public function __construct(array $item)
16+
{
17+
$this->item = $item;
18+
}
19+
20+
/**
21+
* Get the view / contents that represent the component.
22+
*/
23+
public function render(): View|Closure|string
24+
{
25+
return view('template-minimal::components.default-card');
26+
}
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace Moox\TemplateMinimal\Components;
4+
5+
use Closure;
6+
use Illuminate\Contracts\View\View;
7+
use Illuminate\View\Component;
8+
9+
class HeroCard extends Component
10+
{
11+
public ?array $item = null;
12+
/**
13+
* Create a new component instance.
14+
*/
15+
public function __construct(array $item = null)
16+
{
17+
$this->item = $item;
18+
}
19+
20+
/**
21+
* Get the view / contents that represent the component.
22+
*/
23+
public function render(): View|Closure|string
24+
{
25+
return view('template-minimal::components.hero-card');
26+
}
27+
}

0 commit comments

Comments
 (0)