diff --git a/.dockerignore b/.dockerignore
index 3f3cbbf..eedcf53 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -18,6 +18,9 @@
.claude
skills
+# unused design candidates (not referenced by the app)
+/public/CandidatesIMages
+
# project meta / docs
memory-bank
docs
diff --git a/next.config.ts b/next.config.ts
index 5840eb1..889d356 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -25,6 +25,11 @@ const nextConfig: NextConfig = {
destination: "https://mst.aut.ac.ir/content/31094/شبکه-اساتید",
permanent: true,
},
+ {
+ source: "/images/faculty/placeholder.png",
+ destination: "/images/faculty/placeholder.webp",
+ permanent: true,
+ },
];
},
};
diff --git a/public/CandidatesIMages/AUT Neural Filament Monogram.png b/public/CandidatesIMages/AUT Neural Filament Monogram.png
deleted file mode 100644
index 0985460..0000000
Binary files a/public/CandidatesIMages/AUT Neural Filament Monogram.png and /dev/null differ
diff --git a/public/CandidatesIMages/AUT Neural Filament Monogram.webp b/public/CandidatesIMages/AUT Neural Filament Monogram.webp
new file mode 100644
index 0000000..e582030
Binary files /dev/null and b/public/CandidatesIMages/AUT Neural Filament Monogram.webp differ
diff --git a/public/CandidatesIMages/Amirkabir University Arches in Silver Lines (1).png b/public/CandidatesIMages/Amirkabir University Arches in Silver Lines (1).png
deleted file mode 100644
index c894df7..0000000
Binary files a/public/CandidatesIMages/Amirkabir University Arches in Silver Lines (1).png and /dev/null differ
diff --git a/public/CandidatesIMages/Amirkabir University Arches in Silver Lines (1).webp b/public/CandidatesIMages/Amirkabir University Arches in Silver Lines (1).webp
new file mode 100644
index 0000000..aeac685
Binary files /dev/null and b/public/CandidatesIMages/Amirkabir University Arches in Silver Lines (1).webp differ
diff --git a/public/CandidatesIMages/Connected U-shaped executive seminar table.png b/public/CandidatesIMages/Connected U-shaped executive seminar table.png
deleted file mode 100644
index e7fbfef..0000000
Binary files a/public/CandidatesIMages/Connected U-shaped executive seminar table.png and /dev/null differ
diff --git a/public/CandidatesIMages/Connected U-shaped executive seminar table.webp b/public/CandidatesIMages/Connected U-shaped executive seminar table.webp
new file mode 100644
index 0000000..698f6d2
Binary files /dev/null and b/public/CandidatesIMages/Connected U-shaped executive seminar table.webp differ
diff --git a/public/CandidatesIMages/Global Knowledge Network Sphere.png b/public/CandidatesIMages/Global Knowledge Network Sphere.png
deleted file mode 100644
index 933173f..0000000
Binary files a/public/CandidatesIMages/Global Knowledge Network Sphere.png and /dev/null differ
diff --git a/public/CandidatesIMages/Global Knowledge Network Sphere.webp b/public/CandidatesIMages/Global Knowledge Network Sphere.webp
new file mode 100644
index 0000000..20b012c
Binary files /dev/null and b/public/CandidatesIMages/Global Knowledge Network Sphere.webp differ
diff --git a/public/CandidatesIMages/Neural Learning Wave.png b/public/CandidatesIMages/Neural Learning Wave.png
deleted file mode 100644
index 5790bc5..0000000
Binary files a/public/CandidatesIMages/Neural Learning Wave.png and /dev/null differ
diff --git a/public/CandidatesIMages/Neural Learning Wave.webp b/public/CandidatesIMages/Neural Learning Wave.webp
new file mode 100644
index 0000000..812d939
Binary files /dev/null and b/public/CandidatesIMages/Neural Learning Wave.webp differ
diff --git a/public/CandidatesIMages/Neural open book of knowledge.png b/public/CandidatesIMages/Neural open book of knowledge.png
deleted file mode 100644
index fa0d45c..0000000
Binary files a/public/CandidatesIMages/Neural open book of knowledge.png and /dev/null differ
diff --git a/public/CandidatesIMages/Neural open book of knowledge.webp b/public/CandidatesIMages/Neural open book of knowledge.webp
new file mode 100644
index 0000000..d21e5f1
Binary files /dev/null and b/public/CandidatesIMages/Neural open book of knowledge.webp differ
diff --git a/public/CandidatesIMages/Neural tree of knowledge.png b/public/CandidatesIMages/Neural tree of knowledge.png
deleted file mode 100644
index c3bb952..0000000
Binary files a/public/CandidatesIMages/Neural tree of knowledge.png and /dev/null differ
diff --git a/public/CandidatesIMages/Neural tree of knowledge.webp b/public/CandidatesIMages/Neural tree of knowledge.webp
new file mode 100644
index 0000000..f254165
Binary files /dev/null and b/public/CandidatesIMages/Neural tree of knowledge.webp differ
diff --git a/public/CandidatesIMages/Open book of connected knowledge.png b/public/CandidatesIMages/Open book of connected knowledge.png
deleted file mode 100644
index 9074305..0000000
Binary files a/public/CandidatesIMages/Open book of connected knowledge.png and /dev/null differ
diff --git a/public/CandidatesIMages/Open book of connected knowledge.webp b/public/CandidatesIMages/Open book of connected knowledge.webp
new file mode 100644
index 0000000..d83ac15
Binary files /dev/null and b/public/CandidatesIMages/Open book of connected knowledge.webp differ
diff --git a/public/CandidatesIMages/Silver-blue neural graduation cap.png b/public/CandidatesIMages/Silver-blue neural graduation cap.png
deleted file mode 100644
index 7d0fdc4..0000000
Binary files a/public/CandidatesIMages/Silver-blue neural graduation cap.png and /dev/null differ
diff --git a/public/CandidatesIMages/Silver-blue neural graduation cap.webp b/public/CandidatesIMages/Silver-blue neural graduation cap.webp
new file mode 100644
index 0000000..ae9bcf0
Binary files /dev/null and b/public/CandidatesIMages/Silver-blue neural graduation cap.webp differ
diff --git a/public/CandidatesIMages/Twin arches, receding AI learning frames.png b/public/CandidatesIMages/Twin arches, receding AI learning frames.png
deleted file mode 100644
index 10a2c91..0000000
Binary files a/public/CandidatesIMages/Twin arches, receding AI learning frames.png and /dev/null differ
diff --git a/public/CandidatesIMages/Twin arches, receding AI learning frames.webp b/public/CandidatesIMages/Twin arches, receding AI learning frames.webp
new file mode 100644
index 0000000..1e5ad28
Binary files /dev/null and b/public/CandidatesIMages/Twin arches, receding AI learning frames.webp differ
diff --git a/public/CandidatesIMages/University Emblem and Neural Network.png b/public/CandidatesIMages/University Emblem and Neural Network.png
deleted file mode 100644
index b70025d..0000000
Binary files a/public/CandidatesIMages/University Emblem and Neural Network.png and /dev/null differ
diff --git a/public/CandidatesIMages/University Emblem and Neural Network.webp b/public/CandidatesIMages/University Emblem and Neural Network.webp
new file mode 100644
index 0000000..2a2cada
Binary files /dev/null and b/public/CandidatesIMages/University Emblem and Neural Network.webp differ
diff --git a/public/CandidatesIMages/Woven trefoil of collective intelligence.png b/public/CandidatesIMages/Woven trefoil of collective intelligence.png
deleted file mode 100644
index 6c2aa8e..0000000
Binary files a/public/CandidatesIMages/Woven trefoil of collective intelligence.png and /dev/null differ
diff --git a/public/CandidatesIMages/Woven trefoil of collective intelligence.webp b/public/CandidatesIMages/Woven trefoil of collective intelligence.webp
new file mode 100644
index 0000000..8311e47
Binary files /dev/null and b/public/CandidatesIMages/Woven trefoil of collective intelligence.webp differ
diff --git a/public/MstAutIcon.png b/public/MstAutIcon.png
deleted file mode 100644
index de4b0ff..0000000
Binary files a/public/MstAutIcon.png and /dev/null differ
diff --git a/public/MstAutIcon.webp b/public/MstAutIcon.webp
new file mode 100644
index 0000000..ad1604b
Binary files /dev/null and b/public/MstAutIcon.webp differ
diff --git a/public/MstAutIcon_horizontal.png b/public/MstAutIcon_horizontal.png
deleted file mode 100644
index fcaff8a..0000000
Binary files a/public/MstAutIcon_horizontal.png and /dev/null differ
diff --git a/public/MstAutIcon_horizontal.webp b/public/MstAutIcon_horizontal.webp
new file mode 100644
index 0000000..eae362d
Binary files /dev/null and b/public/MstAutIcon_horizontal.webp differ
diff --git a/public/brand/ai-learning-frames.png b/public/brand/ai-learning-frames.png
deleted file mode 100644
index 10a2c91..0000000
Binary files a/public/brand/ai-learning-frames.png and /dev/null differ
diff --git a/public/brand/ai-learning-frames.webp b/public/brand/ai-learning-frames.webp
new file mode 100644
index 0000000..1e5ad28
Binary files /dev/null and b/public/brand/ai-learning-frames.webp differ
diff --git a/public/brand/amirkabir-arches-neural.png b/public/brand/amirkabir-arches-neural.png
deleted file mode 100644
index c894df7..0000000
Binary files a/public/brand/amirkabir-arches-neural.png and /dev/null differ
diff --git a/public/brand/amirkabir-arches-neural.webp b/public/brand/amirkabir-arches-neural.webp
new file mode 100644
index 0000000..aeac685
Binary files /dev/null and b/public/brand/amirkabir-arches-neural.webp differ
diff --git a/public/brand/amirkabir-arches.png b/public/brand/amirkabir-arches.png
deleted file mode 100644
index 8e1787d..0000000
Binary files a/public/brand/amirkabir-arches.png and /dev/null differ
diff --git a/public/brand/amirkabir-arches.webp b/public/brand/amirkabir-arches.webp
new file mode 100644
index 0000000..a6d431f
Binary files /dev/null and b/public/brand/amirkabir-arches.webp differ
diff --git a/public/brand/amirkabir-black-bg.png b/public/brand/amirkabir-black-bg.png
deleted file mode 100644
index 568154d..0000000
Binary files a/public/brand/amirkabir-black-bg.png and /dev/null differ
diff --git a/public/brand/amirkabir-black-bg.webp b/public/brand/amirkabir-black-bg.webp
new file mode 100644
index 0000000..f361e66
Binary files /dev/null and b/public/brand/amirkabir-black-bg.webp differ
diff --git a/public/brand/amirkabir.png b/public/brand/amirkabir.png
deleted file mode 100644
index de4b0ff..0000000
Binary files a/public/brand/amirkabir.png and /dev/null differ
diff --git a/public/brand/amirkabir.webp b/public/brand/amirkabir.webp
new file mode 100644
index 0000000..ad1604b
Binary files /dev/null and b/public/brand/amirkabir.webp differ
diff --git a/public/brand/campus-collaboration-v1.png b/public/brand/campus-collaboration-v1.png
deleted file mode 100644
index 5f12188..0000000
Binary files a/public/brand/campus-collaboration-v1.png and /dev/null differ
diff --git a/public/brand/campus-collaboration-v1.webp b/public/brand/campus-collaboration-v1.webp
new file mode 100644
index 0000000..f7db348
Binary files /dev/null and b/public/brand/campus-collaboration-v1.webp differ
diff --git a/public/brand/collective-intelligence.png b/public/brand/collective-intelligence.png
deleted file mode 100644
index 6c2aa8e..0000000
Binary files a/public/brand/collective-intelligence.png and /dev/null differ
diff --git a/public/brand/collective-intelligence.webp b/public/brand/collective-intelligence.webp
new file mode 100644
index 0000000..9ccd401
Binary files /dev/null and b/public/brand/collective-intelligence.webp differ
diff --git a/public/brand/executive-seminar-neural.png b/public/brand/executive-seminar-neural.png
deleted file mode 100644
index e7fbfef..0000000
Binary files a/public/brand/executive-seminar-neural.png and /dev/null differ
diff --git a/public/brand/executive-seminar-neural.webp b/public/brand/executive-seminar-neural.webp
new file mode 100644
index 0000000..698f6d2
Binary files /dev/null and b/public/brand/executive-seminar-neural.webp differ
diff --git a/public/brand/graduation-cap-neural.png b/public/brand/graduation-cap-neural.png
deleted file mode 100644
index 7d0fdc4..0000000
Binary files a/public/brand/graduation-cap-neural.png and /dev/null differ
diff --git a/public/brand/graduation-cap-neural.webp b/public/brand/graduation-cap-neural.webp
new file mode 100644
index 0000000..7809da8
Binary files /dev/null and b/public/brand/graduation-cap-neural.webp differ
diff --git a/public/brand/knowledge-network-sphere.png b/public/brand/knowledge-network-sphere.png
deleted file mode 100644
index 933173f..0000000
Binary files a/public/brand/knowledge-network-sphere.png and /dev/null differ
diff --git a/public/brand/knowledge-network-sphere.webp b/public/brand/knowledge-network-sphere.webp
new file mode 100644
index 0000000..c14c1b7
Binary files /dev/null and b/public/brand/knowledge-network-sphere.webp differ
diff --git a/public/brand/logo_fa.png b/public/brand/logo_fa.png
deleted file mode 100644
index 2698ca2..0000000
Binary files a/public/brand/logo_fa.png and /dev/null differ
diff --git a/public/brand/logo_fa.webp b/public/brand/logo_fa.webp
new file mode 100644
index 0000000..f361e66
Binary files /dev/null and b/public/brand/logo_fa.webp differ
diff --git a/public/brand/logo_fa_w.png b/public/brand/logo_fa_w.png
deleted file mode 100644
index ea9ccfb..0000000
Binary files a/public/brand/logo_fa_w.png and /dev/null differ
diff --git a/public/brand/logo_fa_w.webp b/public/brand/logo_fa_w.webp
new file mode 100644
index 0000000..867f4c3
Binary files /dev/null and b/public/brand/logo_fa_w.webp differ
diff --git a/public/brand/mst-faculty-full-with-text.png b/public/brand/mst-faculty-full-with-text.png
deleted file mode 100644
index b54e09f..0000000
Binary files a/public/brand/mst-faculty-full-with-text.png and /dev/null differ
diff --git a/public/brand/mst-faculty-full-with-text.webp b/public/brand/mst-faculty-full-with-text.webp
new file mode 100644
index 0000000..5c1ac7e
Binary files /dev/null and b/public/brand/mst-faculty-full-with-text.webp differ
diff --git a/public/brand/mst-faculty-icon.png b/public/brand/mst-faculty-icon.png
deleted file mode 100644
index 2228145..0000000
Binary files a/public/brand/mst-faculty-icon.png and /dev/null differ
diff --git a/public/brand/mst-faculty-icon.webp b/public/brand/mst-faculty-icon.webp
new file mode 100644
index 0000000..2d71e13
Binary files /dev/null and b/public/brand/mst-faculty-icon.webp differ
diff --git a/public/brand/mst-faculty.png b/public/brand/mst-faculty.png
deleted file mode 100644
index c930a19..0000000
Binary files a/public/brand/mst-faculty.png and /dev/null differ
diff --git a/public/brand/mst-faculty.webp b/public/brand/mst-faculty.webp
new file mode 100644
index 0000000..2cc5c76
Binary files /dev/null and b/public/brand/mst-faculty.webp differ
diff --git a/public/brand/neural-learning-wave.png b/public/brand/neural-learning-wave.png
deleted file mode 100644
index 5790bc5..0000000
Binary files a/public/brand/neural-learning-wave.png and /dev/null differ
diff --git a/public/brand/neural-learning-wave.webp b/public/brand/neural-learning-wave.webp
new file mode 100644
index 0000000..812d939
Binary files /dev/null and b/public/brand/neural-learning-wave.webp differ
diff --git a/public/brand/neural-open-book.png b/public/brand/neural-open-book.png
deleted file mode 100644
index fa0d45c..0000000
Binary files a/public/brand/neural-open-book.png and /dev/null differ
diff --git a/public/brand/neural-open-book.webp b/public/brand/neural-open-book.webp
new file mode 100644
index 0000000..268a094
Binary files /dev/null and b/public/brand/neural-open-book.webp differ
diff --git a/public/brand/neural-tree-knowledge.png b/public/brand/neural-tree-knowledge.png
deleted file mode 100644
index c3bb952..0000000
Binary files a/public/brand/neural-tree-knowledge.png and /dev/null differ
diff --git a/public/brand/neural-tree-knowledge.webp b/public/brand/neural-tree-knowledge.webp
new file mode 100644
index 0000000..7442178
Binary files /dev/null and b/public/brand/neural-tree-knowledge.webp differ
diff --git a/public/brand/open-book-aut-knowledge.png b/public/brand/open-book-aut-knowledge.png
deleted file mode 100644
index 9074305..0000000
Binary files a/public/brand/open-book-aut-knowledge.png and /dev/null differ
diff --git a/public/brand/open-book-aut-knowledge.webp b/public/brand/open-book-aut-knowledge.webp
new file mode 100644
index 0000000..85f4efd
Binary files /dev/null and b/public/brand/open-book-aut-knowledge.webp differ
diff --git a/public/brand/seminar-room.jpg b/public/brand/seminar-room.jpg
deleted file mode 100644
index 10d1343..0000000
Binary files a/public/brand/seminar-room.jpg and /dev/null differ
diff --git a/public/brand/seminar-room.webp b/public/brand/seminar-room.webp
new file mode 100644
index 0000000..4281aa8
Binary files /dev/null and b/public/brand/seminar-room.webp differ
diff --git a/public/brand/university-emblem-neural.png b/public/brand/university-emblem-neural.png
deleted file mode 100644
index b70025d..0000000
Binary files a/public/brand/university-emblem-neural.png and /dev/null differ
diff --git a/public/brand/university-emblem-neural.webp b/public/brand/university-emblem-neural.webp
new file mode 100644
index 0000000..c17b5b0
Binary files /dev/null and b/public/brand/university-emblem-neural.webp differ
diff --git a/public/images/faculty/placeholder.png b/public/images/faculty/placeholder.png
deleted file mode 100644
index 7274a6e..0000000
Binary files a/public/images/faculty/placeholder.png and /dev/null differ
diff --git a/public/images/faculty/placeholder.webp b/public/images/faculty/placeholder.webp
new file mode 100644
index 0000000..3339245
Binary files /dev/null and b/public/images/faculty/placeholder.webp differ
diff --git a/scripts/import-faculty-from-local.mjs b/scripts/import-faculty-from-local.mjs
index 8caf986..7d7000c 100644
--- a/scripts/import-faculty-from-local.mjs
+++ b/scripts/import-faculty-from-local.mjs
@@ -170,11 +170,13 @@ async function main() {
const publicFaculty = path.join(root, "public", "images", "faculty");
mkdirSync(publicFaculty, { recursive: true });
- if (filesDir && existsSync(path.join(filesDir, "johndoe.png"))) {
- copyFileSync(
- path.join(filesDir, "johndoe.png"),
- path.join(publicFaculty, "placeholder.png"),
- );
+ const destPlaceholder = path.join(publicFaculty, "placeholder.webp");
+ if (
+ filesDir &&
+ existsSync(path.join(filesDir, "johndoe.png")) &&
+ !existsSync(destPlaceholder)
+ ) {
+ copyFileSync(path.join(filesDir, "johndoe.png"), destPlaceholder);
}
const { Client } = pg;
@@ -200,7 +202,7 @@ async function main() {
byName.get(p.name.replace(/\s+/g, " ").trim().toLowerCase());
const id = match?.id ?? facultyId(p);
- let imageUrl = match?.image_url || "/images/faculty/placeholder.png";
+ let imageUrl = match?.image_url || "/images/faculty/placeholder.webp";
const fileBase = p.imageSrc.split(/[/\\]/).pop() || "";
const isPlaceholder =
!fileBase ||
diff --git a/scripts/optimize-static-images.mjs b/scripts/optimize-static-images.mjs
new file mode 100644
index 0000000..52c9db2
--- /dev/null
+++ b/scripts/optimize-static-images.mjs
@@ -0,0 +1,143 @@
+/**
+ * Convert fixed static assets (brand/logos) to compact WebP.
+ * Skips course uploads, faculty photos (except placeholder), and favicon PNGs.
+ */
+import fs from "node:fs";
+import path from "node:path";
+import sharp from "sharp";
+
+const ROOT = process.cwd();
+
+const SKIP_DIR_PARTS = [
+ path.join("public", "images", "courses"),
+ path.join("public", "brand", "icons"),
+];
+
+const SKIP_FILES = new Set(
+ [
+ "public/icon-192.png",
+ "public/icon-512.png",
+ "public/apple-touch-icon.png",
+ "src/app/icon.png",
+ "src/app/apple-icon.png",
+ ].map((p) => path.normalize(p)),
+);
+
+const LOGO_NAMES = new Set([
+ "mst-faculty.png",
+ "mst-faculty-icon.png",
+ "mst-faculty-full-with-text.png",
+ "MstAutIcon_horizontal.png",
+ "MstAutIcon.png",
+ "logo_fa.png",
+ "logo_fa_w.png",
+ "amirkabir.png",
+ "amirkabir-black-bg.png",
+]);
+
+function walk(dir, acc = []) {
+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
+ const full = path.join(dir, entry.name);
+ if (entry.isDirectory()) walk(full, acc);
+ else if (/\.(png|jpe?g)$/i.test(entry.name)) acc.push(full);
+ }
+ return acc;
+}
+
+function shouldSkip(abs) {
+ const rel = path.relative(ROOT, abs);
+ const norm = path.normalize(rel);
+ if (SKIP_FILES.has(norm)) return true;
+ if (SKIP_DIR_PARTS.some((d) => norm.startsWith(d))) return true;
+ // Faculty photos from admin/sync — keep. Convert only the fixed placeholder.
+ if (norm.startsWith(path.join("public", "images", "faculty"))) {
+ return path.basename(norm) !== "placeholder.png";
+ }
+ return false;
+}
+
+function presetFor(rel, meta) {
+ const base = path.basename(rel);
+ const isLogo = LOGO_NAMES.has(base);
+ const isHorizontal = base === "MstAutIcon_horizontal.png";
+ const isPlaceholder = base === "placeholder.png";
+
+ if (isHorizontal) {
+ return { lossless: true };
+ }
+ if (isLogo) {
+ return { lossless: true };
+ }
+ if (isPlaceholder) {
+ return { maxEdge: 640, quality: 58, alphaQuality: 70 };
+ }
+ // Decorative / hero illustrations (often under overlays)
+ return { maxEdge: 1080, quality: 48, alphaQuality: 65 };
+}
+
+function destPath(abs) {
+ return abs.replace(/\.(png|jpe?g)$/i, ".webp");
+}
+
+const candidates = [
+ ...walk(path.join(ROOT, "public", "brand")),
+ ...walk(path.join(ROOT, "public", "CandidatesIMages")),
+ path.join(ROOT, "public", "MstAutIcon_horizontal.png"),
+ path.join(ROOT, "public", "MstAutIcon.png"),
+ path.join(ROOT, "public", "images", "faculty", "placeholder.png"),
+].filter((f) => fs.existsSync(f) && !shouldSkip(f));
+
+let before = 0;
+let after = 0;
+
+for (const abs of candidates) {
+ const rel = path.relative(ROOT, abs);
+ const srcSize = fs.statSync(abs).size;
+ before += srcSize;
+
+ const img = sharp(abs);
+ const meta = await img.metadata();
+ const cfg = presetFor(rel, meta);
+ let pipeline = img;
+
+ const w = meta.width ?? 0;
+ const h = meta.height ?? 0;
+ if (cfg.maxHeight && h > cfg.maxHeight) {
+ pipeline = pipeline.resize({ height: cfg.maxHeight, withoutEnlargement: true });
+ } else if (cfg.maxEdge) {
+ const edge = Math.max(w, h);
+ if (edge > cfg.maxEdge) {
+ pipeline = pipeline.resize({
+ width: w >= h ? cfg.maxEdge : undefined,
+ height: h > w ? cfg.maxEdge : undefined,
+ withoutEnlargement: true,
+ });
+ }
+ }
+
+ const out = destPath(abs);
+ await pipeline
+ .webp(
+ cfg.lossless
+ ? { lossless: true, effort: 6 }
+ : {
+ quality: cfg.quality,
+ alphaQuality: cfg.alphaQuality,
+ effort: 6,
+ smartSubsample: true,
+ },
+ )
+ .toFile(out);
+
+ const outSize = fs.statSync(out).size;
+ after += outSize;
+ fs.unlinkSync(abs);
+ const pct = ((1 - outSize / srcSize) * 100).toFixed(0);
+ console.log(
+ `${(srcSize / 1024).toFixed(0).padStart(6)}KB → ${(outSize / 1024).toFixed(0).padStart(5)}KB (-${pct}%) ${rel}`,
+ );
+}
+
+console.log(
+ `\nTOTAL ${(before / 1024 / 1024).toFixed(2)} MB → ${(after / 1024 / 1024).toFixed(2)} MB (${candidates.length} files)`,
+);
diff --git a/src/app/(main)/alumni/page.tsx b/src/app/(main)/alumni/page.tsx
index 656ed77..fc8bad5 100644
--- a/src/app/(main)/alumni/page.tsx
+++ b/src/app/(main)/alumni/page.tsx
@@ -28,7 +28,7 @@ export default async function AlumniPage() {
diff --git a/src/app/(main)/insights/page.tsx b/src/app/(main)/insights/page.tsx
index dd27de7..c734a9f 100644
--- a/src/app/(main)/insights/page.tsx
+++ b/src/app/(main)/insights/page.tsx
@@ -25,7 +25,7 @@ export default async function InsightsPage() {
diff --git a/src/app/(main)/programs/page.tsx b/src/app/(main)/programs/page.tsx
index 2e643e8..e55c9cd 100644
--- a/src/app/(main)/programs/page.tsx
+++ b/src/app/(main)/programs/page.tsx
@@ -34,7 +34,7 @@ export default async function ProgramsPage() {
diff --git a/src/app/(main)/values/page.tsx b/src/app/(main)/values/page.tsx
index dc70e1c..693048f 100644
--- a/src/app/(main)/values/page.tsx
+++ b/src/app/(main)/values/page.tsx
@@ -29,7 +29,7 @@ export default async function ValuesPage() {
eyebrow={valuesContent.eyebrow}
title={valuesContent.title}
intro={valuesContent.intro}
- imageUrl="/brand/collective-intelligence.png"
+ imageUrl="/brand/collective-intelligence.webp"
/>
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index fc9dd18..54e14e9 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -54,7 +54,7 @@ export async function generateMetadata(): Promise {
title: t("homeTitle"),
description: t("homeDescription"),
images: [
- { url: "/brand/mst-faculty.png", alt: "دانشکده مدیریت، علم و فناوری دانشگاه صنعتی امیرکبیر" },
+ { url: "/brand/mst-faculty.webp", alt: "دانشکده مدیریت، علم و فناوری دانشگاه صنعتی امیرکبیر" },
],
},
twitter: {
diff --git a/src/app/mstcontroller/login/page.tsx b/src/app/mstcontroller/login/page.tsx
index d6dc42c..b3c0fe6 100644
--- a/src/app/mstcontroller/login/page.tsx
+++ b/src/app/mstcontroller/login/page.tsx
@@ -56,7 +56,7 @@ function LoginForm() {
@@ -59,7 +59,7 @@ export function AboutTemplate({ topics }: { topics: IntersectionTopic[] }) {
{labels.exploreCourses}
@@ -105,7 +105,7 @@ export function ProfessionalLandingTemplate({
>