diff --git a/resources/views/components/setting-field.blade.php b/resources/views/components/setting-field.blade.php index 674a696..b3cc59e 100644 --- a/resources/views/components/setting-field.blade.php +++ b/resources/views/components/setting-field.blade.php @@ -129,10 +129,10 @@ @endif
@if($ext == 'mp4') - +
@elseif($ext == 'mp3') - +
@elseif(in_array($ext, ['svg','jpg','png','gif','webp'] ) ) + + diff --git a/resources/views/segments/index/GisooVideo/GisooVideo.js b/resources/views/segments/index/GisooVideo/GisooVideo.js new file mode 100644 index 0000000..e69de29 diff --git a/resources/views/segments/index/GisooVideo/GisooVideo.json b/resources/views/segments/index/GisooVideo/GisooVideo.json new file mode 100644 index 0000000..cb785b4 --- /dev/null +++ b/resources/views/segments/index/GisooVideo/GisooVideo.json @@ -0,0 +1,10 @@ +{ + "name": "GisooVideo", + "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/index/GisooVideo/GisooVideo.php b/resources/views/segments/index/GisooVideo/GisooVideo.php new file mode 100644 index 0000000..d720a3d --- /dev/null +++ b/resources/views/segments/index/GisooVideo/GisooVideo.php @@ -0,0 +1,55 @@ +section = 'theme'; + $setting->key = $part->area_name . '_' . $part->part . '_mp4'; + $setting->value = null; + $setting->type = 'FILE'; + $setting->size = 12; + $setting->title = $part->area_name . ' ' . $part->part . ' video'; + $setting->save(); + + $setting = new Setting(); + $setting->section = 'theme'; + $setting->key = $part->area_name . '_' . $part->part . '_deg'; + $setting->value = 35; + $setting->size = 6; + $setting->type = 'NUMBER'; + $setting->data = json_encode(['xmin' => -180, 'xmax' => 180, 'name' => 'gisso-deg-1', 'suffix' => 'deg']); + $setting->title = $part->area_name . ' ' . $part->part . ' angle 1'; + $setting->save(); + + $setting = new Setting(); + $setting->section = 'theme'; + $setting->key = $part->area_name . '_' . $part->part . '_deg2'; + $setting->value = 35; + $setting->size = 6; + $setting->type = 'NUMBER'; + $setting->data = json_encode(['xmin' => -180, 'xmax' => 180, 'name' => 'gisso-deg-2', 'suffix' => 'deg']); + $setting->title = $part->area_name . ' ' . $part->part . ' angle 2'; + $setting->save(); + } + + public static function onRemove(Part $part = null) + { + Setting::where('key', $part->area_name . '_' . $part->part . '_mp4')->first()?->delete(); + Setting::where('key', $part->area_name . '_' . $part->part . '_deg')->first()?->delete(); + Setting::where('key', $part->area_name . '_' . $part->part . '_deg2')->first()?->delete(); + + } + + public static function onMount(Part $part = null) + { + + return $part; + } +} diff --git a/resources/views/segments/index/GisooVideo/GisooVideo.scss b/resources/views/segments/index/GisooVideo/GisooVideo.scss new file mode 100644 index 0000000..df56dca --- /dev/null +++ b/resources/views/segments/index/GisooVideo/GisooVideo.scss @@ -0,0 +1,34 @@ +.GisooVideo { + position: relative; + &:before{ + position: absolute; + content: ' '; + background: #ffffff33; + backdrop-filter: blur(12px); + width: 45%; + right: -25%; + top: 0; + z-index: 70; + bottom: .5rem; + transform: skewX(var(--gisso-deg-1)); + } + &:after{ + position: absolute; + content: ' '; + background: #ffffff33; + backdrop-filter: blur(12px); + width: 45%; + left: -25%; + top: 0; + z-index: 70; + bottom: .5rem; + transform: skewX(var(--gisso-deg-2)); + } + // scss + video{ + position: relative; + width: 100%; + z-index: 60; + } + +} diff --git a/resources/views/segments/index/GisooVideo/screenshot.png b/resources/views/segments/index/GisooVideo/screenshot.png new file mode 100644 index 0000000..9fde2ef Binary files /dev/null and b/resources/views/segments/index/GisooVideo/screenshot.png differ