added sub-group theme part
optimized theme parts improved group seeder change screenshotspull/49/head
@ -0,0 +1,18 @@
|
||||
@extends('website.inc.website-layout')
|
||||
|
||||
@section('title')
|
||||
{{$title}} - {{config('app.name')}}
|
||||
@endsection
|
||||
@php
|
||||
if ($group->bg != null){
|
||||
$bg = $group->bgUrl();
|
||||
}
|
||||
@endphp
|
||||
@section('content')
|
||||
<main>
|
||||
@foreach(getParts($area) as $part)
|
||||
@php($p = $part->getBladeWithData())
|
||||
@include($p['blade'],['data' => $p['data']])
|
||||
@endforeach
|
||||
</main>
|
||||
@endsection
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 92 KiB |
@ -0,0 +1,23 @@
|
||||
<section class='SubGroupsGrid content'>
|
||||
<div class="{{gfx()['container']}}">
|
||||
@if($group->children()->count() > 0)
|
||||
<div class="px-4">
|
||||
<h3>
|
||||
{{__("Sub groups")}}
|
||||
</h3>
|
||||
<div class="row">
|
||||
@foreach($group->children as $subGroup)
|
||||
<div class="col-md-4">
|
||||
<div class="sub-group">
|
||||
<img src="{{$subGroup->imgUrl()}}" alt="{{$subGroup->name}}" class="img-fluid">
|
||||
<h4>
|
||||
{{$subGroup->name}}
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "SubGroupsGrid",
|
||||
"version": "1.0",
|
||||
"author": "xStack",
|
||||
"email": "xshop@xstack.ir",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"url": "https:\/\/xstack.ir",
|
||||
"author_url": "https:\/\/4xmen.ir",
|
||||
"packages": []
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Resources\Views\Segments;
|
||||
|
||||
use App\Models\Part;
|
||||
|
||||
class SubGroupsGrid
|
||||
{
|
||||
public static function onAdd(Part $part = null)
|
||||
{
|
||||
|
||||
}
|
||||
public static function onRemove(Part $part = null)
|
||||
{
|
||||
|
||||
}
|
||||
public static function onMount(Part $part = null)
|
||||
{
|
||||
return $part;
|
||||
}
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
.SubGroupsGrid {
|
||||
.row{
|
||||
.col-md-4{
|
||||
padding: 2px;
|
||||
}
|
||||
}
|
||||
.sub-group{
|
||||
height: 300px;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
img{
|
||||
position: absolute;
|
||||
height: 300px;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
object-fit: cover;
|
||||
transition: 400ms;
|
||||
}
|
||||
h4{
|
||||
z-index: 3;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
text-align: center;
|
||||
background: #ffffff33;
|
||||
backdrop-filter: blur(4px);
|
||||
margin: 0;
|
||||
padding: 1rem;
|
||||
transition: 400ms;
|
||||
}
|
||||
|
||||
&:hover{
|
||||
h4{
|
||||
background: #ffffff88;
|
||||
}
|
||||
|
||||
img{
|
||||
transform: scale(1.3) rotateZ(15deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 432 KiB |
After Width: | Height: | Size: 454 KiB |
After Width: | Height: | Size: 482 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 344 KiB |