mirror of https://github.com/4xmen/xshop.git
added galleries list theme part
parent
66df032556
commit
edecafe6c5
@ -0,0 +1,23 @@
|
|||||||
|
<section class='GalleriesList'>
|
||||||
|
|
||||||
|
<div class="{{gfx()['container']}}">
|
||||||
|
<h1>
|
||||||
|
{{$title}}
|
||||||
|
</h1>
|
||||||
|
<div class="row">
|
||||||
|
@foreach($galleries as $gallery)
|
||||||
|
<div class="col-md-6 p-1">
|
||||||
|
<div class="gallrey-item">
|
||||||
|
<a href="{{$gallery->webUrl()}}">
|
||||||
|
<img src="{{$gallery->imgUrl()}}" alt="{{$gallery->title}}">
|
||||||
|
</a>
|
||||||
|
<h4 class="text-center">
|
||||||
|
{{$gallery->title}}
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
{{$galleries->links()}}
|
||||||
|
</div>
|
||||||
|
</section>
|
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"name": "GalleriesList",
|
||||||
|
"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 GalleriesList
|
||||||
|
{
|
||||||
|
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,40 @@
|
|||||||
|
.GalleriesList {
|
||||||
|
margin-top: 2rem;
|
||||||
|
.gallrey-item{
|
||||||
|
height: 350px;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
border-radius: var(--xshop-border-radius);
|
||||||
|
|
||||||
|
img,h4{
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
transition: 400ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
img{
|
||||||
|
top: 0;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4{
|
||||||
|
bottom: -60px;
|
||||||
|
background: var(--xshop-primary);
|
||||||
|
color: var(--xshop-diff);
|
||||||
|
padding: 11px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover{
|
||||||
|
img{
|
||||||
|
transform: scale(1.4);
|
||||||
|
}
|
||||||
|
h4{
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue