mirror of https://github.com/4xmen/xshop.git
Compare commits
No commits in common. 'fbd2c43f0b5ad9bc899ce9bca5aa3cd76abe5ca4' and '5cd729f4ce2090862e1c4f58f28012b5535a7975' have entirely different histories.
fbd2c43f0b
...
5cd729f4ce
@ -1,42 +0,0 @@
|
||||
<section id='CurveCategories'>
|
||||
|
||||
|
||||
<div id="curve-cat-top">
|
||||
|
||||
</div>
|
||||
<div>
|
||||
{{-- class="{{gfx()['container']}}"--}}
|
||||
|
||||
<h1 class="text-center">
|
||||
{{getSetting($part->area_name . '_' . $part->part.'_title')}}
|
||||
</h1>
|
||||
<div id="curve-slider-cat-container">
|
||||
|
||||
<div id="crc-nxt" class="sld-btn">
|
||||
<i class="ri-arrow-right-line"></i>
|
||||
</div>
|
||||
<div id="crc-prv" class="sld-btn">
|
||||
<i class="ri-arrow-left-line"></i>
|
||||
</div>
|
||||
|
||||
<div id="curve-slider-cat">
|
||||
@foreach(getCategorySubCatsBySetting($part->area_name . '_' . $part->part.'_category') as $cat)
|
||||
<div class="item slider-content">
|
||||
<div class="curve-cat-item">
|
||||
<a href="{{$cat->webUrl()}}">
|
||||
<img src="{{$cat->imgUrl()}}" alt="{{$cat->name}}">
|
||||
<h4>
|
||||
{{$cat->name}}
|
||||
</h4>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="curve-cat-bottom">
|
||||
|
||||
</div>
|
||||
</section>
|
@ -1,52 +0,0 @@
|
||||
import {tns} from "tiny-slider/src/tiny-slider";
|
||||
|
||||
var curveCatSlider ;
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
document.querySelectorAll('#curve-slider-cat')?.forEach(function (el) {
|
||||
if (el.classList.contains('.tns-slider')){
|
||||
console.log('ignore');
|
||||
return 'ignore';
|
||||
}
|
||||
curveCatSlider = tns({
|
||||
container: el,
|
||||
responsive:{
|
||||
560:{
|
||||
items: 1.5,
|
||||
},
|
||||
1000:{
|
||||
items: 3.5,
|
||||
},
|
||||
1400:{
|
||||
items: 5.5,
|
||||
},
|
||||
|
||||
},
|
||||
// edgePadding: 50,
|
||||
autoplay: true,
|
||||
autoplayButton: false,
|
||||
mouseDrag: true,
|
||||
prevButton: false,
|
||||
nextButton: false,
|
||||
autoplayTimeout: 8000,
|
||||
center: true,
|
||||
nav: true,
|
||||
loop:true,
|
||||
});
|
||||
});
|
||||
//
|
||||
document.querySelector('#crc-nxt')?.addEventListener('click',function () {
|
||||
if (document.documentElement.getAttribute('dir') === 'rtl'){
|
||||
curveCatSlider.goTo('prev');
|
||||
}else{
|
||||
curveCatSlider.goTo('next');
|
||||
}
|
||||
});
|
||||
document.querySelector('#crc-prv')?.addEventListener('click',function () {
|
||||
if (document.documentElement.getAttribute('dir') !== 'rtl'){
|
||||
curveCatSlider.goTo('prev');
|
||||
}else{
|
||||
curveCatSlider.goTo('next');
|
||||
}
|
||||
});
|
||||
});
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"name": "CurveCategories",
|
||||
"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": []
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Resources\Views\Segments;
|
||||
|
||||
use App\Models\Category;
|
||||
use App\Models\Part;
|
||||
use App\Models\Setting;
|
||||
|
||||
class CurveCategories
|
||||
{
|
||||
public static function onAdd(Part $part = null)
|
||||
{
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_title';
|
||||
$setting->value = 'Lorem ipsum dolor sit amet';
|
||||
$setting->type = 'TEXT';
|
||||
$setting->size = 4;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' titles';
|
||||
$setting->save();
|
||||
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_category';
|
||||
$setting->value = Category::first()->id;
|
||||
$setting->type = 'CATEGORY';
|
||||
$setting->size = 4;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' category';
|
||||
$setting->save();
|
||||
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_bg';
|
||||
$setting->value = gfx()['secondary'];
|
||||
$setting->type = 'COLOR';
|
||||
$setting->data = json_encode(['name' => 'curve-slider-bg']);
|
||||
$setting->size = 4;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' background color';
|
||||
$setting->save();
|
||||
|
||||
|
||||
|
||||
}
|
||||
public static function onRemove(Part $part = null)
|
||||
{
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_title')->first()?->delete();
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_category')->first()?->delete();
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'bg')->first()?->delete();
|
||||
}
|
||||
public static function onMount(Part $part = null)
|
||||
{
|
||||
return $part;
|
||||
}
|
||||
}
|
@ -1,171 +0,0 @@
|
||||
#CurveCategories {
|
||||
position: relative;
|
||||
background: var(--curve-slider-bg);
|
||||
|
||||
|
||||
h1{
|
||||
position: relative;
|
||||
z-index: 33;
|
||||
margin-bottom: 1rem;
|
||||
font-size: 30px;
|
||||
font-weight: 300;
|
||||
}
|
||||
#curve-cat-top, #curve-cat-bottom {
|
||||
height: 10rem;
|
||||
position: relative;
|
||||
background: transparent;
|
||||
overflow: hidden;
|
||||
|
||||
}
|
||||
|
||||
#curve-cat-top {
|
||||
|
||||
margin-bottom: -4.5rem;
|
||||
|
||||
z-index: 15;
|
||||
|
||||
&:before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 700%;
|
||||
background: var(--xshop-background);
|
||||
border-radius: 50%;
|
||||
transform: scaleX(1.75);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#curve-cat-bottom {
|
||||
margin-top: -2.5rem;
|
||||
z-index: 10;
|
||||
|
||||
&:before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 700%;
|
||||
background: var(--xshop-background);
|
||||
border-radius: 50%;
|
||||
transform: scaleX(1.75);
|
||||
}
|
||||
}
|
||||
|
||||
#curve-slider-cat-container {
|
||||
height: 35vh;
|
||||
|
||||
#curve-slider-cat{
|
||||
//width: 100vw;
|
||||
//left: 0;
|
||||
//right: 0;
|
||||
}
|
||||
|
||||
.slider-content {
|
||||
transform: translateX(25%);
|
||||
}
|
||||
|
||||
&:before, &:after {
|
||||
content: ' ';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 45%;
|
||||
z-index: 9;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&:before {
|
||||
background: linear-gradient(90deg, var(--curve-slider-bg) 20%, rgba(0, 0, 0, 0) 100%);
|
||||
left: 0;
|
||||
}
|
||||
|
||||
&:after {
|
||||
background: linear-gradient(-90deg, var(--curve-slider-bg) 20%, rgba(0, 0, 0, 0) 100%);
|
||||
right: 0;
|
||||
}
|
||||
|
||||
|
||||
.sld-btn,.tns-nav{
|
||||
z-index: 70;
|
||||
position: absolute;
|
||||
top: 75%;
|
||||
cursor: pointer;
|
||||
i{
|
||||
font-size: 35px;
|
||||
}
|
||||
}
|
||||
|
||||
#crc-nxt{
|
||||
right:calc(50% - 100px);
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
#crc-prv{
|
||||
left:calc(50% - 100px);
|
||||
transform: translateX(50%);
|
||||
}
|
||||
|
||||
.tns-nav{
|
||||
display: flex !important;
|
||||
width: 150px;
|
||||
left:calc(50% - 75px);
|
||||
height: 50px;
|
||||
|
||||
align-items: center;
|
||||
justify-content: space-evenly;
|
||||
button{
|
||||
display: inline-block;
|
||||
margin: 3px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: var(--xshop-border-radius);
|
||||
background: #00000044;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.tns-nav-active{
|
||||
|
||||
background: var(--xshop-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.curve-cat-item {
|
||||
height: 35vh;
|
||||
position: relative;
|
||||
img {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
h4{
|
||||
position: absolute;
|
||||
bottom: 45%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
z-index: 33;
|
||||
background: var(--xshop-background);
|
||||
padding: .5rem;
|
||||
transition: 300ms;
|
||||
font-weight: 400;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&:hover{
|
||||
h4{
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 212 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB |
@ -1,19 +0,0 @@
|
||||
<section class='HodHeader'>
|
||||
<div class="{{gfx()['container']}}">
|
||||
<div class="row">
|
||||
<div class="col-md">
|
||||
<h1>
|
||||
{{$title}}
|
||||
</h1>
|
||||
<h2>
|
||||
{{$subtitle}}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="col-md-3 text-end">
|
||||
<div id="hod-logo">
|
||||
<img src="{{asset('upload/images/logo.png')}}" alt="logo" >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"name": "HodHeader",
|
||||
"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": []
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Resources\Views\Segments;
|
||||
|
||||
use App\Models\Part;
|
||||
use App\Models\Setting;
|
||||
use Illuminate\Support\Facades\File;
|
||||
|
||||
class HodHeader
|
||||
{
|
||||
public static function onAdd(Part $part = null)
|
||||
{
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_png';
|
||||
$setting->value = 'url("'.asset('upload/images/'.$part->area_name . '.' . $part->part.'.png').'")';
|
||||
$setting->type = 'FILE';
|
||||
$setting->size = 12;
|
||||
$setting->title = $part->area_name . ' ' . $part->part.' pattern image';
|
||||
$setting->data = json_encode(['name' => 'hod-img']);
|
||||
$setting->save();
|
||||
|
||||
File::copy(__DIR__.'/../../default-assets/hodhod.png',public_path('upload/images/').$part->area_name . '.' . $part->part.'.png');
|
||||
}
|
||||
public static function onRemove(Part $part = null)
|
||||
{
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_png')->first()?->delete();
|
||||
}
|
||||
public static function onMount(Part $part = null)
|
||||
{
|
||||
return $part;
|
||||
}
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
.HodHeader {
|
||||
// scss
|
||||
overflow: visible;
|
||||
background: linear-gradient( 45deg, var(--xshop-primary), var(--xshop-secondary) 100%);
|
||||
color: var(--xshop-diff);
|
||||
padding: 4.5rem 0 1rem;
|
||||
position: relative;
|
||||
|
||||
&:before{
|
||||
content: ' ';
|
||||
background-image: var(--hod-img);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
h1,h2{
|
||||
font-weight: 400;
|
||||
max-height: 1em;
|
||||
overflow: hidden;
|
||||
}
|
||||
#hod-logo {
|
||||
padding: 2rem;
|
||||
background: #ffffff99;
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
display: inline-block;
|
||||
margin-bottom: -40px;
|
||||
border-radius: var(--xshop-border-radius);
|
||||
margin-top: 1rem;
|
||||
img {
|
||||
height: 75px;
|
||||
}
|
||||
}
|
||||
|
||||
+ .content{
|
||||
padding-top: 2rem;
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 217 KiB |
@ -1,26 +0,0 @@
|
||||
<section class='MainCategoriesIcon'>
|
||||
<div class="{{gfx()['container']}}">
|
||||
<h1 class="text-center">
|
||||
{{getSetting($part->area_name . '_' . $part->part.'_title')}}
|
||||
</h1>
|
||||
<div class="cat-icon-box">
|
||||
<div class="row">
|
||||
@foreach(getMainCategory(getSetting($part->area_name . '_' . $part->part.'_limit')) as $category)
|
||||
<div class="col-md">
|
||||
<div class=" l-box">
|
||||
<a class="main-category" href="{{$category->webUrl()}}">
|
||||
<img src="{{$category->svgUrl()}}" alt="{{$category->name}}"
|
||||
title="{{$category->name}}">
|
||||
</a>
|
||||
</div>
|
||||
<a class="main-category" href="{{$category->webUrl()}}">
|
||||
<h4>
|
||||
{{$category->name}}
|
||||
</h4>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"name": "MainCategoriesIcon",
|
||||
"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": []
|
||||
}
|
@ -1,75 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Resources\Views\Segments;
|
||||
|
||||
use App\Models\Part;
|
||||
use App\Models\Setting;
|
||||
|
||||
class MainCategoriesIcon
|
||||
{
|
||||
public static function onAdd(Part $part = null)
|
||||
{
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_bg';
|
||||
$setting->value = '#ffffff';
|
||||
$setting->type = 'COLOR';
|
||||
$setting->data = json_encode(['name' => 'cat-icon-bg']);
|
||||
$setting->size = 4;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' background color';
|
||||
$setting->save();
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_box';
|
||||
$setting->value = gfx()['primary'];
|
||||
$setting->type = 'COLOR';
|
||||
$setting->data = json_encode(['name' => 'cat-icon-box']);
|
||||
$setting->size = 4;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' box color';
|
||||
$setting->save();
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_text';
|
||||
$setting->value = '#ffffff';
|
||||
$setting->type = 'COLOR';
|
||||
$setting->data = json_encode(['name' => 'cat-icon-text']);
|
||||
$setting->size =4;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' text color';
|
||||
$setting->save();
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_title';
|
||||
$setting->value = 'Lorem ipsum dolor sit amet';
|
||||
$setting->type = 'TEXT';
|
||||
$setting->size = 6;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' titles';
|
||||
$setting->save();
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_limit';
|
||||
$setting->value = '4';
|
||||
$setting->size = 6;
|
||||
$setting->type = 'NUMBER';
|
||||
$setting->data = json_encode(['xmin' => 4, 'xmax' => 12]);
|
||||
$setting->title = $part->area_name . ' ' . $part->part. ' limit';
|
||||
$setting->save();
|
||||
|
||||
}
|
||||
public static function onRemove(Part $part = null)
|
||||
{
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_title')->first()?->delete();
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_limit')->first()?->delete();
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_bg')->first()?->delete();
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_box')->first()?->delete();
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_text')->first()?->delete();
|
||||
}
|
||||
public static function onMount(Part $part = null)
|
||||
{
|
||||
return $part;
|
||||
}
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
.MainCategoriesIcon {
|
||||
// scss
|
||||
padding: 4rem;
|
||||
background: var(--cat-icon-bg);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
h1 {
|
||||
position: absolute;
|
||||
left: 2rem;
|
||||
top: 1rem;
|
||||
transform: rotateZ(-90deg);
|
||||
white-space: nowrap;
|
||||
font-size: 22px;
|
||||
text-align: center;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.cat-icon-box {
|
||||
background: var(--cat-icon-box);
|
||||
padding: 1rem;
|
||||
border-radius: var(--xshop-border-radius);
|
||||
|
||||
.row {
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.l-box {
|
||||
border-radius: var(--xshop-border-radius);
|
||||
margin: 1rem;
|
||||
background: var(--cat-icon-bg);
|
||||
text-align: center;
|
||||
|
||||
|
||||
img {
|
||||
max-width: 70%;
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
padding: 1rem 0 0 0;
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
color: var(--cat-icon-text) !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 64 KiB |
Loading…
Reference in New Issue