diff --git a/app/Http/Middleware/SecureHeaders.php b/app/Http/Middleware/SecureHeaders.php index 37ae290..4411171 100644 --- a/app/Http/Middleware/SecureHeaders.php +++ b/app/Http/Middleware/SecureHeaders.php @@ -71,6 +71,7 @@ class SecureHeaders 'https://www.google.com/recaptcha/', 'https://recaptcha.google.com/recaptcha/', 'https://www.youtube.com', + 'https://www.youtube-nocookie.com/embed/', ]) . ';', "font-src 'self' data: " . \implode(' ', [ // * VITE DEV diff --git a/database/migrations/2024_07_29_103251_recreate_logo_site_table.php b/database/migrations/2024_07_29_103251_recreate_logo_site_table.php new file mode 100644 index 0000000..669e77e --- /dev/null +++ b/database/migrations/2024_07_29_103251_recreate_logo_site_table.php @@ -0,0 +1,44 @@ +get(); + Schema::dropIfExists('logo_site'); + Schema::create('logo_site', function (Blueprint $table) { + $table->foreignId('logo_id')->constrained()->cascadeOnUpdate()->cascadeOnDelete(); + $table->foreignId('site_id')->constrained()->cascadeOnUpdate()->cascadeOnDelete(); + }); + + foreach ($relations as $relation) { + DB::table('logo_site')->insert( + [ + 'logo_id' => $relation->logo_id, + 'site_id' => $relation->site_id, + ] + ); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + Schema::dropIfExists('logo_site'); + } +}; diff --git a/package-lock.json b/package-lock.json index 183ff2e..70537d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "@babel/core": "^7.22.11", "@babel/types": "^7.21.2", "@erbelion/vite-plugin-laravel-purgecss": "^0.2.3", + "@fancyapps/ui": "^5.0.36", "@fortawesome/fontawesome-svg-core": "^6.5.1", "@fortawesome/free-regular-svg-icons": "^6.5.1", "@fortawesome/free-solid-svg-icons": "^6.5.1", @@ -912,6 +913,12 @@ "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, + "node_modules/@fancyapps/ui": { + "version": "5.0.36", + "resolved": "https://registry.npmjs.org/@fancyapps/ui/-/ui-5.0.36.tgz", + "integrity": "sha512-GMygQzp1MBTFNTT6AzpbL6pXTD6bTxwjmmpI1fe8Ozmmiseu8/g82Sudl1YhcbZmS4bJgaBOF5THDFGpXQ1fDw==", + "dev": true + }, "node_modules/@fortawesome/fontawesome-common-types": { "version": "6.5.1", "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.5.1.tgz", diff --git a/package.json b/package.json index 21dad18..99d26f0 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@babel/core": "^7.22.11", "@babel/types": "^7.21.2", "@erbelion/vite-plugin-laravel-purgecss": "^0.2.3", + "@fancyapps/ui": "^5.0.36", "@fortawesome/fontawesome-svg-core": "^6.5.1", "@fortawesome/free-regular-svg-icons": "^6.5.1", "@fortawesome/free-solid-svg-icons": "^6.5.1", diff --git a/resources/assets/images/misc/play-button.svg b/resources/assets/images/misc/play-button.svg new file mode 100644 index 0000000..e1006f9 --- /dev/null +++ b/resources/assets/images/misc/play-button.svg @@ -0,0 +1,6 @@ + diff --git a/resources/sass/fo/fo.scss b/resources/sass/fo/fo.scss index a3b749f..2ca8f39 100644 --- a/resources/sass/fo/fo.scss +++ b/resources/sass/fo/fo.scss @@ -9,6 +9,7 @@ @import "./vendor/swiper"; @import "./vendor/cookie-notice"; @import "leaflet"; +@import "./vendor/fancybox"; // * BASE @import "./base/bootstrap-overload"; diff --git a/resources/sass/fo/vendor/_fancybox.scss b/resources/sass/fo/vendor/_fancybox.scss new file mode 100644 index 0000000..9294492 --- /dev/null +++ b/resources/sass/fo/vendor/_fancybox.scss @@ -0,0 +1,2 @@ +// import Fancybox style +@import "~/@fancyapps/ui/dist/fancybox/fancybox.css"; diff --git a/resources/ts/fo/fo.ts b/resources/ts/fo/fo.ts index 9b5c7b6..f4610e4 100644 --- a/resources/ts/fo/fo.ts +++ b/resources/ts/fo/fo.ts @@ -9,6 +9,9 @@ window.CookieNotice = CookieNotice; // FANCYBOX import "fslightbox"; +// MODULES +import "./../modules/fancybox"; + // UTILITIES import "./utilities/bootstrap"; import "./utilities/fontawesome"; diff --git a/resources/ts/modules/fancybox.ts b/resources/ts/modules/fancybox.ts new file mode 100644 index 0000000..3979bb7 --- /dev/null +++ b/resources/ts/modules/fancybox.ts @@ -0,0 +1,4 @@ +import { Fancybox } from "@fancyapps/ui"; + +Fancybox.bind("[data-fancybox]", { +}); diff --git a/resources/views/fo/pages/commitments.blade.php b/resources/views/fo/pages/commitments.blade.php index 25ab2ae..77b40f9 100644 --- a/resources/views/fo/pages/commitments.blade.php +++ b/resources/views/fo/pages/commitments.blade.php @@ -280,7 +280,7 @@ title="{{ $slide->picture_title }}" alt="{{ $slide->picture_alt }}">
diff --git a/resources/views/fo/pages/home.blade.php b/resources/views/fo/pages/home.blade.php index 60650ba..7fee923 100644 --- a/resources/views/fo/pages/home.blade.php +++ b/resources/views/fo/pages/home.blade.php @@ -69,18 +69,14 @@ @endif