mirror of https://github.com/4xmen/xshop.git
added clips list theme part
added dor clip theme part fixed some clip upload bug fixe product preview permission optimized mp3 & mp4 playerpull/49/head
parent
65bc608437
commit
211c0de4c8
@ -0,0 +1,15 @@
|
||||
<section class='DorClip content'>
|
||||
<div class="{{gfx()['container']}}">
|
||||
<h1>
|
||||
{{$title}}
|
||||
</h1>
|
||||
<div id="video-preview-botz">
|
||||
<video controls src="{{$clip->fileUrl()}}" poster="{{$clip->imgUrl()}}"></video>
|
||||
</div>
|
||||
<mp4player
|
||||
asset="{{$clip->fileUrl()}}" cover="{{$clip->imgUrl()}}"></mp4player>
|
||||
<div class="text-muted clip-body ps-4 border-end-0 mt-4">
|
||||
{!! $clip->body !!}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "DorClip",
|
||||
"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 DorClip
|
||||
{
|
||||
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,16 @@
|
||||
.DorClip {
|
||||
|
||||
padding: 3rem 0;
|
||||
h1{
|
||||
font-size: 30px;
|
||||
font-weight: 300;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
|
||||
.clip-body{
|
||||
border: 3px solid var(--xshop-primary);
|
||||
border-top: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 458 KiB |
@ -0,0 +1,26 @@
|
||||
<section class='ClipListGrid content'>
|
||||
<div class="{{gfx()['container']}}">
|
||||
<h1>
|
||||
{{$title}}
|
||||
</h1>
|
||||
<div class="row">
|
||||
@foreach($clips as $clip)
|
||||
|
||||
<div class="col-lg-4">
|
||||
|
||||
<div class="clip-grid-item">
|
||||
<a href="{{$clip->webUrl()}}">
|
||||
<img src="{{$clip->imgUrl()}}" alt="">
|
||||
<h2>
|
||||
<span>
|
||||
{{$clip->title}}
|
||||
</span>
|
||||
<i class="ri-play-circle-line"></i>
|
||||
</h2>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "ClipListGrid",
|
||||
"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 ClipListGrid
|
||||
{
|
||||
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,79 @@
|
||||
.ClipListGrid {
|
||||
.container,.container-fluid{
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
h1{
|
||||
font-size: 30px;
|
||||
font-weight: 200;
|
||||
text-align: center;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
padding: 2rem 0;
|
||||
|
||||
.clip-grid-item {
|
||||
position: relative;
|
||||
height: 25vh;
|
||||
border-radius: var(--xshop-border-radius);
|
||||
overflow: hidden;
|
||||
margin-bottom: 2rem;
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
h2 {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
background: rgba($xshop-diff, .7);
|
||||
padding: 7px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
backdrop-filter: blur(5px);
|
||||
margin-bottom: 0;
|
||||
font-weight: 400;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
transition: 500ms;
|
||||
height: 3.5rem;
|
||||
|
||||
i{
|
||||
transition: 500ms;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
span{
|
||||
transition: 500ms;
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
h2 {
|
||||
right: 1rem;
|
||||
left: 1rem;
|
||||
bottom: 1rem;
|
||||
border-radius: var(--xshop-border-radius);
|
||||
height: calc(100% - 2rem);
|
||||
|
||||
span{
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
i{
|
||||
font-size: 75px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 501 KiB |
Loading…
Reference in New Issue