mirror of https://github.com/4xmen/xshop.git
Compare commits
5 Commits
4a9ecdc6ca
...
ee0069dcd0
Author | SHA1 | Date |
---|---|---|
A1Gard | ee0069dcd0 | 1 month ago |
A1Gard | c44e3cc03e | 1 month ago |
A1Gard | 122f89b881 | 1 month ago |
A1Gard | f906151be3 | 1 month ago |
A1Gard | c3d04f24ff | 1 month ago |
Binary file not shown.
After Width: | Height: | Size: 615 KiB |
@ -0,0 +1,23 @@
|
||||
<section class='LittleFooter'>
|
||||
<div class="{{gfx()['container']}}">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
{{getSetting('copyright')}}
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<ul class="social text-center">
|
||||
@foreach(getSettingsGroup('social_')??[] as $k => $social)
|
||||
<li class="d-inline-block mx-2">
|
||||
<a href="{{$social}}">
|
||||
<i class="ri-{{$k}}-line"></i>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{!! getSetting($data->area_name.'_'.$data->part.'_text') !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "LittleFooter",
|
||||
"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,29 @@
|
||||
<?php
|
||||
|
||||
namespace Resources\Views\Segments;
|
||||
|
||||
use App\Models\Part;
|
||||
use App\Models\Setting;
|
||||
|
||||
class LittleFooter
|
||||
{
|
||||
public static function onAdd(Part $part = null)
|
||||
{
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_text';
|
||||
$setting->value = 'A usually green, flattened, lateral structure attached to a stem and functioning as a principal organ of photosynthesis and transpiration in most plants.';
|
||||
$setting->type = 'EDITOR';
|
||||
$setting->size = 12;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' text';
|
||||
$setting->save();
|
||||
}
|
||||
public static function onRemove(Part $part = null)
|
||||
{
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_text')->first()?->delete();
|
||||
}
|
||||
public static function onMount(Part $part = null)
|
||||
{
|
||||
return $part;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
.LittleFooter {
|
||||
// scss
|
||||
padding: 1rem 0;
|
||||
|
||||
.col-md-4{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.social{
|
||||
i{
|
||||
font-size: 30px;
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
@ -0,0 +1,27 @@
|
||||
<section class='NataliaCategories'>
|
||||
<div class="{{gfx()['container']}}">
|
||||
<div class="row nata-content">
|
||||
<div class="col-md-6 pt-5 slider-content">
|
||||
<h1>
|
||||
{{getSetting($data->area_name.'_'.$data->part.'_title')}}
|
||||
</h1>
|
||||
<h2>
|
||||
{{getSetting($data->area_name.'_'.$data->part.'_subtitle')}}
|
||||
</h2>
|
||||
<ul>
|
||||
@foreach(getCategorySubCatsBySetting($data->area_name.'_'.$data->part.'_category') as $category)
|
||||
<li>
|
||||
<a href="{{$category->webUrl()}}">
|
||||
<img src="{{$category->svgUrl()}}" alt="{{$category->name}}" class="mx-2">
|
||||
{{$category->name}}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-6 nata-bg"
|
||||
style="background-image: url('{{$bg??asset('upload/images/'.$part->area_name . '.' . $part->part.'.webp')}}')">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "NataliaCategories",
|
||||
"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,67 @@
|
||||
<?php
|
||||
|
||||
namespace Resources\Views\Segments;
|
||||
|
||||
use App\Models\Category;
|
||||
use App\Models\Part;
|
||||
use App\Models\Setting;
|
||||
use Illuminate\Support\Facades\File;
|
||||
|
||||
class NataliaCategories
|
||||
{
|
||||
public static function onAdd(Part $part = null)
|
||||
{
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_category';
|
||||
$setting->value = Category::first()->id;
|
||||
$setting->type = 'CATEGORY';
|
||||
$setting->size = 6;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' second category';
|
||||
$setting->save();
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_title';
|
||||
$setting->value = 'Modern categories';
|
||||
$setting->type = 'TEXT';
|
||||
$setting->size = 6;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' modern categories title';
|
||||
$setting->save();
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_subtitle';
|
||||
$setting->value = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit';
|
||||
$setting->type = 'TEXT';
|
||||
$setting->size = 12;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' modern categories subtitle';
|
||||
$setting->save();
|
||||
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_webp';
|
||||
$setting->value = null;
|
||||
$setting->type = 'FILE';
|
||||
$setting->size = 12;
|
||||
$setting->title = $part->area_name . ' ' . $part->part.' background pattern image';
|
||||
$setting->save();
|
||||
|
||||
|
||||
File::copy(__DIR__.'/../../default-assets/woman-transparent.webp',public_path('upload/images/').$part->area_name . '.' . $part->part.'.webp');
|
||||
}
|
||||
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.'_subtitle')->first()?->delete();
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_webp')->first()?->delete();
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_category')->first()?->delete();
|
||||
|
||||
}
|
||||
public static function onMount(Part $part = null)
|
||||
{
|
||||
return $part;
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
.NataliaCategories {
|
||||
// scss
|
||||
direction: ltr;
|
||||
|
||||
.nata-bg{
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% auto;
|
||||
position: relative;
|
||||
top: -3rem;
|
||||
padding-bottom: 5rem;
|
||||
margin-bottom: -3rem;
|
||||
*{
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
h1{
|
||||
font-size: 29px;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
h2{
|
||||
font-size: 19px;
|
||||
font-weight: 400;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.nata-content{
|
||||
ul{
|
||||
margin-bottom: 4rem;
|
||||
list-style: none;
|
||||
li{
|
||||
padding: .5rem;
|
||||
img{
|
||||
width: 35px;
|
||||
padding: 4px;
|
||||
display: inline-block;
|
||||
background: var(--xshop-secondary);
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 267 KiB |
@ -0,0 +1,3 @@
|
||||
<section class='SpliterText'>
|
||||
{!! getSetting($data->area_name.'_'.$data->part.'_text') !!}
|
||||
</section>
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "SpliterText",
|
||||
"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,30 @@
|
||||
<?php
|
||||
|
||||
namespace Resources\Views\Segments;
|
||||
|
||||
use App\Models\Part;
|
||||
use App\Models\Setting;
|
||||
|
||||
class SpliterText
|
||||
{
|
||||
public static function onAdd(Part $part = null)
|
||||
{
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_text';
|
||||
$setting->value = 'A usually green, flattened, lateral structure attached to a stem and functioning as a principal organ of photosynthesis and transpiration in most plants.';
|
||||
$setting->type = 'EDITOR';
|
||||
$setting->size = 12;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' text';
|
||||
$setting->save();
|
||||
}
|
||||
public static function onRemove(Part $part = null)
|
||||
{
|
||||
Setting::where('key',$part->area_name . '_' . $part->part.'_text')->first()?->delete();
|
||||
|
||||
}
|
||||
public static function onMount(Part $part = null)
|
||||
{
|
||||
return $part;
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
.SpliterText {
|
||||
// scss
|
||||
padding: 1rem;
|
||||
background: var(--xshop-background);
|
||||
width: 700px;
|
||||
max-width: 95%;
|
||||
margin: -3.5rem auto;
|
||||
height: 7rem;
|
||||
border-radius: var(--xshop-border-radius);
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
position: relative;
|
||||
z-index: 7;
|
||||
|
||||
}
|
||||
.SpliterText + section{
|
||||
padding-top: 5rem;
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
@ -0,0 +1,47 @@
|
||||
<section class='VickushkaMainCategoriesSlider'>
|
||||
<div class="{{gfx()['container']}}">
|
||||
<div class="row">
|
||||
|
||||
@foreach(getMainCategory() as $category)
|
||||
<div class="col-md">
|
||||
|
||||
<div class="v-main-category" data-id="#v-cat-{{$category->id}}">
|
||||
<img src="{{$category->svgUrl()}}" alt="svg {{$category->name}}">
|
||||
<h4 class="text-center">
|
||||
{{$category->name}}
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<h2 class="text-center mb-5">
|
||||
{{getSetting($data->area_name.'_'.$data->part.'_title')}}
|
||||
</h2>
|
||||
|
||||
<div id="v-cats" class="text-center">
|
||||
@foreach(getMainCategory() as $category)
|
||||
<div class="v-item" id="v-cat-{{$category->id}}">
|
||||
<h3 class="mb-3">
|
||||
{{$category->name}}
|
||||
</h3>
|
||||
<h4 class="text-muted mb-4">
|
||||
{{$category->subtitle}}
|
||||
</h4>
|
||||
<div class="row">
|
||||
@foreach($category->children as $subCat)
|
||||
<div class="col-md-4">
|
||||
<a href="{{$subCat->webUrl()}}">
|
||||
<img src="{{$subCat->imgUrl()}}" alt="{{$subCat->name}}" class="v-sub-img">
|
||||
<h5>
|
||||
{{$subCat->name}}
|
||||
</h5>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,22 @@
|
||||
document.addEventListener('DOMContentLoaded',function () {
|
||||
document.querySelectorAll('.v-main-category')?.forEach(function (el) {
|
||||
el.addEventListener('click',function () {
|
||||
document.querySelectorAll('.v-item').forEach(function (elm) {
|
||||
elm.style.display = 'none';
|
||||
});
|
||||
// Get the element to be displayed
|
||||
const targetId = el.getAttribute('data-id');
|
||||
const targetElement = document.querySelector(targetId);
|
||||
|
||||
if (targetElement) {
|
||||
targetElement.style.display = 'block';
|
||||
|
||||
// Scroll to the element
|
||||
targetElement.scrollIntoView({
|
||||
behavior: 'smooth', // Smooth scroll effect
|
||||
block: 'start' // Scroll to the top of the element
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "VickushkaMainCategoriesSlider",
|
||||
"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,40 @@
|
||||
<?php
|
||||
|
||||
namespace Resources\Views\Segments;
|
||||
|
||||
use App\Models\Part;
|
||||
use App\Models\Setting;
|
||||
|
||||
class VickushkaMainCategoriesSlider
|
||||
{
|
||||
public static function onAdd(Part $part = null)
|
||||
{
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_title';
|
||||
$setting->value = 'categories here';
|
||||
$setting->type = 'TEXT';
|
||||
$setting->size = 6;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' sub title';
|
||||
$setting->save();
|
||||
|
||||
$setting = new Setting();
|
||||
$setting->section = 'theme';
|
||||
$setting->key = $part->area_name . '_' . $part->part.'_color';
|
||||
$setting->value = '#ebfebe';
|
||||
$setting->type = 'COLOR';
|
||||
$setting->data = json_encode(['name' => 'vicka-bg-color']);
|
||||
$setting->size = 6;
|
||||
$setting->title = $part->area_name . ' ' . $part->part .' main 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.'_color')->first()?->delete();
|
||||
}
|
||||
public static function onMount(Part $part = null)
|
||||
{
|
||||
return $part;
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
.VickushkaMainCategoriesSlider {
|
||||
background: var(--vicka-bg-color);
|
||||
// scss
|
||||
padding-bottom: 4rem;
|
||||
.container{
|
||||
position: relative;
|
||||
top: -4rem;
|
||||
}
|
||||
|
||||
.v-main-category{
|
||||
background: var(--xshop-secondary);
|
||||
border-radius: var(--xshop-border-radius);
|
||||
color: var(--xshop-diff2);
|
||||
padding: 1rem 0;
|
||||
margin-bottom: 3rem;
|
||||
cursor: pointer;
|
||||
|
||||
img{
|
||||
width: 35%;
|
||||
margin: 0 auto -4rem;
|
||||
display: block;
|
||||
background: var(--xshop-primary);
|
||||
border-radius: 50%;
|
||||
color: var(--xshop-diff);
|
||||
padding: 1rem;
|
||||
position: relative;
|
||||
top: -5rem;
|
||||
}
|
||||
}
|
||||
|
||||
#v-cats{
|
||||
.v-item{
|
||||
display: none;
|
||||
margin: 2rem 0;
|
||||
|
||||
.v-sub-img{
|
||||
width: 175px;
|
||||
height: 175px;
|
||||
object-fit: cover;
|
||||
border-radius: 50%;
|
||||
margin: 1rem 0;
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
.v-item:first-child{
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
h1,h2,h3,h4,h5{
|
||||
font-weight: 200;
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 264 KiB |
Loading…
Reference in New Issue