diff --git a/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.blade.php b/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.blade.php new file mode 100644 index 0000000..eefa3f6 --- /dev/null +++ b/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.blade.php @@ -0,0 +1,46 @@ + diff --git a/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.js b/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.js new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.json b/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.json new file mode 100644 index 0000000..078b22b --- /dev/null +++ b/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.json @@ -0,0 +1,10 @@ +{ + "name": "ParallaxFooter", + "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": [] +} \ No newline at end of file diff --git a/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.php b/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.php new file mode 100644 index 0000000..ff050dd --- /dev/null +++ b/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.php @@ -0,0 +1,77 @@ +section = 'theme'; + $setting->key = $part->area->name . '_' . $part->part.'_text'; + $setting->value = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aliquid consequuntur culpa cupiditate dignissimos dolor doloremque error facilis ipsum iure officia quam qui, tempora! Fuga harum impedit iusto magnam veniam.'; + $setting->size = 12; + $setting->type = 'LONGTEXT'; +// $setting->data = json_encode(['xmin' => 2, 'xmax' => 90]); + $setting->title = $part->area->name . ' ' . $part->part. ' main text'; + $setting->save(); + + $setting = new Setting(); + $setting->section = 'theme'; + $setting->key = $part->area->name . '_' . $part->part.'_title2'; + $setting->value = 'FAQ'; + $setting->size = 6; + $setting->type = 'TEXT'; +// $setting->data = json_encode(['xmin' => 2, 'xmax' => 90]); + $setting->title = $part->area->name . ' ' . $part->part. ' title 2'; + $setting->save(); + + + $setting = new Setting(); + $setting->section = 'theme'; + $setting->key = $part->area->name . '_' . $part->part.'_group'; + $setting->value = Group::first()->id; + $setting->size = 6; + $setting->type = 'GROUP'; +// $setting->data = json_encode(['xmin' => 2, 'xmax' => 90]); + $setting->title = $part->area->name . ' ' . $part->part. ' group'; + $setting->save(); + + $setting = new Setting(); + $setting->section = 'theme'; + $setting->key = $part->area->name . '_' . $part->part.'_last'; + $setting->value = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aliquid consequuntur culpa cupiditate dignissimos dolor doloremque error facilis ipsum iure officia quam qui, tempora! Fuga harum impedit iusto magnam veniam.'; + $setting->size = 12; + $setting->title = $part->area->name . ' ' . $part->part. ' last content'; + $setting->type = 'EDITOR'; + $setting->save(); + + $setting = new Setting(); + $setting->section = 'theme'; + $setting->key = $part->area->name . '_' . $part->part.'_jpg'; + $setting->value = null; + $setting->type = 'FILE'; + $setting->size = 12; + $setting->title = $part->area->name . ' ' . $part->part.' Image'; + $setting->save(); + + File::copy(__DIR__.'/../../default-assets/bg-girl.jpg',public_path('upload/images/').$part->area->name . '.' . $part->part.'.jpg'); + } + public static function onRemove(Part $part = null) + { + Setting::where('key',$part->area->name . '_' . $part->part.'_text')->first()?->delete(); + Setting::where('key',$part->area->name . '_' . $part->part.'_title2')->first()?->delete(); + Setting::where('key',$part->area->name . '_' . $part->part.'_group')->first()?->delete(); + Setting::where('key',$part->area->name . '_' . $part->part.'_last')->first()?->delete(); + } + public static function onMount(Part $part = null) + { + return $part; + } +} diff --git a/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.scss b/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.scss new file mode 100644 index 0000000..12ad5c6 --- /dev/null +++ b/resources/views/segments/footer/ParallaxFooter/ParallaxFooter.scss @@ -0,0 +1,71 @@ +.ParallaxFooter { + padding: 3rem 0; + background-size: cover; + background-position: center; + background-attachment: fixed; + h3{ + color: var(--xshop-primary); + text-align: center; + position: relative; + font-weight: 200; + &:before,&:after{ + position: absolute; + content: ' '; + height: 1px; + width: 10%; + top: 48%; + } + + &:before{ + inset-inline-start: 0; + background: linear-gradient(90deg, var(--xshop-primary) 0%, #ffffff00 100%); + } + &:after{ + inset-inline-end: 0; + background: linear-gradient(-90deg, var(--xshop-primary) 0%, #ffffff00 100%); + } + } + + .row{ + ul{ + list-style: none; + padding: 0; + + + li{ + position: relative; + + &:before{ + position: absolute; + inset-inline-start: -24px; + top: 40%; + height: 1px; + content: ' '; + width: 14px; + background: linear-gradient(90deg, var(--xshop-primary) 0%, #ffffff00 100%); + } + } + } + } + + .social{ + position: relative; + padding: 1rem; + margin: 1rem; + &:before,&:after{ + position: absolute; + content: ' '; + height: 1px; + width: 70%; + top: 0; + left: 15%; + right: 15%; + background: linear-gradient(90deg,#ffffff00 0%, var(--xshop-primary) 50%, #ffffff00 100%); + } + + &:after{ + top: auto; + bottom: 0; + } + } +} diff --git a/resources/views/segments/footer/ParallaxFooter/screenshot.png b/resources/views/segments/footer/ParallaxFooter/screenshot.png new file mode 100644 index 0000000..a106abe Binary files /dev/null and b/resources/views/segments/footer/ParallaxFooter/screenshot.png differ