diff --git a/nuxt.config.ts b/nuxt.config.ts index 7768c70..00c16df 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,6 +1,6 @@ // import { fileURLToPath } from "url"; -import fs from 'fs-extra'; -import path from 'path'; +import fs from "fs-extra"; +import path from "path"; let sassEnvVariables = ""; for (let e in import.meta.env) { @@ -18,17 +18,22 @@ if (buildName == "hadith") export default defineNuxtConfig({ hooks: { - 'build:before': () => { - const sourceDir = path.resolve(__dirname, `systems/${buildName}_ui/assets/${buildName}/images`); // Source folder (e.g., assets/images) - const targetDir = path.resolve(__dirname, 'public/img'); // Target folder (e.g., public/images) + "build:before": () => { + if (buildName == "hadith") { + const sourceDir = path.resolve( + __dirname, + `systems/${buildName}_ui/assets/${buildName}/images` + ); // Source folder (e.g., assets/images) + const targetDir = path.resolve(__dirname, "public/img"); // Target folder (e.g., public/images) - // Ensure the target directory exists - fs.ensureDirSync(targetDir); + // Ensure the target directory exists + fs.ensureDirSync(targetDir); - // Copy files from source to target - fs.copySync(sourceDir, targetDir); + // Copy files from source to target + fs.copySync(sourceDir, targetDir); - console.log('Files copied successfully!'); + console.log("Files copied successfully!"); + } }, "pages:extend"(pages) { @@ -137,7 +142,6 @@ export default defineNuxtConfig({ // mode: 'init' // }, image: { - inject: true, quality: 80, format: ["webp", "jpeg", "jpg", "png", "gif", "avif"], diff --git a/public/img/box-1-bgi.svg b/public/img/box-1-bgi.svg new file mode 100644 index 0000000..12f51e8 --- /dev/null +++ b/public/img/box-1-bgi.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/public/img/card-one-bgi.png b/public/img/card-one-bgi.png new file mode 100644 index 0000000..14c6f03 Binary files /dev/null and b/public/img/card-one-bgi.png differ diff --git a/public/img/card-one.png b/public/img/card-one.png new file mode 100644 index 0000000..24ca36b Binary files /dev/null and b/public/img/card-one.png differ diff --git a/public/img/card-three-bgi.png b/public/img/card-three-bgi.png new file mode 100644 index 0000000..b683da4 Binary files /dev/null and b/public/img/card-three-bgi.png differ diff --git a/public/img/card-three.png b/public/img/card-three.png new file mode 100644 index 0000000..3973bc5 Binary files /dev/null and b/public/img/card-three.png differ diff --git a/public/img/card-two-bgi.png b/public/img/card-two-bgi.png new file mode 100644 index 0000000..4fb6fee Binary files /dev/null and b/public/img/card-two-bgi.png differ diff --git a/public/img/card-two.png b/public/img/card-two.png new file mode 100644 index 0000000..be71956 Binary files /dev/null and b/public/img/card-two.png differ diff --git a/public/img/logo.png b/public/img/logo.png new file mode 100644 index 0000000..773be8b Binary files /dev/null and b/public/img/logo.png differ